# 配置系统LACP
优先级、配置活动接口上限阀数、配置接口LACP
优先级
[SW-A]lacp priority 100
[SW-A]interface Eth-Trunk 1
[SW-A-Eth-Trunk1]max active-linknumber 2 # 配置活动接口上限阈值为2
[SW-A-Eth-Trunk1]quit
[SW-A]int GigabitEthernet 0/0/1
[SW-A-GigabitEthernet0/0/1]lacp priority 100 # 配置接口优先级为100,缺省32768
[SW-A-GigabitEthernet0/0/1]quit
[SW-A]interface GigabitEthernet 0/0/2
[SW-A-GigabitEthernet0/0/2]lacp priority 100 # 配置接口优先级为100,缺省32768
[SW-A-GigabitEthernet0/0/2]quit
[SW-A]
然后查看:
[SW-A]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 100 System ID: 4c1f-cc45-3688
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1 Selected 1GE 100 2 305 10111100 1
GigabitEthernet0/0/2 Selected 1GE 100 3 305 10111100 1
GigabitEthernet0/0/3 Unselect 1GE 32768 4 305 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/1 32768 4c1f-cccd-490f 32768 2 305 10111100
GigabitEthernet0/0/2 32768 4c1f-cccd-490f 32768 3 305 10111100
GigabitEthernet0/0/3 32768 4c1f-cccd-490f 32768 4 305 10110000
[SW-A]