Monday, 1 February 2016

Changing Trunk Port Native VLAN

Native VLAN is configured on Trunk ports.
Default VLAN is 1 , cannot be deleted.
Native VLAN defaults to default VLAN 1.
Native VLAN can be changed to another VLAN. 
Native VLAN carries untagged traffic or traffic 
not belonging to any VLAN on the Trunk line.

Initially :

Switch#show int g0/1 switchport
Name: Gig0/1
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)

Afterwards:

Changing Native VLAN
Switch(config)#interface GigabitEthernet0/1
Switch(config-if)#switchport native vlan 100

Verification:
Switch#show int g0/1 switchport
Name: Gig0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 100

Switch#show interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Gig0/1      on             802.1q             trunking         100

Port        Vlans allowed on trunk
Gig0/1      1-1005

Port        Vlans allowed and active in management domain
Gig0/1      1

Port        Vlans in spanning tree forwarding state and not pruned
Gig0/1      1
Switch#


Note Native VLAN has to be changed on both ends and
if more switches are there than on every interconnected
switch trunk connection.

Native vlan miss match error:
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch 
discovered on GigabitEthernet0/1 (100), with Switch 
GigabitEthernet0/1 (1).

No comments:

Post a Comment