<H3C>system-view //进入配置模式
动态链路聚合:
[SW]dis cu //查看所有配置端口信息
[SW]int Bridge-Aggregation 1 //创建链路聚合组端口1
[SW-Bridge-Aggregation1]link-aggregation mode dynamic //链路聚合模式动态
[SW-Bridge-Aggregation1]interface gigabitethernet 1/0/1 //进入网口
[SW-Ethernet1/0/1]port link-aggregation group 1 //加入链路聚合组
[SW-Ethernet1/0/1]quit //退出
[SW]interface Ethernet(gigabitethernet) 1/0/2
[SW-Ethernet1/0/2]port link-aggregation group 1 //加入链路聚合组
[SW-Ethernet1/0/1]quit
[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 //重启交换机