操作步骤
在SwitchA上创建Eth-Trunk1并配置为LACP模式。SwitchB配置过程与SwitchA类似,不再赘述
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 997 to 999 1007 to 1008 1011
mode lacp
max active-linknumber 1
配置SwitchA上的成员接口加入Eth-Trunk。SwitchB配置过程与SwitchA类似,不再赘述
interface XGigabitEthernet0/0/1
description shangxing 1G
eth-trunk 1
interface XGigabitEthernet0/0/2
description shangxing 1G
eth-trunk 1
查看聚合状态
[SW-Bridge-Aggregation1]port link-type trunk //改为trunk模式
[SW-Bridge-Aggregation1]port trunk permit vlan all //所有的vlan适用
删除链路聚合:
步骤1 将原来已加入的聚合组的端口退出
步骤2 删除聚合组
命令参考如下,(具体的端口号,聚合组 请根据你的实际情况修改):
interface GigabitEthernet 0/8
undo port link-aggregation group 1
quit
undo link-aggregation group 1
查看命令:
display link-aggregation summary
[S1]display link-aggregation verbose
负载分担:
[S1]link-aggregation load-sharing mode destination-mac 两端都配置(貌似接口也可以配置)
[SW]save //保存配置信息
[SW]reboot //重启交换机