Overview of Port Aggregation
The following sections provide information about port aggregation, aggregation group, load balance, system priority and port priority.
Port Aggregation
Port aggregation allows you to group multiple physical ports into one unit. Port aggregation is useful for implementing load balancing and provides a redundant link backup.
To allow port aggregation, the basic configuration on all the ports must be consistent. The following list details the basic configuration parameters that should be consistent on all the ports:
-
STP configurations, including STP enable or disable, STP priority, and STP cost.
-
VLAN configurations, including permitted VLANs on a port and port VLAN ID (PVID).
-
Port attribute configurations, including port speed, duplex mode, and link type.
Note
Only full duplex mode is supported.
Trunk, hybrid, or access link types are supported.
If the attributes of a port in an aggregation group on the same device is modified, then all the remaining ports in the group are automatically synchronized.
Aggregation Group
Port aggregation groups can be configured in the following modes:
-
ON mode: Adds a port to a static aggregation group. Link Aggregation Control Protocol (LACP) is not required in this mode to negotiate with the device at the end. A static aggregation group can have up to eight ports.
-
Active mode: Adds a port to a dynamic aggregation group. LACP is required in this mode to communicate with a device on the other side. In this mode, the port automatically initiates LACP negotiation.
-
Passive mode: Adds a port to a dynamic aggregation group. LACP is required in this mode to communicate with a device on the other side. In this mode, a port responds only to LACP negotiation.
Note |
A dynamic aggregation group can contain up to 12 ports. Out of the 12 ports, eight ports will be in the band l state and the remaining four will be in the backup state. Only ports with band l state will be allowed to forward normal traffic. If a port in the band l state faces a link down, a backup port with the highest port priority becomes the band l state. |
The following is a list of the methods used to dock the devices configured in various modes:
-
A device that is configured in static mode can dock with another device that is configured in static mode.
-
A device that is configured in dynamic active mode can dock with another device that is configured either in dynamic active mode or dynamic passive mode.
-
A device that is configured with dynamic passive mode can dock with another device that is configured in dynamic active mode.
Aggregation Group ID
You can either create an aggregation ID under global configuration mode or you can add a port to an aggregation group to automatically create an aggregation ID.
Load Balance
The default mode to configure load balancing is using the source MAC address.
You can view the configuration information with the show lacp internal [ch-id ] command.
System Priority
In dynamic mode, the primary and secondary devices are selected based on the system ID, which is generated based on the configured system priority and the local MAC address. The system priority of both the devices are compared, and the device with the highest priority (lower value) is selected as the primary device. The device with the lowest priority (higher value) is selected as the secondary device. If the priority of both the devices are the same, the local MAC address is compared. The device with the lower MAC address is selected as the primary device and the device with the higher MAC address is selected as the secondary device.
The default system priority is 32768.
Port Priority
In dynamic mode, the primary device uses the logical port to forward protocol packets, such as STP, to the secomdary device. The logical port is selected based on the port ID, which is a combination of port priority and port number. The port priority of both the ports are compared, and the port with the highest priority (lower value) is selected as the logical port. If the priority of both the ports are the same, the port number is compared. The port with the lower port number is selected as the logical port.
By default, all port priorities are the same, with a value of 128. You can configure the port priorities, as required. All port priority values are configured as integer multiples of 16. For example, if the port priority value is set as 17, the actual success is issued 17 / 16 = 1.