The goal is to do switching between VLAN 10 and VLAN 20.
VLAN 10 is on Switch1, VLAN20 is on Switch2, and VLAN30 is on both switches.
Native VLAN
Switch1(config)#VLAN translation (mapping)vtp mode transparentSwitch1(config)#interface gi0/1Switch1(config-if)#switchportSwitch1(config-if)#switchport mode trunkSwitch1(config-if)#switchport trunk encapsulation dot1qSwitch1(config-if)#switchport trunk allowed vlan 10,30Switch1(config-if)#switchport trunk native vlan 10Switch1(config-if)#no cdp enableSwitch1(config-if)#spanning-tree bpdufilter enableSwitch2(config)#vtp mode transparentSwitch2(config)#interface gi0/1Switch2(config-if)#switchportSwitch2(config-if)#switchport mode trunkSwitch2(config-if)#switchport trunk encapsulation dot1qSwitch2(config-if)#switchport trunk allowed vlan 20,30Switch2(config-if)#switchport trunk native vlan 20Switch1(config-if)#no cdp enableSwitch2(config-if)#spanning-tree bpdufilter enable
Switch1(config)#vtp mode transparentSwitch1(config)#interface gi0/1Switch1(config-if)#switchportSwitch1(config-if)#switchport mode trunkSwitch1(config-if)#switchport trunk encapsulation dot1qSwitch1(config-if)#switchport trunk allowed vlan 10,30Switch2(config)#vtp mode transparentSwitch2(config)#interface gi0/1Switch2(config-if)#switchportSwitch2(config-if)#switchport mode trunkSwitch2(config-if)#switchport trunk encapsulation dot1qSwitch2(config-if)#switchport trunk allowed vlan 20,30Switch2(config-if)#switchport vlan mapping enableSwitch2(config-if)#switchport vlan mapping 10 20
No comments:
Post a Comment