j
步骤1:交换机vlan配置
交换机sw1配置
<H3C>sys
[H3C]sys sw1
[sw1]vlan 10
[sw1-vlan10]port GigabitEthernet 1/0/1
[sw1-vlan10]exit
[sw1]vlan 20
[sw1-vlan20]int GigabitEthernet 1/0/2
[sw1-GigabitEthernet1/0/2]port access vlan 20
[sw1-GigabitEthernet1/0/2]exit
[H3C]int GigabitEthernet 1/0/3
[H3C-GigabitEthernet1/0/3]port trunk permit vlan all
[H3C-GigabitEthernet1/0/3]exit交换机sw2配置
<H3C>sys
[H3C]sys sw2
[sw2]vlan 10
[sw2-vlan10]exit
[sw2]vlan 20
[sw2-vlan20]exit
[sw2]int GigabitEthernet 1/0/2
[sw2-GigabitEthernet1/0/2]port access vlan 10
[sw2-GigabitEthernet1/0/2]exit
[sw2]int GigabitEthernet 1/0/3
[sw2-GigabitEthernet1/0/3]port access vlan 20
[sw2-Gi