1.设备创建vlan 2 3
vlan batch 2 3
2.在接入层 1-9 ,10-19 口上建立vlan 2 ,vlan 3
1-9口
port-group group-member g0/0/1 to g0/0/9
port link-type access
port default vlan 2
10-19口
port-group group-member g0/0/10 to g0/0/19
port link-type access
port default vlan 3
3.给lsw3配置上行接口
interface GigabitEthernet0/0/23
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
——————————————————————————————————
interface GigabitEthernet0/0/24
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
4.配置lsw1和lsw2的下行接口
lsw1
interface GigabitEthernet0/0/23
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
lsw2
interface GigabitEthernet0/0/24
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 3
5.接口聚合
lsw1 lsw2
int eth-trunk 1
trunkport g0/0/1
trunkport g0/0/2