一、实验拓扑
二、基本配置
在lsw1上配置
<Huawei>system-view
[Huawei]sysname lw1
[lw1]vlan 3
[lw1-vlan3]quit
[lw1]interface e0/0/2
[lw1-Ethernet0/0/2]port link-type access
[lw1-Ethernet0/0/2]port default vlan 3
[lw1-Ethernet0/0/2]quit
[lw1]interface e0/0/1
[lw1-Ethernet0/0/1]port hybrid pvid vlan 3
[lw1-Ethernet0/0/1]quit
[lw1]interface e0/0/1
[lw1-Ethernet0/0/1]port hybrid untagged vlan 1 3
在lsw2上配置
<Huawei>system-view
[Huawei]sysname lw2
[lw2]vlan 2
[lw2-vlan2]quit
[lw2]interface e0/0/2
[lw2-Ethernet0/0/2]port link-type access
[lw2-Ethernet0/0/2]port default vlan 2
[lw2-Ethernet0/0/2]quit
在lsw3上配置
<Huawei>system-view
[Huawei]sysname lw3
[lw3]vlan 4
[lw3-vlan4]quit
[lw3]interface e0/0/2
[lw3-Ethernet0/0/2]port link-type access
[lw3-Ethernet0/0/2]port default vlan 4
三、测试
通了,实验结束!