anycast gateway
termoGuardado neste navegador · Minha bancada
Gateway anycast: um default gateway configurado com o mesmo endereço IP, e em geral o mesmo MAC, em todo switch leaf de um fabric, de modo que o gateway de cada host é sempre o switch a que ele está ligado e não é preciso eleição nem protocolo de Hello.
Definido para o EVPN pela RFC 9135 (2021) como parte do integrated routing and bridging. A forma recomendada dá a todo PE o mesmo IP e o mesmo MAC anycast; a alternativa mantém um MAC por PE e os associa pela Default Gateway extended community da RFC 7432. Como todo leaf responde por conta própria ao ARP e ao Neighbor Solicitation do gateway, um host que se move continua com uma entrada de gateway válida, e a falha de um leaf afeta só os hosts dele. Os fabricantes o implementam como IRB anycast ou virtual gateway address (Juniper), anycast-gw (Nokia), gateway anycast EVPN (FortiOS 8.0.0) e, fora do EVPN, VARP (Arista).
O MAC. A RFC 9135 permite derivar o MAC anycast das faixas do VRRP, 00-00-5E-00-01-VRID para IPv4 e 00-00-5E-00-02-VRID para IPv6, com VRID 1 se nada for configurado, mas só quando ele não puder colidir com um MAC de cliente; o SR Linux da Nokia faz exatamente isso. Como falha. A Juniper documenta que, em overlays com roteamento centralizado, uma resposta ARP que leva o MAC virtual dentro mas o MAC do IRB como origem Ethernet deixa os switches intermediários sem aprender o MAC virtual, de modo que inundam unicast desconhecido até que se configure um MAC de gateway virtual; a RFC 9568 evita a mesma armadilha no VRRP usando o MAC virtual como origem dos anúncios. MACs de host duplicados vão e voltam entre PEs até a detecção da RFC 7432 parar após 5 movimentos em 180 s. Não confundir com o anycast IP de serviços, que anuncia um prefixo a partir de muitos sites pelo BGP.
Também conhecido como: distributed anycast gateway, anycast irb, anycast gateway mac, virtual gateway address, varp, virtual arp, gateway anycast
Fontes
- RFC 9135, Integrated Routing and Bridging in Ethernet VPN (EVPN), October 2021, Proposed Standard, sections 1, 4.1 and 7 (read 2026-11-16): the same anycast gateway IP and MAC on every PE recommended over per-PE MACs aliased by the Default Gateway extended community; auto-derivation from 00-00-5E-00-01-VRID with VRID 1 by default only without collision; hosts need not refresh their gateway entry after a move
- Nokia, SR Linux R24.7 EVPN Guide, EVPN for Layer 3 (read 2026-11-16): anycast-gw IRB subinterfaces with the same IP and MAC on all leaves of a broadcast domain, virtual-router-id 1 by default, duplicate address detection skipped for the anycast address
- Juniper Networks, Using a Default Layer 3 Gateway to Route Traffic in an EVPN-VXLAN Overlay Network (read 2026-11-16): a virtual gateway address auto-generates 00:00:5e:00:01:01 or 00:00:5e:00:02:01; the same VMAC on every IRB with the same VGA
- Juniper Networks, Understanding the MAC Addresses For a Default Virtual Gateway in an EVPN-VXLAN or EVPN-MPLS Overlay Network (read 2026-11-16): in centrally routed overlays, an ARP reply sourced from the IRB MAC leaves intermediate switches flooding unknown unicast to the virtual MAC
- Fortinet, FortiOS 8.0.0 Administration Guide, EVPN support for VXLAN Anycast gateway and type-5 routing (read 2026-11-16): all leaf switches serving a VLAN share the virtual default gateway IP and MAC, virtual-mac-vrid 1 to 255
- Arista Networks, EOS 4.37.0F User Manual, VRRP and VARP, read through a fetch tool (read 2026-11-16): VARP lets every switch answer ARP for a shared router address with one virtual MAC never used as a source, gratuitous ARP every 30 s by default, preferred over VRRP with MLAG