在sw1交换机中创建vlan 5 10 50
Vlan batch 5 10 50
Int e0/0/1
[sw1-Ethernet0/0/1]Port link-type hybrid
[sw1-Ethernet0/0/1]port hybrid vlan 5
[sw1-Ethernet0/0/1]port hybrid tagged vlan 5 50
[sw1-Ethernet0/0/2]port link-type hybrid
[sw1-Ethernet0/0/2]port hybrid pvid vlan 10
[sw1-Ethernet0/0/2]port hybrid tagged vlan 10 50
设置交换机2
[sw2]vlan batch 5 10 50
[Sw2]int e0/0/2
[sw2-Ethernet0/0/2]port link-type hybrid
[sw2-Ethernet0/0/2]port hybrid pvid vlan 50
[sw2-Ethernet0/0/2]port hybrid untagged vlan 5 10 50
[sw2-Ethernet0/0/1]port link-type hybrid
[sw2-Ethernet0/0/1]port hybrid tagged vlan 5 10 50
原文地址:http://blog.51cto.com/13935936/2299001
时间: 2024-11-08 18:29:44