LACP Configuration Guide
LACP Configuration Guide
(LACP)
LACP is defined in IEEE 802.3ad standard and enables Cisco switches to manage Ethernet channels between
switches that conform to the standard. LACP facilitates the automatic creation of EtherChannels by exchanging
LACP packets between Ethernet ports.
By using LACP, the switch learns the identity of partners capable of supporting LACP and the capabilities
of each port. It then dynamically groups similarly configured port s into a single logical link (channel or
aggregate port). Similarly configured ports are grouped based on key value. For example, LACP groups the
ports with the same speed, duplex mode, native VLAN, VLAN range, and trunking status and type.
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
1
Configuring Link Aggregation Control Protocol (LACP)
IEEE 802.3ad Link Bundling
VLAN numbers.) LAN ports can form an EtherChannel when they are in compatible LACP modes, as in the
following examples:
• A LAN port in active mode can form an EtherChannel with another LAN port that is in active mode.
• A LAN port in active mode can form an EtherChannel with another LAN port that is in passive mode.
• A LAN port in passive mode cannot form an EtherChannel with another LAN port that is also in passive
mode because neither port will initiate negotiation.
LACP, on ports configured to use it, tries to configure the maximum number of compatible ports in an
EtherChannel, up to the maximum allowed by the hardware. To use the hot standby feature in the event a
channel port fails, both ends of the LACP bundle must support the lacp max-bundle command.
As a control protocol, LACP uses the Slow Protocol multicast address of 01-80-C2-00-00-02 to transmit
LACP protocol data units (PDUs). Operations, administration, and maintenance (OAM) packets also use the
Slow Protocol link type. Subsequently, a subtype field is defined per the IEEE 802.3ad standard (Annex 43B,
section 4) differentiating LACP PDUs from OAM PDUs.
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
2
Configuring Link Aggregation Control Protocol (LACP)
How to Configure LACP
Example:
Switch(config-controller-ProvisionLacpPortType)# ?
ProvisionLacpPortType sub-mode commands:
clearLacpStats Clear LACP statistics request
default Set a command to its defaults
exit Exit from ProvisionLacpPortType sub configuration
mode
getLacpConfig Get LACP configuration request
getLacpDefaults Get LACP default configuration request
getLacpPortConfig Get LACP port configuration request
getLacpPortDefaults Get LACP port default configuration request
no Negate a command or set its defaults
setLacpConfig Set LACP configuration request
setLacpDefaults Set LACP default configuration request
setLacpPortConfig Set LACP port configuration request
setLacpPortDefaults Set LACP port default configuration request
showLacpAggLB Show LACP load balance request
showLacpInternal Show LACP internal request
showLacpNeighbors Show LACP neighbor status request
showLacpStats Show LACP statistics request
showLacpSysId Show LACP system-id request
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
3
Configuring Link Aggregation Control Protocol (LACP)
Configuring LACP Globally on the Controller
Configuration Example
The following example shows the supported LACP configuration:
Switch(config-controller-ProvisionLacpPortType)# ?
ProvisionLacpPortType sub-mode commands:
clearLacpStats Clear LACP statistics request
default Set a command to its defaults
exit Exit from ProvisionLacpPortType sub configuration mode
getLacpConfig Get LACP configuration request
getLacpDefaults Get LACP default configuration request
getLacpPortConfig Get LACP port configuration request
getLacpPortDefaults Get LACP port default configuration request
no Negate a command or set its defaults
setLacpConfig Set LACP configuration request
setLacpDefaults Set LACP default configuration request
setLacpPortConfig Set LACP port configuration request
setLacpPortDefaults Set LACP port default configuration request
showLacpAggLB Show LACP load balance request
showLacpInternal Show LACP internal request
showLacpNeighbors Show LACP neighbor status request
showLacpStats Show LACP statistics request
showLacpSysId Show LACP system-id request
DETAILED STEPS
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
4
Configuring Link Aggregation Control Protocol (LACP)
Configuring LACP Globally on the Controller
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpConfig review
Commands in queue:
setLacpConfig lacpGlobalConfiguration
lacpGlobalState enable
setLacpConfig lacpGlobalConfiguration
systemPrio 2
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpConfig commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example shows global LACP configuration on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
5
Configuring Link Aggregation Control Protocol (LACP)
Configuring LACP Defaults Globally on the Controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpDefaults commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example how to configure default LACP configuration on the controller:
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
6
Configuring Link Aggregation Control Protocol (LACP)
Configuring LACP at Port level on the Controller
DETAILED STEPS
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
7
Configuring Link Aggregation Control Protocol (LACP)
Configuring LACP at Port level on the Controller
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpPortConfig review
Commands in queue:
setLacpPortConfig lacpPortConfiguration key 3
setLacpPortConfig lacpPortConfiguration lacpEnable
enable
setLacpPortConfig lacpPortConfiguration portNumber
2
setLacpPortConfig lacpPortConfiguration
portPriority 2
setLacpPortConfig lacpPortConfiguration role active
enable
setLacpPortConfig lacpPortConfiguration timeout
fast enable
setLacpPortConfig lacpPortConfiguration key 2
setLacpPortConfig lacpPortConfiguration lacpEnable
enable
setLacpPortConfig lacpPortConfiguration portNumber
2
setLacpPortConfig lacpPortConfiguration role active
enable
setLacpPortConfig lacpPortConfiguration timeout
fast enable
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpPortConfig commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example shows LACP port configuration on the Controller:
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
8
Configuring Link Aggregation Control Protocol (LACP)
Configuring Default LACP Configuration at Port level on the Controller
There is no default value for key. Configure a valid value to identify the LACP channel aggregation group.
If no value is set, key value is displayed as 0.
DETAILED STEPS
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
9
Configuring Link Aggregation Control Protocol (LACP)
Clearing LACP Statistics on the Controller
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpPortDefaults review
Commands in queue:
setLacpPortDefaults lacpPhysicalPort 2
Example:
Switch(config-controller-ProvisionLacpPortType)#
setLacpPortDefaults commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example shows default LACP port configuration on the controller :
DETAILED STEPS
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
10
Configuring Link Aggregation Control Protocol (LACP)
Clearing LACP Statistics on the Controller
Example:
Switch(config-controller-ProvisionLacpPortType)#
clearLacpStats review
Commands in queue:
clearLacpStats lacpPhysicalPort 3
Example:
Switch(config-controller-ProvisionLacpPortType)#
clearLacpStats commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example clears the LACP statistics on port 3 on the Controller:
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
11
Configuring Link Aggregation Control Protocol (LACP)
Negating LACP Configuration and Restoring Defaults
DETAILED STEPS
DETAILED STEPS
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
12
Configuring Link Aggregation Control Protocol (LACP)
Viewing the Global LACP Configuration on the controller
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpConfig commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example retrieves the global LACP configuration on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
13
Configuring Link Aggregation Control Protocol (LACP)
Viewing the Default LACP Configuration on the controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpDefaults commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example retrieves the default LACP configuration on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
14
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Configuration at Port Level on the Controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpPortConfig review
Commands in queue:
getLacpPortConfig lacpPhysicalPort 1
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpPortConfig commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
15
Configuring Link Aggregation Control Protocol (LACP)
Viewing the Default LACP Configuration at Port Level on the controller
Configuration Example
The example retrieves the LACP configuration for port 1 on the Controller:
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpPortDefaults review
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
16
Configuring Link Aggregation Control Protocol (LACP)
Verifying LACP
Example:
Switch(config-controller-ProvisionLacpPortType)#
getLacpPortDefaults commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example retrieves the default LACP configuration for port 1 on the controller :
Note NOTE: You must explicitly configure a key value. The default value for key retrieved is 0 until it is set
to a value using the setLacpPortConfig operation.
Verifying LACP
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
17
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP System ID Information on the controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpAggLB commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example displays the LACP system ID information on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
18
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Load Balance Information on the controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpAggLB review
Commands in queue:
showLacpAggLB showLacpAggLBRequest
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpAggLB commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example displays the LACP load balance information on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
19
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Internal State Information on the controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpInternal commit
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
20
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Internal State Information on the controller
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example displays the LACP internal state information on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
21
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Neighbors Status Information on the controller
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].key = 0
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].role = true
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].timeout = 1
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].portPriority= 32768
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].adminKey = 0
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].operKey = 1
ShowLacpInternal_Output.lacpPortInternals.lacpPortInternalslist[5].collectorMaxDelay = 0
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpNeighbors review
Commands in queue:
showLacpNeighbors lacpPhysicalPort 2
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpNeighbors commit
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
22
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Statistics on the controller
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example displays the LACP neighbors status information on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
23
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Statistics on the controller
DETAILED STEPS
Example:
Switch(config-controller-ProvisionLacpPortType)#
showLacpStats commit
Example:
Switch(config-controller-ProvisionLacpPortType)# exit
Configuration Example
The example displays the LACP statistics on the controller :
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
24
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Statistics on the controller
ShowLacpStats_Output.lacpPortStatistics.lacpPortStatsList[1].rxFrames = 17244
ShowLacpStats_Output.lacpPortStatistics.lacpPortStatsList[1].txFrames = 12132
ShowLacpStats_Output.lacpPortStatistics.lacpPortStatsList[1].rxIllegal = 0
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN and
Later Releases
25
Configuring Link Aggregation Control Protocol (LACP)
Viewing the LACP Statistics on the controller
Cisco ME 1200 Series Carrier Ethernet Access Devices Controller Configuration Guide, Cisco IOS 15.6(1)SN
and Later Releases
26