两台H3C华三交换机交换机配置双线链路聚合
链路模式
Switch-A Switch-B
0.事前准备
准备好串口转RJ45连接线,连接电脑与交换机的console口
1.使用串口软件连接到交换机的console口
连接参数可以参考交换机的说明书,H3C的参数如下:
波特率(Baud rate) = 9600
数据位(Data) = 8bits
校验位(Parity) =None
停止位(Stop) = 1bit
流 控(Flow control) = 0
连接软件可以用HyperTerminal、TeraTerm
2.在交换机Switch-A上完成命令,uplink用的物理端口为ge1/0/25和ge1/0/26
# 切换系统视图
sys
# 创建链路汇聚接口,id=1
[H3C] interface bridge-aggregation 1
# 设置汇聚类型为动态, mode默认为static
[H3C-Bridge-Aggregation1] link-aggregation mode static | dynamic
# 设置为trunk上行主干
[H3C-Bridge-Aggregation1] port link-type trunk
# 设置允许所有vlan上行
[H3C-Bridge-Aggregation1] port trunk permit vlan all
#切换到GigabitEthernet1/0/25
[H3C-Bridge-Aggregation1] interface GigabitEthernet 1/0/25
# 设置为trunk上行主干
[H3C-GigabitEthernet1/0/25] port link-type trunk
# 设置允许所有vlan上行
[H3C-GigabitEthernet1/0/25] port trunk permit vlan all
#加入到链路汇聚组1
[H3C-GigabitEthernet1/0/25] port link-aggregation group 1
#切换到GigabitEthernet1/0/26
[H3C-GigabitEthernet1/0/25] interface GigabitEthernet 1/0/26
# 设置为trunk上行主干
[H3C-GigabitEthernet1/0/26] port link-type trunk
# 设置允许所有vlan上行
[H3C-GigabitEthernet1/0/26] port trunk permit vlan all
#加入到链路汇聚组1
[H3C-GigabitEthernet1/0/26] port link-aggregation group 1
#配置完成 退出
[H3C-GigabitEthernet1/0/26] quit
保存
[H3C] save
3.在交换机Switch-B上完成命令,使用物理端口为ge1/0/27和ge1/0/28
# 切换系统视图
sys
# 创建链路汇聚接口,id=1
[H3C] interface bridge-aggregation 1
# 设置汇聚类型为static
[H3C-Bridge-Aggregation1] link-aggregation mode static
#切换到GigabitEthernet1/0/27
[H3C-Bridge-Aggregation1] interface GigabitEthernet 1/0/27
#加入到链路汇聚组1
[H3C-GigabitEthernet1/0/27]port link-aggregation group 1
#切换到GigabitEthernet1/0/28
[H3C-GigabitEthernet1/0/27] interface GigabitEthernet 1/0/28
#加入到链路汇聚组1
[H3C-GigabitEthernet1/0/28] port link-aggregation group 1
#配置完成 退出
[H3C-GigabitEthernet1/0/28] quit
#保存
[H3C] save
聚合端口的管理命令
#查看所有聚合端口的详细信息,可以使用brief参数
[H3C] display interface bridge-aggregation
#查看指定聚合端口的详细信息,可以使用brief参数
[H3C] display interface bridge-aggregation 1
其他命令
#查看所有接口
[H3C] display interface brief
#查看光口信息
[H3C] display transceiver interface
https://jingyan.baidu.com/article/574c52197882bf6c8c9dc155.html
https://blog.csdn.net/jason_deng_2017/article/details/78775169