要求如上
先配置
1 交换机和PC之间配置接口
SW1
[sw1]vlan batch 2 to 5
[sw1-Ethernet0/0/3]port link-type access
[sw1-Ethernet0/0/3]port default vlan 2
[sw1-Ethernet0/0/4]port hybrid pvid vlan 3
[sw1-Ethernet0/0/4]port hybrid untagged vlan 2 to 5
SW2
[sw2]vlan batch 2 to 5
[sw2-Ethernet0/0/3]port link-type access
[sw2-Ethernet0/0/3]port default vlan 2
[sw2-Ethernet0/0/4]port hybrid pvid vlan 4
[sw2-Ethernet0/0/4]port hybrid untagged vlan 2 to 4
VLAN实验 20210115
最新推荐文章于 2023-03-20 11:21:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)