[SW1]int Eth-Trunk [SW1]int Eth-Trunk ? <0-63> Eth-Trunk interface number
[SW1]int Eth-Trunk 12 [SW1-Eth-Trunk12]trunkport g 0/0/1 to 0/0/4 [SW1]display interface Eth-Trunk 12 Eth-Trunk12 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 4G, Current BW: 4G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc7c-1cd9 Current system time: 2024-01-08 11:57:24-08:00 Input bandwidth utilization : 0% Output bandwidth utilization : 0% ----------------------------------------------------- PortName Status Weight ----------------------------------------------------- GigabitEthernet0/0/1 UP 1 GigabitEthernet0/0/2 UP 1 GigabitEthernet0/0/3 UP 1 GigabitEthernet0/0/4 UP 1 ----------------------------------------------------- The Number of Ports in Trunk : 4 The Number of UP Ports in Trunk : 4
SW2
[SW2]int Eth-Trunk 12 [SW2-Eth-Trunk12]trunkport g 0/0/1 to 0/0/4
动态聚合
SW3
[SW3]int Eth-Trunk 34 [SW3-Eth-Trunk34]mode lacp-static [SW3-Eth-Trunk34]trunkport g 0/0/1 to 0/0/4 [SW3-Eth-Trunk34]max active-linknumber 2
SW4
[SW4]int Eth-Trunk 34 [SW4-Eth-Trunk34]mode lacp-static [SW4-Eth-Trunk34]trunkport g 0/0/1 to 0/0/4 [SW4-Eth-Trunk34]max active-linknumber 2 [SW4-Eth-Trunk34]dis th # interface Eth-Trunk34 mode lacp-static max active-linknumber 2 # [SW4-Eth-Trunk34]display interface Eth-Trunk 34 Eth-Trunk34 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 4G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc43-7170 Current system time: 2024-01-08 12:28:39-08:00 Input bandwidth utilization : 0% Output bandwidth utilization : 0% ----------------------------------------------------- PortName Status Weight ----------------------------------------------------- GigabitEthernet0/0/1 UP 1 GigabitEthernet0/0/2 UP 1 GigabitEthernet0/0/3 DOWN 1 GigabitEthernet0/0/4 DOWN 1 ----------------------------------------------------- The Number of Ports in Trunk : 4 The Number of UP Ports in Trunk : 2
[SW4-Eth-Trunk34]
接口优先级
[SW3]lacp priority ? INTEGER<0-65535> Priority value, the default value is 32768 [SW3]lacp priority 20
[SW3]int g0/0/3 [SW3-GigabitEthernet0/0/3]lacp priority 32769 [SW3-GigabitEthernet0/0/3]dis int Eth-Trunk 34 Eth-Trunk34 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 4G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc28-2c9f Current system time: 2024-01-08 13:54:30-08:00 Input bandwidth utilization : 0% Output bandwidth utilization : 0% ----------------------------------------------------- PortName Status Weight ----------------------------------------------------- GigabitEthernet0/0/1 UP 1 GigabitEthernet0/0/2 UP 1 GigabitEthernet0/0/3 DOWN 1 GigabitEthernet0/0/4 DOWN 1 ----------------------------------------------------- The Number of Ports in Trunk : 4 The Number of UP Ports in Trunk : 2
[SW3-GigabitEthernet0/0/3]int g0/0/2 [SW3-GigabitEthernet0/0/2]shutdown [SW3-GigabitEthernet0/0/2] [SW3-GigabitEthernet0/0/2]dis int Eth-Trunk 34 Eth-Trunk34 current state : UP Line protocol current state : UP Description: Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 4G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc28-2c9f Current system time: 2024-01-08 13:54:57-08:00 Input bandwidth utilization : 0% Output bandwidth utilization : 0% ----------------------------------------------------- PortName Status Weight ----------------------------------------------------- GigabitEthernet0/0/1 UP 1 GigabitEthernet0/0/2 DOWN 1 GigabitEthernet0/0/3 DOWN 1 GigabitEthernet0/0/4 UP 1 ----------------------------------------------------- The Number of Ports in Trunk : 4 The Number of UP Ports in Trunk : 2
[SW3-GigabitEthernet0/0/2]
[SW3]display Eth-Trunk 34 Eth-Trunk34's state information is: Local: LAG ID: 34 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 20 System ID: 4c1f-cc28-2c9f 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 32768 2 8753 10111100 1 GigabitEthernet0/0/2 Unselect 1GE 32768 3 8753 10100010 1 GigabitEthernet0/0/3 Selected 1GE 32769 4 8753 10111100 1 GigabitEthernet0/0/4 Unselect 1GE 32768 5 8753 10100000 1