端口聚合实例
查看链路聚合 dis link-aggregation verbose
配置SwitchA
1. 建立汇聚组1
[SwitchA]interface bridge-aggregation 1
2.进入端口G1/0/1
[SwitchA]interface gigabitethernet1/0/1
3.参与端口汇聚的端口设置成全双工模式
[SwitchA-GigabitEthernet1/0/1]duplex full
4.参与端口汇聚的端口工作速率设置一致
[SwitchA-GigabitEthernet1/0/1]speed 1000
5.将端口加入汇聚组
[SwitchA-GigabitEthernet1/0/1]port link-aggregation group 1
6.端口G1/0/2与端口G1/0/1的配置一致
7. 建立汇聚组2
[SwitchA]interface bridge-aggregation 2
8.进入端口G1/0/3
[SwitchA]interface gigabitethernet1/0/3
9.参与端口汇聚的端口设置成全双工模式
[SwitchA-GigabitEthernet1/0/3]duplex full
10.参与端口汇聚的端口工作速率设置一致
[SwitchA-GigabitEthernet1/0/3]speed 1000
11.将端口加入汇聚组
[SwitchA-GigabitEthernet1/0/3]port link-aggregation group 2
12.负荷分担基于源MAC和目的MAC
[SwitchA]link-aggregation load-sharing mode source-mac
13.端口G1/0/4与端口G1/0/3的配置一致
二、 SwitchB的配置顺序和配置内容同SwitchA的G1/0/1
三、 SwitchC的配置顺序和配置内同同SwitchA的G1/0/3
动态汇聚的配置:
一、配置SwitchA
1. 建立汇聚组1
[SwitchA]interface bridge-aggregation 1
[SwitchA-Bridge-Aggregation1]link-aggregation mode dynamic
2.进入端口G1/0/1
[SwitchA]interface gigabitethernet1/0/1
3.参与端口汇聚的端口设置成全双工模式
[SwitchA-GigabitEthernet1/0/1]duplex full
4.参与端口汇聚的端口工作速率设置一致
[SwitchA-GigabitEthernet1/0/1]speed 1000
5.将端口加入汇聚组
[SwitchA-GigabitEthernet1/0/1]port link-aggregation group 1
6.端口G1/0/2与端口G1/0/1的配置一致
7. 建立汇聚组2
[SwitchA]interface bridge-aggregation 2
8.进入端口G1/0/3
[SwitchA]interface gigabitethernet1/0/3
9.参与端口汇聚的端口设置成全双工模式
[SwitchA-GigabitEthernet1/0/3]duplex full
10.参与端口汇聚的端口工作速率设置一致
[SwitchA-GigabitEthernet1/0/3]speed 1000
11.将端口加入汇聚组
[SwitchA-GigabitEthernet1/0/3]port link-aggregation group 2
12.负荷分担基于源MAC和目的MAC
[SwitchA]link-aggregation load-sharing mode source-mac
13.端口G1/0/4与端口G1/0/3的配置一致
二、 SwitchB的配置顺序和配置内容同SwitchA的G1/0/1
三、 SwitchC的配置顺序和配置内同同SwitchA的G1/0/3
address max-mac-count命令的端口,不能加入到汇聚组中;反
14:端口限速
<1>:若交换机的型号支持QOS限速可以如下操作:
Qos端口限速
[H3C] interface gigabitethernet 1/0/1
# 配置限速参数,端口进/出速率限制为5120kbps。
[H3C-GigabitEthernet1/0/1] qos lr inbound cir 5120
[H3C-GigabitEthernet1/0/1] qos lr outbound cir 5120
< 2>:line-rate
[H3C] interface gigabitethernet 1/0/1
[H3C-GigabitEthernet1/0/1]line-rate inbound <1-32> //粒度是25Mb
[H3C-GigabitEthernet1/0/1]line-rate oubound <1-32>