一、环境
二、步骤
1.启动设备
2.给pc配置IP地址
3.每台交换机创建vlan10和20并将接口加入指定vlan
4.配置聚合链路
[sw1]int Eth-Trunk 1
[sw1- Eth-Trunk 1]port link tr
[sw1- Eth-Trunk 1]port tr all vlan all
[sw1- Eth-Trunk 1]trunkport g0/0/3
[sw1- Eth-Trunk 1]trunkport g0/0/4
[sw1- Eth-Trunk 1]trunkport g0/0/5
[sw2]int Eth-Trunk 1
[sw2- Eth-Trunk 1]port link tr
[sw2- Eth-Trunk 1]port tr all vlan all
[sw2- Eth-Trunk 1]trunkport g0/0/2
[sw2- Eth-Trunk 1]trunkport g0/0/3
[sw2- Eth-Trunk 1]trunkport g0/0/4
[sw2- Eth-Trunk 1]quit
[sw2]int Eth-Trunk 2
[sw2- Eth-Trunk 1]port link tr
[sw2- Eth-Trunk 1]port tr all vlan all
[sw2- Eth-Trunk 1]trunkport g0/0/5
[sw2- Eth-Trunk 1]trunkport g0/0/6
[sw2- Eth-Trunk 1]trunkport g0/0/7
[sw3]int Eth-Trunk 2
[sw3- Eth-Trunk 1]port link tr
[sw3- Eth-Trunk 1]port tr all vlan all
[sw3- Eth-Trunk 1]trunkport g0/0/2
[sw3- Eth-Trunk 1]trunkport g0/0/3
[sw3- Eth-Trunk 1]trunkport g0/0/4
三、结果
pc1能ping通pc3,删除一条sw1和sw2的线路也可以ping通
pc2能ping通pc4,删除一条sw2和sw3的线路也可以ping通