VPC/MLAG Commands
Use these commands to configure Virtual Port Channel (VPC), also referred to as Multi-Chassis Link Aggregation (MLAG).
A Virtual port channel (VPC), also referred to as Multi-Chassis Link Aggregation (MLAG), allows multiple switches to collaborate as a unified logical switch. An MLAG allows links that are physically connected to two different devices to appear as a single port channel to another device, using VPC technology.
Each VPC configuration requires a VPC domain, which defines the relationship between the two peer switches. The peer switches communicate through a peer-keepalive link to detect whether the peer is reachable, and through the peer link to synchronize MAC address tables and other forwarding state.
feature vpc
M4350
This command enables VPC globally on the switch. VPC must be enabled before any VPC domain or VPC member configuration can be applied.
| Default | Disabled |
| Format | feature vpc |
| Mode | Global Config |
no feature vpc
This command disables VPC globally.
| Format | no feature vpc |
| Mode | Global Config |
vpc domain
M4350
This command creates a VPC domain with the specified domain ID. Only one VPC domain can be configured on a given switch. The domain ID configured on both VPC peer switches must be identical. If the domain IDs are different, VPC does not become operational. The domain ID is used to derive the auto-generated VPC virtual MAC address that is used in the actor ID field in LACP PDUs.
| Format | vpc domain {1-255} |
| Mode | Global Config |
no vpc domain
This command deletes the VPC domain with the specified domain ID.
| Format | no vpc domain |
| Mode | Global Config |
system-priority
M4350
This command configures a system priority for the VPC domain. The system priority is used in LACP PDUs and STP BPDUs. The VPC system priority must match on both peer switches.
| Default | 32767 |
| Format | system-priority {1-65535} |
| Mode | VPC Config |
no system-priority
This command restores the VPC system priority to the default setting.
| Format | no system-priority |
| Mode | VPC Config |
role priority
M4350
This command configures a role priority for the VPC domain. The role priority is used in VPC role election. The VPC peer switch with the lower role priority value becomes the primary peer; the switch with the higher value becomes the secondary peer. If both peer switches have the same role priority, the switch with the lower system MAC address becomes the primary peer.
| Default | 100 |
| Format | role priority {1-255} |
| Mode | VPC Config |
no role priority
This command resets the VPC role priority to the default setting.
| Format | no role priority |
| Mode | VPC Config |
vpc peer-link
M4350
This command configures the current LAG interface as the VPC/MLAG peer link. The peer link carries inter-switch control traffic between the two VPC peer switches and, when a VPC member link fails, also carries data traffic. The peer link must be a LAG interface.
| Format | peer-link |
| Mode | VPC Config |
no vpc peer-link
This command removes the VPC peer link.
| Format | no peer-link |
| Mode | VPC Config |
vpc
M4350
This command configures the current port-channel, or LAG, interface as a VPC member and assigns it the specified VPC ID. The same VPC ID must be configured on the corresponding port-channel on the peer switch.
| Format | vpc {1-63} |
| Mode | Interface (Port-Channel) Config |
no vpc
This command removes the VPC ID from the port-channel interface.
| Format | no vpc {1-63} |
| Mode | Interface (Port-Channel) Config |
peer detection enable
M4350
This command enables peer detection, or dual-active avoidance, over the keepalive link.
| Default | Disabled |
| Format | peer detection enable |
| Mode | VPC Config |
no peer detection enable
This command disables peer detection.
| Format | no peer detection enable |
| Mode | VPC Config |
peer-keepalive destination
M4350
This command configures the IP address of the peer, or destination, switch. You must also specify the source IP address of the local, or source, switch.
| Default | UDP port: 50000 |
| Format | peer-keepalive destination {ipaddress} source {ipaddress} |
| Mode | VPC Config |
| Parameter | Description |
|---|---|
| destination {ipaddress} | The IP address of the peer VPC switch. |
| source {ipaddress} | The IP address of the local VPC switch. |
no peer-keepalive destination
This command removes the configured peer and source IP addresses and returns the UDP port to the default setting.
| Format | no peer-keepalive destination {ipaddress} source {ipaddress} |
| Mode | VPC Config |
peer-keepalive timeout
M4350
This command configures the peer keepalive timeout value, in seconds. If a VPC switch does not receive a keepalive message from the peer switch for the duration of this timeout, it transitions its role if required.
| Default | 5 |
| Format | peer-keepalive timeout {2-15} |
| Mode | VPC Config |
no peer-keepalive timeout
This command returns the peer keepalive timeout value to the default setting.
| Format | no peer-keepalive timeout |
| Mode | Interface (Port-Channel) Config |
addport lag
M4350
This command adds the physical port to the LAG.
| Format | addport LAG {id} |
| Mode | Interface (Port-Channel) Config |
show vpc brief
M4350
Use this command to display a summary of the domain, role, peer-link, and per VPC status.
| Format | show vpc brief |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc brief
VPC Domain ID................................... 64
VPC admin status................................ Enabled
Keep-alive admin status......................... Enabled
VPC operational status.......................... Enabled
Self role....................................... Primary
Peer role....................................... Secondary
Peer detection admin status..................... Peer detected, VPC Operational
Operational VPC MAC............................. C0:FF:D4:A7:DA:40
Operational VPC system priority................. 4096
Peer-Link details
-----------------
Interface....................................... lag 64
Peer-link admin status.......................... Up
Peer-link STP admin status...................... Enabled
Configured VLANs................................ 1,19
Egress tagged VLANs............................. 19
VPC Details
-----------
Number of VPCs configured....................... 6
Number of VPCs operational...................... 4
VPC id# 1
-----------
Interface....................................... lag 1
Configured VLANs................................ 1
VPC interface state............................. Active
VPC Link State.................................. Up
Local Members Status
----------------- ------
1/0/1 Up
Peer Members Status
---------------- ------
1/0/1 Up
show vpc
M4350
Use this command to display a detailed status of the specified VPC, including the port-channel interface configured as the VPC member and the member ports on the local switch and peer switch with their link status.
| Format | show vpc {1-64} |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc brief
VPC id# 1
-----------------
Config mode..................................... Enabled
Operational mode................................ Enabled
Port channel.................................... lag 1
Local Members Status
----------------- ------
1/0/1 Up
Peer Members Status
---------------- ------
1/0/1 Up
show vpc role
M4350
Use this command to display the VPC role of the local switch and its peer, including system MAC address, system priority, role priority, keepalive status, and timeout value.
| Format | show vpc role |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc role
Self
----
VPC Domain ID................................... 64
Keep-alive admin status......................... Enabled
Keep-alive operational status................... Enabled
Role Priority................................... 100
Configured VPC MAC.............................. 00:00:00:00:00:00
Operational VPC MAC............................. C0:FF:D4:A7:DA:40
Configured VPC system priority.................. 4096
Operational VPC system priority................. 4096
Local System MAC................................ 28:94:01:7C:F1:0C
Time-out........................................ 2
Operational Timeout............................. 2
VPC state....................................... Primary
VPC role........................................ Primary
Peer
----
VPC Domain ID................................... 64
Role Priority................................... 100
Configured VPC MAC.............................. 00:00:00:00:00:00
Operational VPC MAC............................. C0:FF:D4:A7:DA:40
Configured VPC system priority.................. 4096
Operational VPC system priority................. 4096
Role............................................ Secondary
Local System MAC................................ 28:94:01:7c:f1:18
show vpc peer-keepalive
M4350
Use this command to display the peer-keepalive, or peer detection, status and parameters.
| Format | show vpc peer-keepalive |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc peer-keepalive
Peer IP address................................. 10.10.15.0
Source IP address............................... 10.10.14.254
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 vpc consistency-parameters
M4350
Use this command to display the parameters that must be identical on both peer switches for the VPC to come up.
| Format | show vpc consistency-parameters {global | interface lag} |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc consistency-parameters global
Parameter Value
------------------------- -------------------------------------------------------
Machine Model M4350-16C
SDM Template IPv4-Basic
STP Mode Enabled
STP Version IEEE 802.1w
BPDU Filter Mode Disabled
BPDU Guard Mode Disabled
FDB Age Time 3000 seconds
VPC System MAC Address C0:FF:D4:A7:DA:40
VPC System Priority 4096
VPC Domain ID 64
show vpc statistics
M4350
Use this command to display counters for the keepalive and peer link messages transmitted and received by the VPC switch.
| Format | show vpc statistics peer-keepalive |
| Mode | Privileged EXEC |
Command example:
(NETGEAR Switch)#show vpc statistics peer-keepalive
Total transmitted............................... 2512861
Tx successful................................... 2512861
Tx errors....................................... 0
Total received.................................. 2512683
Rx successful................................... 2512683
Rx Errors....................................... 0
Timeout counter................................. 6