Port Channel configuration command 1. port-group
Command: port-group [port-group-number] [load-balance {src-mac | dst-src-mac | src-ip | dst-src -ip}]
No port-group [port-group-number] [load-balance]
Function: Create a port group and set the Traffic Sharing Mode for the group. If no traffic sharing method is specified, the default traffic sharing method is set. The no operation of this command is to delete the group or restore the default value of the group's traffic share. If you type load-balance, the default traffic share will be restored. Otherwise, the group will be deleted.
Eg:
For example, create a port group and use the default traffic sharing method.
Switch (config) # port-group 1
Delete a port group
Switch (config) # no port-group 1
Port Channel configuration command 2, port-group mode
Command: port-group [port-group-number] mode {active | passive | on}
No port-group [port-group-number]
Function: adds a physical port to the port channel. The no operation of this command is to remove the port from the port channel.
Parameter: [port-group-number] indicates the group number of the port channel, ranging from 1 ~ 16;
Active0) Start the lacp protocol of the port and set it to active mode;
Passive1) Start the lacp protocol of the port and set it to passive mode;
On2) force the port to join the port channel and do not start the lacp protocol;
Command mode: Interface Configuration Mode
Eg: In port ethernet0/0/1 mode, add this port to port-group 1 in active mode.
Switch (config-ethernet0/0/1) # port-group 1 mode active
Port Channel configuration command 3. interface port-channel
Command: interface port-channel [port-channel-number]
Function: Enter the aggregation interface configuration mode.
Command mode: global configuration mode
Default:
User Guide: when you enter the aggregation port mode, if you configure gvrp and the spanningtree module, the aggregation port will take effect. If the aggregation port does not exist, that is to say, when the port is not aggregated, an error message is first prompted to record the user configuration operation. When the port is actually aggregated, the user can resume the Configuration action for the not-formed aggregation port. Note that the Configuration action can only be restored once, if, for some reason, the aggregation group is split and then aggregated, the user's initial configuration cannot be restored. If you configure other modules, such as shutdown and speed, the configuration takes effect for all member ports in the port-channel and serves as a group configuration.
Example: Entering port-channel1 Configuration Mode
Switch (config) # interface port-channel 1
Switch (config-if-port-channel1 )#
At this point, the channel only needs to be imagined as a normal physical port.
The Port Channel command is used to enable the Quick Start of a vswitch. If you are interested, read the following: how to enable the Quick Start attribute of a vswitch?