1、创建聚合接口 ID为50
interface Bridge-Aggregation50
link-aggregation mode dynamic
使用LACP协议,默认使用的负载模式为src-ip dst-ip 华为交换机默认使用的是dst-mac
2、将接口加入到聚合组里
interface Ten-GigabitEthernet1/0/10
port link-mode bridge
port link-aggregation group 50
interface Ten-GigabitEthernet1/0/23
port link-mode bridge
port link-aggregation group 50
注意:加入聚合组前接口下不能有任何配置
3、在聚合端口下加入配置,该配置会自动下发到组内所有端口
interface Bridge-Aggregation50
description senhua
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 3002 3010 3012 3200
link-aggregation mode dynamic
注意:当我们往正常使用的聚合接口中加入新端口时,要想让新端口马上生效,要把聚合接口下的配置重新刷新一下,这样新接口的端口中才会被下发聚合口中的配置。
interface Ten-GigabitEthernet1/0/10
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 3002 3010 3012 3200
port link-aggregation group 50
4、验证接口是否添加成功
display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation10
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Oper-Key
--------------------------------------------------------------------------------
Aggregation Interface: Bridge-Aggregation50
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 80f6-2e8d-39ab
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/0/10 S 32768 1 {ACDEF}
XGE1/0/23 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/0/10 21 32768 2 0x8000, 70f9-6d42-01c4 {ACDEF}
XGE1/0/23 29 32768 2 0x8000, 70f9-6d42-01c4 {ACDEF}
Aggregation Interface: Bridge-Aggregation100
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Oper-Key
--------------------------------------------------------------------------------