实验拓扑
实验步骤:
首先给PC配置ip
sw1
<Huawei>
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW1
[SW1]vlan b 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]p l a
[SW1-Ethernet0/0/1]p de v 10
[SW1-Ethernet0/0/1]q
[SW1]int e0/0/2
[SW1-Ethernet0/0/2]p l a
[SW1-Ethernet0/0/2]p de v 20
[SW1-Ethernet0/0/2]q
[SW1]int e0/0/22
[SW1-Ethernet0/0/22]p l t
[SW1-Ethernet0/0/22]p t a v all
[SW1-Ethernet0/0/22]q
[SW1]
sw2
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW2
[SW2]vlan b 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]p l a
[SW2-Ethernet0/0/1]p de v 10
[SW2-Ethernet0/0/1]q
[SW2]int e0/0/2
[SW2-Ethernet0/0/2]p l a
[SW2-Ethernet0/0/2]p de v 20
[SW2-Ethernet0/0/2]q
[SW2]int e0/0/22
[SW2-Ethernet0/0/22]p l t
[SW2-Ethernet0/0/22]p t a v all
[SW2-Ethernet0/0/22]q
[SW2]
测试连通性
同vlan间互通