IP and MAC Anycast

The IP and MAC anycast feature enables you to configure the anycast gateway MAC to be used by VLANs that enable IP anycast. Using this feature, you can set the same IP address and MAC address on all edge technology devices. This allows seamless IP mobility in the network for edge devices.


IP and MAC anycast should be used only with VXLAN tenant VLANs. IP and MAC anycast should not be used with any protocols other than MLAG, since it might cause MAC flaps.


Switching through a VXLAN tunnel to a remote L3 Anycast gateway is not supported.
To configure IP/MAC anycast:
  1. Enable IP anycast on the desired VLANs by using the following command:

    enable ip anycast {vlan} vlan_name

  2. Specify the anycast gateway MAC address that is used by VLANs that enable IP anycast by using the following command:

    configure ip anycast mac [none | mac]

  3. To specify that configured secondary IP addresses respond to ARP requests with the anycast MAC address, use the following command and specify the anycast option:

    configure [ {vlan} vlan_name | vlan vlan_id]add secondary-ipaddress anycast [ip_address {netmask} | ipNetmask]

  4. To configure a source VLAN to use as the source IP address in the BOOTPrelay packet, use the following command:

    configure bootprelay dhcp-agent source-vlan {vlan_name} {vr vrid}

  5. To enable or disable a reply to multicast or anycast echo requests, use the following commands:

    enable icmp ipv6 [ignore-multicasts | ignore-anycasts]

    disable icmp ipv6 [ignore-multicasts | ignore-anycasts]

To view IP and MAC anycast information: