link aggregation
Manual configuration mode
It is generally used when the LACP protocol is not supported. As long as there is a period of time when the LACP protocol is not supported, manual mode must be used.
There is another disadvantage. If one end fails, normal communication will not be possible and there will be no obvious failure display. The port will still be up.
LACPDU
Link Aggregation Control Protocol Data Unit (LACPDU)
LACP priority
Compare global priorities
The active side can select the active interface
interface priority
When the priorities are consistent, compare the interface numbers. The smaller the number, the better.
The maximum number of active interfaces is compared to the interface priority.
Active link election
The active interface is elected by the active end, and the active interface of the passive end is elected based on the active end.
Link aggregation configuration commands
Manual mode link aggregation configuration
LACP mode link aggregation configuration
Link aggregation configuration commands
[SW1]interface Eth-Trunk 1 //Create Eth-Trunk 1 port
[SW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/22 to 0/0/24 //Ports that need to be aggregated
[SW1-Eth-Trunk1]port link-type trunk //Change the aggregate interface type to trunk interface
[SW1-Eth-Trunk1]port trunk allow-pass vlan 100 200 //放行vlan 100 200
[SW1-Eth-Trunk1]mode lacp-static //Configure lacp mode. If it is manual mode, just leave this item unchecked.
The following are optional and will not affect aggregation if not used.
Load sharing mode
[SW1-Eth-Trunk1]mode manual load-balance //Configure the load balancing mode to manual mode
[SW1-Eth-Trunk1]load-balance src-mac //Configure the load balancing method to be based on the original MAC
[SW1-Eth-Trunk1]max active-linknumber 2 //Configure the maximum number of active links
[SW1-Eth-Trunk1]lacp preempt enable //Enable lacp port preemption (the port is down, no preemption by default)
[SW1-Eth-Trunk1]lacp preempt delay 10 //Configure preemption waiting time
[SW1-Eth-Trunk1]q
Configure LACP priority, which is only used in lcap mode. The one with higher priority will be the active end.
[SW1]lacp priority 10 //Set the device LACP system priority. The smaller the value, the higher the priority.
Set the LACP priority of the port
[SW1]interface GigabitEthernet 0/0/22
[SW1-GigabitEthernet0/0/22]lacp priority 50000 //Set the interface LACP priority, the default is 32768, the smaller the value, the higher the priority [SW1-GigabitEthernet0/0/22]quit