Multi-chassis Link Aggregation Commands
Use these M4500 CLI commands to configure Multi-Chassis Link Aggregation (MLAG) domains, peer links, keepalive, and roles, and display MLAG status.
This section describes the commands you use to configure and display Multi-Chassis Link Aggregation (MLAG). MLAG allows links that are physically connected to two different devices to appear as a single Port Channel to a third device.
mlag
This command enables Multi-Chassis Link Aggregation (MLAG) globally.
| Default | Disable |
| Format | mlag |
| Mode | Global Config |
no mlag
This command disables MLAG globally.
| Format | no mlag |
| Mode | Global Config |
mlag domain
This command creates a MLAG domain with the specified domain ID. Only one MLAG domain can be created on a given device. The domain-id of the MLAG domain should be equal to the one configured on the other MLAG peer with which this device wants to form a MLAG pair. The configured MLAG domain-ids are exchanged during role election and if they are configured differently on the peer devices, the MLAG does not become operational. Domain-id is used to derive the auto-generated MLAG virtual MAC address that is used in the actor ID field in the LACP PDUs.
| Default | None |
| Format | mlag domain <1-255> |
| Mode | Global Config |
no mlag domain
This command deletes the MLAG domain with the specified domain ID.
| Format | no mlag domain <1-255> |
| Mode | Global Config |
mlag system-mac
Use this command to manually configure the MAC address for the MLAG domain. The specified MAC address should be a unicast MAC and cannot be equal to the MAC address of either the primary MLAG or secondary MLAG device. The configured MLAG MAC address is exchanged during role election and, if they are configured differently on the peer devices, MLAG does not become operational.
The <mac-address> used in the LACP PDUs and STP BPDUs that are sent out on MLAG member ports, if MLAG primary device election takes place after the MLAG MAC address is configured. When the MLAG MAC address is configured after the MLAG primary device is elected, the operational MLAG MAC address is used in the LACP PDUs and STP BPDUs instead of the configured MLAG MAC address.
| Default | 00:00:00:00:00:00 |
| Format | mlag system-mac < mac-address> |
| Mode | Global Config |
no mlag system-mac
This command returns the MLAG system MAC address to the default settings.
| Format | no mlag system-mac |
| Mode | Global Config |
mlag system-priority
This command manually configures a system priority for the MLAG domain. The system-priority is used in the LACPPDU and BPDU. If the configured MLAG system priority is different on MLAG peers, the MLAG will not come up.
| Default | 32767 |
| Format | mlag system-priority <1-65535> |
| Mode | Global Config |
no mlag system-priority
This command restores the MLAG system priority to the default settings.
| Format | no mlag system-priority |
| Mode | Global Config |
mlag role priority
This command configures a role priority for the MLAG domain. This value is used for the MLAG role election. The MLAG switch with lower priority becomes the Primary and the switch with higher priority becomes the Secondary. If both MLAG peer switches have the same role priority, the device with the lower system MAC address becomes the Primary.
| Default | 100 |
| Format | mlag role priority <1-255> |
| Mode | Global Config |
no mlag role priority
This command resets the MLAG role priority to the default settings.
| Format | no mlag system-priority |
| Mode | Global Config |
mlag peer-link
This command configures a port channel as the MLAG peer link.
| Default | None |
| Format | mlag peer-link |
| Mode | Port Channel Interface Config |
no mlag peer-link
This command removes the MLAG peer link.
| Format | no mlag peer-link |
| Mode | Port Channel Interface Config |
mlag id
This command configures a port channel as part of a MLAG. Upon issuing this command, the port channel is down until the port channel member information is exchanged and agreed between the MLAG peer switches.
| Default | None |
| Format | mlag <1-63> |
| Mode | Port Channel Interface Config |
no mlag id
This command returns the MLAG id to the default settings.
| Format | no mlag <1-63> |
| Mode | Port Channel Interface Config |
mlag peer detection interval
This command configures the DCPDP transmission interval and reception timeout (in mini seconds).
The configurable transmission interval range is 200ms - 4000ms (Default is 1000ms). The configurable reception timeout range is 700ms - 14000ms (Default is 3500ms).
| Default |
Transmission interval: 1000ms Reception timeout: 3500ms |
| Format | mlag peer detection interval <200-4000> timeout <700-14000> |
| Mode | Global Config |
no mlag peer detection interval
This command resets the DCPDP transmission interval and reception timeout to default values.
| Format | no mlag peer detection interval <200-4000> timeout <700-14000> |
| Mode | Global Config |
mlag peer-keepalive destination
This command configures the IP address of the peer MLAG switch, which is the destination IP address of the DCPDP on the peer MLAG switch.
The configurable range for the UDP port is 1 to 65535 (Default is 50000)
| Default | UDP port: 50000 |
| Format | mlag peer-keepalive destination <ipaddress> source <ipaddress> [udp-port <1-65535>] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| destination <ipaddress> | The IP address of the peer MLAG switch. |
| source <ipaddress> | The IP address of the self MLAG switch. |
| udp-port | The UDP port on which the MLAG switch listens to the DCPDP messages. |
no mlag peer-keepalive destination
This command removes the self IP address and the peer IP address, and returns the UDP port to the default settings.
| Format | no mlag peer-keepalive destination <ipaddress> switch <ipaddress> |
| Mode | Global Config |
mlag peer-keepalive enable
This command starts the keepalive state machine on the MLAG device if MLAG is globally enabled.
| Default | Disable |
| Format | mlag peer-keepalive enable |
| Mode | Global Config |
no mlag peer-keepalive enable
This command stops the MLAG peer keepalive state machine.
| Format | no mlag peer-keepalive enable |
| Mode | Global Config |
mlag peer-keepalive timeout
This command configures the peer keepalive timeout value (in seconds). If a MLAG switch does not receive a keepalive message from the peer for the duration of this timeout value, it transitions its role (if required).
| Default | 5 |
| Format | mlag peer-keepalive timeout <2-15> |
| Mode | Global Config |
no mlag peer-keepalive timeout
This command returns the MLAG peer keepalive timeout value to the default settings.
| Format | no mlag peer-keepalive timeout |
| Mode | Global Config |
show mlag brief
This command displays the MLAG global status and current MLAG operational mode including the peer link, keepalive status, number of configured MLAG members, operational MLAG, the system MAC, and role state. If the MLAG operational status is disabled, the reason would be displayed in the brackets of MLAG operational status.
| Format | show mlag brief |
| Mode | Privileged EXEC |
Example1: The following example shows the CLI display output for the command show mlag brief. In this example, the MLAG operational status is enabled.
(M4500-32C) #show mlag brief
MLAG domain ID................................. 1
MLAG admin status.............................. Enabled
Keep-alive admin status........................ Enabled
MLAG operational status........................ Enabled
Self role...................................... Secondary
Peer role...................................... Primary
Peer detection admin status.................... Disabled
Operational MLAG MAC........................... BC:A5:11:EA:AA:01
Operational MLAG system priority............... 32767
Peer-Link details
-----------------
Interface...................................... ch64
Peer-link admin status......................... Up
Peer-link STP admin status..................... Enabled
Configured VLANs............................... 1
Egress tagged VLANs............................ none
MLAG Details
-----------
Number of MLAGs configured..................... 1
Number of MLAGs operational.................... 1
MLAG id# 1
-----------
Interface...................................... ch1
Configured VLANs............................... 1
MLAG interface state........................... Active
Local Members Status
----------------- ------
0/3 Up
Peer Members Status
---------------- ------
0/3 Up
Example2: The following example shows the CLI display output for the command show mlag brief. In this example, MLAG operational status is disabled because of disabling MLAG admin status. (The Peer-link would be down if the MLAG operational status or Keep-alive admin status is Disabled, so the peer switch would displayed Peer-link is down in the brackets of MLAG operational status)
(M4500-32C) #show mlag brief
MLAG domain ID................................. 1
MLAG admin status.............................. Disabled
Keep-alive admin status........................ Enabled
MLAG operational status........................ Disabled(Mlag admin status is disable)
Self role...................................... none
Peer role...................................... none
Peer detection admin status.................... Disabled
Operational MLAG MAC........................... 00:00:00:00:00:00
Operational MLAG system priority............... 0
show mlag
This command displays information about a MLAG. The configuration and operational modes of the MLAG are displayed; the MLAG is operationally enabled if all the preconditions are met. The port-channel that is configured as a MLAG interface is also displayed with the member ports on the current switch and peer switch (with their link status).
| Format | show mlag <1-63> |
| Mode | Privileged EXEC |
Example: The following example shows the CLI display output for the command show mlag 1.
(M4500-32C) #show mlag 1
MLAG id# 1
-----------------
Config mode.................................... Enabled
Operational mode............................... Enabled
Port channel................................... ch1
Local Members Status
----------------- ------
0/3 Up
Peer Members Status
---------------- ------
0/3 Up
show mlag role
This command displays information about the keepalive status and parameters. The role of the MLAG switch as well as the system MAC address and priority are displayed.
| Format | show mlag role |
| Mode | Privileged EXEC |
Example: The following example shows the CLI display output for the command show mlag role.
(M4500-32C) #show mlag role
Self
----
MLAG domain ID................................. 1
Keep-alive admin status........................ Enabled
Keep-alive operational status.................. Enabled
Role Priority.................................. 100
Configured MLAG MAC............................ 00:00:00:00:00:00
Operational MLAG MAC........................... BC:A5:11:EA:AA:01
Configured MLAG system priority................ 32767
Operational MLAG system priority............... 32767
Local System MAC............................... 2C:60:0C:8B:63:3B
Time-out....................................... 5
MLAG state..................................... Secondary
MLAG role...................................... Secondary
Peer
----
MLAG domain ID................................. 1
Role Priority.................................. 100
Configured MLAG MAC............................ 00:00:00:00:00:00
Operational MLAG MAC........................... BC:A5:11:EA:AA:01
Configured MLAG system priority................ 32767
Operational MLAG system priority............... 32767
Role........................................... Primary
Local System MAC............................... 2c:60:0c:8b:65:09
show mlag consistency-parameters
This command displays the global parameters of the self and peer devices which should be the identical in MLAG domain.
‘ * ‘ means that the parameters between self and peer device configurations are different. “MST VLAN Configuration“ displays associated vlans with MSTP (Multiple Spanning Tree Protocol) instance 0. “IGMP Snooping VLAN Configuration“ displays associated vlans with IGMP Snooping. “MLD Snooping VLAN Configuration“ displays associated vlans with MLD Snooping.
| Format | show mlag consistency-parameters {global | {interface port-channel <portchannel-id>}} |
| Mode |
Privileged Exec User Exec |
Example:
(M4500-32C) (Config)#show mlag consistency-parameters global
Parameter Self Value Peer Value diff
------------------------- ----------------------- ----------------------- -----
STP Mode Disabled Disabled
STP Version IEEE 802.1w IEEE 802.1s *
BPDU Guard Mode Disabled Disabled
FDB Age Time (seconds) 1000000 1000000
ARP Age Time (seconds) 1200 1200
LACP system priority 32768 32768
MLAG system MAC address 00:00:00:00:00:00 00:00:00:00:00:00
MLAG system priority 32767 32767
MLAG domain ID 1 1
IGMP Admin Mode Enabled Enabled
MLD Admin Mode Disabled Disabled
MST VLAN Configuration
Instance Associated VLANS
---------- ------ -----------------------------------------------
0 Self 1
Peer 1
IGMP Snooping VLAN Configuration
Associated VLANS
---------- -----------------------------------------------
Self 1
Peer 1
MLD Snooping VLAN Configuration
Associated VLANS
---------- -----------------------------------------------
Self 1
Peer 1
show mlag peer-keepalive
This command displays the peer MLAG switch IP address used by the dual control plane detection protocol. The port used for the DCPDP is shown. This command also displays if peer detection is enabled. If enabled, the detection status is displayed. The DCPDP message transmission interval and reception timeout are also displayed.
| Format | show mlag peer-keepalive |
| Mode | Privileged EXEC |
Example: The following example shows the CLI display output for the command show mlag peer-keepalive.
(M4500-32C) #show mlag peer-keepalive
Peer IP address................................ 172.16.2.33
Source IP address.............................. 172.16.2.52
UDP port....................................... 50000
Peer detection admin status.................... Enabled
Peer detection operational status.............. Up
Peer is detected............................... TRUE
Configured Tx interval......................... 1000 milliseconds
Configured Rx timeout.......................... 3500 milliseconds
Operational Tx interval........................ 1000 milliseconds
Operational Rx timeout......................... 3500 milliseconds
show mlag statistics
This command to displays counters for the keepalive and peer-link messages transmitted and received by the MLAG switch.
| Format | show mlag statistics {peer-keepalive | peer-link} |
| Mode | Privileged EXEC |
Example: The following example shows the CLI display output for the command show mlag statistics peer-keepalive.
(M4500-32C) # show mlag statistics peer-keepalive
Total transmitted.............................. 63341
Tx successful.................................. 63341
Tx errors...................................... 0
Total received................................. 63342
Rx successful.................................. 63342
Rx Errors...................................... 0
Timeout counter................................ 0
Example: The following example shows the CLI display output for the command show mlag statistics peer-link.
(M4500-32C) # show mlag statistics peer-link
Peer link control messages transmitted......... 16
Peer link control messages Tx errors........... 0
Peer link control messages Tx timeout.......... 0
Peer link control messages ACK transmitted..... 64
Peer link control messages ACK Tx errors....... 0
Peer link control messages received............ 64
Peer link data messages transmitted............ 642
Peer link data messages Tx errors.............. 0
Peer link data messages Tx timeout............. 0
Peer link data messages received............... 1298
Peer link BPDU's transmitted to peer........... 0
Peer link BPDU's Tx errors..................... 0
Peer link BPDU's received from peer............ 14
Peer link BPDU's Rx errors..................... 0
Peer link LACPDU's tranmsitted to peer......... 0
Peer link LACPDU's Tx errors................... 0
Peer link LACPDU's received from peer.......... 642
Peer link LACPDU's Rx errors................... 0
show mlag core-config
This command displays information about the core configurations to ensure this device can form a MLAG pair.
This command displays two sections: required configurations and optional configurations. In the required configurations section, all the required configurations that starts the MLAG peer keepalive state machine are displayed. In the optional configurations section, the configurations that might change the roles of devices which form MLAG pair are displayed.
| Format | show mlag core-config |
| Mode |
Privileged Exec User Exec |
Example:
M4500-32C) (Config)#show mlag core-config
Required configurations
-----------------
MLAG domain ID................................. 1
MLAG admin status.............................. Enabled
Keep-alive admin status........................ Enabled
Peer-link interface............................ ch64
Peer-link admin status......................... Up
Optional configurations
-----------------
Configured MLAG MAC............................ 00:00:00:00:00:00
Role Priority.................................. 100
Time-out....................................... 5
clear mlag statistics
This command clears all the keepalive and peer-link statistics.
| Format | clear mlag statistics {peer-keepalive | peer-link} |
| Mode | Privileged EXEC |