相关设备配置:
SW1:
<Huawei>sys
[Huawei]sysname SW1
[SW1]un in en
[SW1]vlan batch 2 3
[SW1]int g0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 2
[SW1-GigabitEthernet0/0/2]int g0/0/3
[SW1-GigabitEthernet0/0/3]port link-type access
[S