anycast gateway

term

networkingcloud

Kept in this browser · My desk

Anycast gateway: a default gateway configured with the same IP address, and usually the same MAC address, on every leaf switch of a fabric, so each host's gateway is always the switch it is attached to and no election or Hello protocol is needed.

Defined for EVPN by RFC 9135 (2021) as part of integrated routing and bridging. Its recommended form gives every PE the same anycast IP and MAC; the alternative keeps a MAC per PE and aliases them with RFC 7432's Default Gateway extended community. Because every leaf answers ARP and Neighbor Solicitation for the gateway itself, a host that moves keeps a valid gateway entry, and the failure of one leaf affects only its own hosts. Vendors implement it as anycast IRB or a virtual gateway address (Juniper), anycast-gw (Nokia), an EVPN anycast gateway (FortiOS 8.0.0) and, outside EVPN, VARP (Arista).

The MAC. RFC 9135 allows the anycast MAC to be derived from VRRP's ranges, 00-00-5E-00-01-VRID for IPv4 and 00-00-5E-00-02-VRID for IPv6, with VRID 1 unless configured, but only when it cannot collide with a customer MAC; Nokia's SR Linux does exactly that. How it fails. Juniper documents that in centrally routed overlays an ARP reply carrying the virtual MAC inside but the IRB MAC as its Ethernet source leaves intermediate switches unable to learn the virtual MAC, so they flood unknown unicast until a virtual gateway MAC is configured; RFC 9568 avoids the same trap in VRRP by sourcing advertisements from the virtual MAC. Duplicate host MACs bounce between PEs until RFC 7432's detection stops after 5 moves in 180 s. Not to confuse with IP anycast for services, which advertises one prefix from many sites by BGP.

Also known as: distributed anycast gateway, anycast irb, anycast gateway mac, virtual gateway address, varp, virtual arp, gateway anycast

Sources

← Back to A Back to the glossary