这里写自定义目录标题
e-trunk配置(跨设备链路聚合)
SW1配置代码
sys
sysname SW1
INT ETH-TRUNK 1
mode lacp
trunkport gi 0/0/1 to 0/0/2
quit
vlan 100
int vlanif 100
ip add 100.0.0.1 24
int g0/0/3
port link-type trunk
port trunk all vlan all
quit
e-trunk 12
priority 99
peer-add 100.0.0.2 source-address 100.0.0.1
quit
int eth-trunk 1
e-trunk 12 remote-eth-trunk 2
SW2的配置
sys
sysname SW2
INT ETH-TRUNK 2
mode lacp
trunkport gi 0/0/1 to 0/0/2
quit
vlan 100
int vlanif 100
ip add 100.0.0.2 24
int g0/0/3
port link-type trunk
port trunk all vlan all
quit
e-trunk 12
peer-add 100.0.0.1 sou 100.0.0.2
quit
int eth-trunk 2
e-trunk 12 remote-eth-trunk 1
SW3的配置代码
sys
sysname SW3
INT ETH-TRUNK 3
mode lacp
trunkport gi 0/0/1 to 0/0/4
quit
验证
在SW1上查看e-trunk 12的运行情况
在SW2上查看e-trunk 12的运行情况
在SW3上查看eth-trunk 3的运行情况
现在模拟SW1交换机故障,观察SW3交换机上eth-trunk 3的变化情况
参考文章