Configure Unique Virtual MAC Addresses per VRID

In addition to system-configured standards-based virtual MAC addresses, you can manually configure a unique virtual MAC address for each IPv4 and IPv6 VRRP or VRRP-E instance per virtual routing ID (VRID). If there is no manually configured virtual MAC address (VMAC) for a VRRP instance, the system automatically assigns one.

About this task

On SLX-OS devices, you can configure a maximum of 13 virtual router MAC addresses per device; this includes both IPv4 VRRP-E & IPv6 VRRP-E sessions.

Note

Note

System-assigned virtual MAC addresses and manually configured virtual MAC addresses can exist at the same time on the device under the same VRID, however the configured value takes precedence. When the configured value is deleted, the assigned value again applies.
Note

Note

A virtual MAC address can be dynamically updated while a VRRP or VRRP-E session is enabled. When the VRRP or VRRP-E virtual MAC address is modified on the master device, expect a traffic drop until the host device receives the GARP request or Router Advertisement (RA) containing the updated virtual MAC address from the master VRRP device.

To configure a unique VRRP or VRRP-E virtual MAC address for a VRID, complete the following steps.

Procedure

  1. On the device designated as a VRRP-E device, from privileged EXEC mode, enter configuration mode.
    device# configure terminal
    
  2. Globally enable the VRRP-E protocol.
    device(config)# protocol vrrp-extended
    
  3. Configure a virtual ethernet interface link.
    device(config)# interface ve 10
    
  4. Configure the IP address of the interface.
    All devices configured for the same VRID must be on the same subnet.
    device(config-if-Ve-10)# ip address 10.53.5.3/24
    
  5. Assign the device to a VRID group.
    device(config-if-Ve-10)# vrrp-extended-group 12
    
    Note

    Note

    You can assign a VRID number in the range of 1 through 13. This example assigns the device to VRIP group 12.
  6. Manually configure an IPv4 virtual MAC address for the virtual router group.
    device(config-vrrp-extended-group-12)# virtual-mac 02e0.5200.0012
    Note

    Note

    System-assigned virtual MAC addresses and manually configured virtual MAC addresses can exist at the same time on the device under the same VRID, however the configured value takes precedence. When the configured value is deleted, the assigned value again applies.
  7. To display IPv4 VRRP-E virtual MAC address configuration information about VRID 12 (for example), enter the following command:
    device# show vrrp detail
    
    Total number of VRRP session(s)   : 1
    
    VRID 12
      Interface: Ve 10;  Ifindex: 1207959562
      Mode: VRRPE
      Admin Status: Enabled
      Description :
      Address family: IPv4
      Version: 2
      Authentication type: MD5 Authentication
      State: Initialize
      Session Master IP Address:
      Virtual IP(s): 192.168.4.100
      Virtual MAC Address: 02e0.5200.0112
    .
    .
    .
    The partial output shows the manually configured VMAC address.

Example

The following example configures an IPv4 virtual MAC address for VRID 12 on a VRRP-E device.

device# configure terminal
device(config)# protocol vrrp-extended
device(config)# interface ve 10
device(config-if-Ve-10)# ip address 10.53.5.3/24
device(config-if-Ve-10)# vrrp-extended-group 12
device(config-vrrp-extended-group-12)# virtual-mac 02e0.5200.0012