R1配置
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]mode lacp-static
[SW1-Eth-Trunk1]trunkport gi 0/0/2 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]disp
[SW1-Eth-Trunk1]display this
#
interface Eth-Trunk1
mode lacp-static
#
return
[SW1-Eth-Trunk1]dis
[SW1-Eth-Trunk1]quit
[SW1]dis
[SW1]display eth
[SW1]display 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: 32768 System ID: 4c1f-ccf3-6af9
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 4
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2 Selected 1GE 32768 3 305 10111100 1
GigabitEthernet0/0/3 Selected 1GE 32768 4 305 10111100 1
GigabitEthernet0/0/4 Selected 1GE 32768 5 305 10111100 1
GigabitEthernet0/0/5 Selected 1GE 32768 6 305 10111100 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/2 32768 4c1f-ccce-4537 32768 3 305 10111100
GigabitEthernet0/0/3 32768 4c1f-ccce-4537 32768 4 305 10111100
GigabitEthernet0/0/4 32768 4c1f-ccce-4537 32768 5 305 10111100
GigabitEthernet0/0/5 32768 4c1f-ccce-4537 32768 6 305 10111100
R2配置
[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]mode lacp-static
[SW2-Eth-Trunk1]trunkport gi 0/0/2 to 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]display this
#
interface Eth-Trunk1
mode lacp-static
#
return
[SW2-Eth-Trunk1]quit
[SW2]dis
[SW2]display eth
[SW2]display 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: 32768 System ID: 4c1f-ccce-4537
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: down Number Of Up Port In Trunk: 0
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2 Unselect 1GE 32768 3 305 10100010 1
GigabitEthernet0/0/3 Unselect 1GE 32768 4 305 10100010 1
GigabitEthernet0/0/4 Unselect 1GE 32768 5 305 10100010 1
GigabitEthernet0/0/5 Unselect 1GE 32768 6 305 10100010 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/2 0 0000-0000-0000 0 0 0 10100011
GigabitEthernet0/0/3 0 0000-0000-0000 0 0 0 10100011
GigabitEthernet0/0/4 0 0000-0000-0000 0 0 0 10100011
GigabitEthernet0/0/5 0 0000-0000-0000 0 0 0 10100011
优先级
修改接口优先级
[SW1]int gi0/0/4
[SW1-GigabitEthernet0/0/4]lacp priority 10
[SW1-GigabitEthernet0/0/4]int gi0/0/5
[SW1-GigabitEthernet0/0/5]lacp prior
[SW1-GigabitEthernet0/0/5]lacp priority 20
[SW1-GigabitEthernet0/0/5]int gi0/0/3
[SW1-GigabitEthernet0/0/3]lacp pri
[SW1-GigabitEthernet0/0/3]lacp priority 30
[SW1-GigabitEthernet0/0/3]int gi0/0/2
[SW1-GigabitEthernet0/0/2]lacp priority 40
[SW1]display 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: 32768 System ID: 4c1f-ccf3-6af9
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 4
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/2 Selected 1GE 40 3 305 10111100 1
GigabitEthernet0/0/3 Selected 1GE 30 4 305 10111100 1
GigabitEthernet0/0/4 Selected 1GE 10 5 305 10111100 1
GigabitEthernet0/0/5 Selected 1GE 20 6 305 10111100 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/2 32768 4c1f-ccce-4537 32768 3 305 10111100
GigabitEthernet0/0/3 32768 4c1f-ccce-4537 32768 4 305 10111100
GigabitEthernet0/0/4 32768 4c1f-ccce-4537 32768 5 305 10111100
GigabitEthernet0/0/5 32768 4c1f-ccce-4537 32768 6 305 10111100
[SW1]
修改捆绑线路数
Max Active-linknumber
[SW1-Eth-Trunk1]max ?
active-linknumber Max active linknumber in link aggregation
group
bandwidth-affected-linknumber The maximum number of the affect-bandwidth
links
Least Active-linknumber
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]least ?
active-linknumber The active-linknumber of the up port
修改最大连接数
[SW1-Eth-Trunk1]max active-linknumber 2
[SW1]display 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: 32768 System ID: 4c1f-ccf3-6af9
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/2 Selected 1GE 40 3 305 10111100 1
GigabitEthernet0/0/3 Selected 1GE 30 4 305 10111100 1
GigabitEthernet0/0/4 Unselect 1GE 10 5 305 10100000 1
GigabitEthernet0/0/5 Unselect 1GE 20 6 305 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet0/0/2 32768 4c1f-ccce-4537 32768 3 305 10111100
GigabitEthernet0/0/3 32768 4c1f-ccce-4537 32768 4 305 10111100
GigabitEthernet0/0/4 32768 4c1f-ccce-4537 32768 5 305 10110000
GigabitEthernet0/0/5 32768 4c1f-ccce-4537 32768 6 305 10110000