cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3458
Views
0
Helpful
6
Replies

ip address for native vlan

daniel4579329
Spotlight
Spotlight

hi i am learning for ccna and i always understood what vlan do but i didnt realize why should i give it an ip address 

 

and on the physical port how do change the native vlan, from what i learned you give the port ip and not puting the 

encapsulation command 

 

thanks for the help 

6 Replies 6

kapydan88
Level 4
Level 4

By default native vlan - its 1 vlan. But you cant assign ip address to vlan, you need interface vlan 1. 

this photo from the ccna volume 1 book these are two ways to set the native vlan and its show that there is ip 

omz
VIP Alumni
VIP Alumni

Hi 

Native VLAN is Dot1q Trunking concept. With Dot1q and Trunk native vlan doesn't exist.

You give an IP address to the SVI for the VLAN not the VLAN it self. 

For example, for native vlan 1 the IP address will be on interface vlan 1

 

Sorry didnt unerstand fully ):
can you explain a bit more

By default the native vlan is on the physical interface of the router.

When the router is doing inter-vlan routing .. something like router-on-a-stick (Google it :))

then you will have different vlans .. you config the switch port connect to the router as a trunk port and on the router side you configure sub-interfaces for each vlan for inter-vlan routing.

On Router - for normal vlan 
interface GigabitEthernet0/0/1.10
encapsulation dot1Q 10

On Router - for native vlan 
interface GigabitEthernet0/0/1.999
encapsulation dot1Q 999 native

On Switch 
vlan 10   <<< normal
vlan 999   <<< native

interface GigabitEthernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 999

This is config for interface without sunbintarface

 

interface GigabitEthernet0/0/0
description to_3850
ip address 192.168.70.1 255.255.255.0

But if you want to create subinterface

 

interface GigabitEthernet0/0/0.22
description to_2960
encapsulation dot1Q 22
ip address 192.168.17.1 255.255.255.0

 

encapsulation dot1Q 22 - in this particular case 22 it means vlan 22

 

 

interface GigabitEthernet0/0/0.1
description to_hypervisor
encapsulation dot1Q 1 native
ip address 192.168.13.1 255.255.255.0