举例:配置动态LACP模式Eth-Trunk
举例:配置动态LACP模式Eth-Trunk
操作步骤
- 在DeviceA上创建动态LACP模式Eth-Trunk接口,并将以太网物理接口加入Eth-Trunk接口。
<HUAWEI> system-view [HUAWEI] sysname DeviceA [DeviceA] interface eth-trunk 1 [DeviceA-Eth-Trunk1] mode lacp-dynamic [DeviceA-Eth-Trunk1] quit [DeviceA] interface 10ge 1/0/1 [DeviceA-10GE1/0/1] eth-trunk 1 [DeviceA-10GE1/0/1] quit [DeviceA] interface 10ge 1/0/2 [DeviceA-10GE1/0/2] eth-trunk 1 [DeviceA-10GE1/0/2] quit [DeviceA] interface 10ge 1/0/3 [DeviceA-10GE1/0/3] eth-trunk 1 [DeviceA-10GE1/0/3] quit - 在DeviceA上配置活动接口上限阈值为2。
[DeviceA] interface eth-trunk 1 [DeviceA-Eth-Trunk1] lacp max active-linknumber 2 [DeviceA-Eth-Trunk1] quit
- 在DeviceA上配置接口优先级确定活动链路。
[DeviceA] interface 10ge 1/0/1 [DeviceA-10GE1/0/1] lacp priority 100 [DeviceA-10GE1/0/1] quit [DeviceA] interface 10ge 1/0/2 [DeviceA-10GE1/0/2] lacp priority 100 [DeviceA-10GE1/0/2] quit
检查配置结果
# 在DeviceA上执行display eth-trunk命令查看Eth-Trunk信息。
[DeviceA] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 Working Mode: Dynamic
Preempt Delay: Disabled Hash Arithmetic: profile default
System Priority: 32768 System ID: xxxx-xxxx-xxxx
Least Active-linknumber: 1 Max Active-linknumber: 2
Operating Status: up Number Of Up Ports In Trunk: 0
Timeout Period: Slow
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
10GE1/0/1 Indep 10GE 100 0 321 10100010 1
10GE1/0/2 Indep 10GE 100 1 321 10100010 1
10GE1/0/3 Indep 10GE 32768 2 321 10100010 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
10GE1/0/1 0 xxxx-xxxx-xxxx 0 0 0 10100011
10GE1/0/2 0 xxxx-xxxx-xxxx 0 0 0 10100011
10GE1/0/3 0 xxxx-xxxx-xxxx 0 0 0 10100011
通过以上显示信息可以看到,Eth-Trunk的ID是1,Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口10GE1/0/1、10GE1/0/2、10GE1/0/3的状态都为Indep。
# 当DeviceA能够收到服务器A的LACP协议报文,且两端通过LACP协议报文链路聚合协商成功,在DeviceA上执行display eth-trunk命令查看Eth-Trunk信息。
[DeviceA] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 Working Mode: Dynamic
Preempt Delay: Disabled: Hash Arithmetic: profile default
System Priority: 32768 System ID: xxxx-xxxx-xxxx
Least Active-linknumber: 1 Max Active-linknumber: 2
Operating Status: up Number Of Up Ports In Trunk: 2
Timeout Period: Slow
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
10GE1/0/1 Selected 10GE 100 0 321 10111100 1
10GE1/0/2 Selected 10GE 100 1 321 10111100 1
10GE1/0/3 Unselect 10GE 32768 2 321 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
10GE1/0/1 32768 xxxx-xxxx-xxxx 32768 0 321 10111100
10GE1/0/2 32768 xxxx-xxxx-xxxx 32768 1 321 10111100
10GE1/0/3 32768 xxxx-xxxx-xxxx 32768 2 321 10100000
通过以上显示信息可以看到,Eth-Trunk的ID是1、Eth-Trunk的模式是动态LACP模式,Eth-Trunk的成员接口中10GE1/0/1、10GE1/0/2成为活动接口,处于Selected状态,接口10GE1/0/3处于Unselect状态。
配置脚本
DeviceA
# sysname DeviceA # interface Eth-Trunk1 mode lacp-dynamic lacp max active-linknumber 2 # interface 10GE1/0/1 eth-trunk 1 lacp priority 100 # interface 10GE1/0/2 eth-trunk 1 lacp priority 100 # interface 10GE1/0/3 eth-trunk 1 # return
https://support.huawei.com/enterprise/zh/doc/EDOC1100278264/600b946f

浙公网安备 33010602011771号