Native VLAN
The above picture shows that the trunk link is connected to port fa0/24 on both switches. To configure the trunk link, open console connection to Switch 1 and enter the commands as shown below.
chennaiinfoteam.sw01>enable
chennaiinfoteam.sw01#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
chennaiinfoteam.sw01(config)#interface fa0/24
chennaiinfoteam.sw01(config-if)#switchport mode trunk
chennaiinfoteam.sw01(config-if)#switchport trunk native vlan 10
chennaiinfoteam.sw01(config-if)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (10), with chennaiinfoteam.sw02 FastEthernet0/24 (1).
chennaiinfoteam.sw01(config-if)#exit
chennaiinfoteam.sw01(config)#exit
chennaiinfoteam.sw01#
chennaiinfoteam.sw01#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
chennaiinfoteam.sw01(config)#interface fa0/24
chennaiinfoteam.sw01(config-if)#switchport mode trunk
chennaiinfoteam.sw01(config-if)#switchport trunk native vlan 10
chennaiinfoteam.sw01(config-if)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (10), with chennaiinfoteam.sw02 FastEthernet0/24 (1).
chennaiinfoteam.sw01(config-if)#exit
chennaiinfoteam.sw01(config)#exit
chennaiinfoteam.sw01#
The CDP message "%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (10), with chennaiinfoteam.sw02 FastEthernet0/24 (1)." shows that the
native VLAN on other side of the trunk is different from what we configured here.
To configure trunk link and native VLAN on Switch 2, open console connection to Switch 2 and enter the commands as shown below.
chennaiinfoteam.sw02>enablechennaiinfoteam.sw02#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
chennaiinfoteam.sw02(config)#interface fa0/24
chennaiinfoteam.sw02(config-if)#switchport mode trunk
chennaiinfoteam.sw02(config-if)#switchport trunk native vlan 10
chennaiinfoteam.sw02(config-if)#exit
chennaiinfoteam.com.sw02(config)#exit
chennaiinfoteam.sw02#
No comments:
Post a Comment