A default gateway shared by two routers is the textbook case of first-hop redundancy, and First-hop redundancy: VRRP, HSRP, and the gateway that is a fiction explains it: the virtual router, the virtual media access control (MAC) address, the election, the timers, the Hot Standby Router Protocol (HSRP) and the attacks. This fifth part of the series on redundant architectures starts where that article stops, at scale: hundreds of virtual routers on one pair of routers, gateways that share the load instead of idling, gateways that must follow the health of their uplinks, IPv6 hosts that choose among routers by themselves, and data centre fabrics in which every switch is the gateway at once. After reading, you can say what version 3 of the Virtual Router Redundancy Protocol (VRRP) changed and why a mixed network still meets version 2, compute what a tracked object does to an election, size the advertisement load of a design, choose between two virtual routers, Cisco's Gateway Load Balancing Protocol () and an anycast gateway, and list the failures each one is known for.

VRRP version 3: three documents, one protocol

VRRP has been rewritten four times, each time in a (RFC), and the version a network runs decides what it can do:

DocumentDateProtocol versionStatus at the RFC EditorWhat it brought
RFC 2338April 19982Proposed Standard, obsoleted by RFC 3768The protocol, with Simple Text Password and IP Authentication Header authentication
RFC 3768April 20042Draft Standard, obsoleted by RFC 5798Authentication removed; IPv4 only; whole-second intervals
RFC 5798March 20103Proposed Standard, obsoleted by RFC 9568IPv4 and IPv6 in one protocol; centisecond intervals
RFC 9568April 2024 in its header (the RFC Editor's record says May 2024)3Proposed Standard, currentTerminology, corrected state machine, clarified checksum, immediate re-assertion

The statuses and the obsoleted-by chain come from the RFC Editor's records (RFC 2338, RFC 3768, RFC 5798, RFC 9568); the authentication types are listed in RFC 2338, section 5.3.6, and RFC 3768 removed them "because operational experience showed that they did not provide any real security and would only cause multiple masters to be created" (RFC 3768, section 5.3.6). One curiosity of that chain: version 2 had reached Draft Standard, and version 3, which replaced it, is still a Proposed Standard, one maturity level lower.

What version 3 changed in the timers

Version 2 counted in seconds: its advertisement interval field "indicates the time interval (in seconds) between ADVERTISEMENTS", with a default of 1 second, and its skew was computed as (256 - Priority) / 256 seconds whatever the interval (RFC 3768, sections 5.3.7 and 6.1). Version 3 turned the field into a 12-bit Max Adver Int in centiseconds, default 100, and multiplied the skew by the interval learnt from the Active Router (RFC 5798, sections 5.2.7 and 6.1). At a 1-second interval the two versions give the same detection time; only version 3 lets the whole computation shrink:

Backup priorityVRRPv2 at 1 sVRRPv3 at 100 cs (1 s)VRRPv3 at 10 cs (100 ms)VRRPv3 at 1 cs (10 ms)
2543.0078 s3.0078 s0.3008 s0.0301 s
2003.2188 s3.2188 s0.3219 s0.0322 s
100 (default)3.6094 s3.6094 s0.3609 s0.0361 s
13.9961 s3.9961 s0.3996 s0.0400 s

Every cell is 3 × interval + skew, computed from each RFC's own formula. The VRRP timer calculator gives the same numbers for any priority and interval, version 2 included.

Version 2 was also stricter about disagreement: a receiver "MUST verify that the Adver Interval in the packet is the same as the locally configured for this virtual router" and discard the packet otherwise (RFC 3768, section 7.1). Version 3 has the Backup adopt the interval it hears from the Active Router (RFC 5798, section 6.4.2), and RFC 9568 makes the comparison advisory: "Checking that the Maximum Advertisement Intervals match is recommended, although this will not result in the VRRP packet being dropped" (RFC 9568, section 1.1). In version 2 a mismatched interval made the Backup discard every advertisement and take over beside the Master; in version 3 the Backup follows the Active Router's interval and the mismatch is only logged (section 7.1).

What RFC 9568 changed from RFC 5798

RFC 9568 lists ten changes (RFC 9568, section 1.1). Four matter on a live network:

  • The state machine was corrected. Erratum 4698 against RFC 5798, held for document update in 2016, pointed out that a comment in the Backup state said "preempt was true or priority was less" where the logic required "and" (RFC Editor, errata for RFC 5798); RFC 9568 folds such errata in.
  • The checksum was clarified. RFC 5798 defined the checksum over the message "and a ''" from the IPv6 specification without saying what an IPv4 router should do (RFC 5798, section 5.2.8). RFC 9568 settles it: for IPv4 "the checksum calculation only includes the VRRP message", and only IPv6 prepends a pseudo-header (RFC 9568, section 5.2.8). Implementations had already taken sides. Juniper documents that since Junos OS Release 12.2 "the pseudoheader is included only when calculating the IPv6 VRRP checksum", while earlier releases computed the IPv6 checksum the version 2 way, so IPv6 VRRP across that release boundary "does not interoperate" without a compatibility statement (Juniper, Junos OS High Availability User Guide, Junos OS Support for VRRPv3, published 15 November 2026). FRRouting (FRR) offers checksum-with-ipv4-pseudoheader, documented as "Specify whether VRRPv3 checksum should involve IPv4 pseudoheader" and "Enabled by default", the opposite of what RFC 9568 settled (FRRouting documentation, VRRP). A receiver must verify the checksum and discard the packet when it fails (RFC 9568, section 7.1), so two IPv4 routers that compute it differently never accept each other's advertisements.
  • The Active Router re-asserts itself. "When a VRRP advertisement is received from a lower priority VRRP Router, the Active VRRP Router will immediately send a VRRP advertisement to assure learning bridges will bridge the packets to the correct segment" (RFC 9568, section 1.1, item 5, and section 6.4.3). Before, a briefly confused Backup could leave switches pointing the virtual MAC at the wrong port until the next periodic advertisement.
  • IPv6 neighbours are updated. Active and Backup Routers "SHOULD accept Unsolicited Neighbor Advertisements and update the corresponding neighbor cache" (RFC 9568, section 8.2.4).

Six errata against RFC 9568 have been verified since it appeared (RFC Editor, errata for RFC 9568). Three are covered in the first-hop article; the other three tighten what a receiver checks and sends. Erratum 7947 corrects the gratuitous Address Resolution Protocol () message of section 6.4.1 to carry the virtual router's IPv4 address, not its , in the field where the text had put the MAC; erratum 8299 adds a check that the address count is non-zero, as section 5.2.5 already required; and erratum 8300 has an IPv6 receiver verify that the first address listed is link-local (same page).

Two versions on one segment

RFC 9568 keeps an interoperation mode and fences it in: "VRRPv2 and VRRPv3 interoperation is optional", and "Mixing the two versions should not be considered a permanent solution" (RFC 9568, section 8.4.1). On one local area network (), a router configured for both sends both kinds of advertisement at its configured rate, and a Backup facing a version 2 Active Router translates its seconds into centiseconds (section 8.4.2). Two traps follow. A version 2 router should not hold a higher priority than a sub-second version 3 router, because it would win with a slow advertisement the others time out on (section 8.4.2.1.1); and a version 3 Active Router at centisecond rates "could potentially overwhelm a VRRPv2 Backup Router with potentially non-deterministic results", so the RFC's upgrade path is to run version 3 at 100 centiseconds until the last version 2 router is gone (section 8.4.2.1.2).

The implementations differ in their defaults. FRR creates version 3 unless told otherwise and needs Linux 5.1 or later (FRRouting documentation, VRRP). FortiOS "supports VRRP versions 2 and 3" and sets its advertisement interval in whole seconds, 1 to 255 (Fortinet, FortiOS 8.0.0 Administration Guide, VRRP; VRRP failover). Junos OS has supported RFC 3768, RFC 5798 and the VRRPv3 management information base since Release 12.2 (Juniper, High Availability User Guide). Arista's EOS 4.37.0F manual describes version 2 as the default and version 3 as the one that supports IPv6, with intervals of 1 to 255 seconds (Arista, EOS 4.37.0F User Manual, VRRP and VARP). A network of routers from these sources can therefore hold version 2 and version 3 groups, whole-second and centisecond timers, and two checksum conventions at the same time.

Hundreds of groups: the load nobody counts

Each virtual router is a separate instance with its own timer. The Active Router sends one advertisement per interval for every virtual router it owns (RFC 9568, section 6.4.3), and IPv4 and IPv6 virtual routers "are independent of one another and always treated as separate Virtual Router instances" (section 1). The arithmetic is short, and it is the router's control plane that pays it:

DesignAdvertisements per second from the Active Router
200 virtual local area networks (VLANs), one IPv4 virtual router each, 1 s200
The same with IPv6 added400
1,000 groups at 100 ms (Juniper's own threshold for its remedy)10,000
1,000 groups at 100 ms, 999 of them inheriting stateabout 15.6 to 18.3

The third row is the case for which Juniper's guide says "if you have 1000 VRRP groups with an advertisement interval of 100 ms, then use inherit groups" (Juniper, High Availability User Guide, Improving the Convergence Time for VRRP). With vrrp-inherit-from, "only the active VRRP group, from which the other VRRP groups are inheriting the state, sends out frequent VRRP advertisements", while the inheriting groups advertise "once every 2 to 3 minutes to facilitate MAC address learning on the switches placed between the VRRP routers" (same guide, Configuring Inheritance for a VRRP Group). The last row is that rule worked: 10 advertisements a second from the active group, plus 999 groups every 120 to 180 seconds, about 5.6 to 8.3 a second.

Cisco's equivalent for HSRP is Multiple Group Optimization: one primary group elects the active and standby routers, client groups linked to it by name follow its state without an election of their own, and they send only periodic refresh messages so that switches keep learning their virtual MAC addresses, at a lower rate than the primary's Hellos. Cisco's guide also puts the limit at up to 4,000 operational HSRP groups on a device (Cisco, First Hop Redundancy Protocols Configuration Guide, Configuring HSRP, IOS XE 16, updated 3 June 2026).

The load matters because a late advertisement is a failover. RFC 9568 describes the queueing case, in which a Backup promotes itself on a delayed advertisement and back again "many times per second" (RFC 9568, section 2.5); the first-hop article gives the remedy, priority for VRRP on egress queues. Juniper lists four measures for the same problem: hand advertisements to a distributed periodic packet management process, because "When the VRRP process is busy and does not send VRRP advertisements, the backup VRRP routers might assume that the primary router is down"; disable the skew timer when there is only one Backup; set how many fast advertisements a Backup may miss; and inherit state across groups (Juniper, High Availability User Guide, as above).

Grouped failure, and failover in batches

Many groups on one pair raise a second question: should they fail over together? keepalived's sync groups exist so that "transition of one instance will be reflected to others group members" (keepalived.conf(5)). FortiOS reaches the same result with VRRP groups: "If one of the virtual routers in a VRRP group switches to the backup, the VRRP group forces all members to switch to backups", because otherwise, with virtual routers on several interfaces, "only one can switch to being a backup, and the others remain operating normally" (Fortinet, FortiOS 8.0.0, VRRP groups). That matters wherever traffic must leave by the same router it entered, which is the subject of part 7 on stateful clusters.

Even a grouped failover is not instantaneous. On Junos, the VRRP process tells the forwarding hardware about each role change, and to avoid overloading it a failover delay timer spaces those messages: 500 milliseconds when the advertisement interval is under a second, 2 seconds at 1 second or more with 255 groups on the router, and 10 seconds with more than 255. Without configuring it, the first group's transition is immediate "while state transition on the Packet Forwarding Engine for remaining VRRP groups is delayed" by those amounts (Juniper, High Availability User Guide, VRRP failover-delay Overview). The guide's conclusion is honest: even with every measure applied, "the convergence time might not be less than 1 second for all the configurations" (same guide, Improving the Convergence Time for VRRP). A table of per-group timers is therefore not the failover time of a router that holds a thousand groups.

Sharing the load: two virtual routers, or GLBP

VRRP elects one forwarder per virtual router, and RFC 9568 shares load the simple way: its sample network 2 runs two virtual routers on the same LAN, each router Active for one and Backup for the other, with "half of the hosts" configured with each address as their gateway (RFC 9568, section 4.2). One of the protocol's design goals was to "allow multiple Virtual Routers on a network for " (section 2.1), but the split is left to whoever configures the hosts: "the details of load-balancing are out of scope of this document" (section 4.2). In practice that means two Dynamic Host Configuration Protocol () scopes or two halves of a server farm, and a split that drifts as hosts come and go.

GLBP, Cisco's protocol, moves the split into the gateway. The description below comes from two Cisco guides (Cisco, Configuring GLBP, IOS XE 16, updated 3 June 2026; Cisco, Nexus 7000 Series NX-OS Unicast Routing Configuration Guide 8.x, Configuring GLBP, updated 20 July 2026):

  • Two roles. The group elects one active virtual gateway (AVG) by priority, 100 by default, the higher address breaking a tie. Each member is the active virtual forwarder (AVF) for a virtual MAC address that the AVG assigned it, up to four virtual forwarders per group in the IOS XE guide; the others stand by as secondary forwarders for that MAC.
  • One address, several MACs. Hosts send ARP requests for the single virtual IP address, and the AVG answers each with one of the forwarders' MAC addresses: round robin, the default for IPv4 in the Nexus guide, weighted by each forwarder's advertised weight, or host-dependent, which chooses by the host's own MAC address so that a host keeps the same forwarder.
  • Timers. Hellos every 3 seconds to 224.0.0.102 on User Datagram Protocol (UDP) port 3222, a hold time of 10 seconds, a redirect timer of 600 seconds during which the AVG keeps sending hosts to a forwarder that has gone, and a forwarder timeout of 14,400 seconds after which that virtual MAC is no longer valid.
  • Preemption. Off by default for the AVG; on by default for forwarders, with a delay of 30 seconds.
  • Weighting. Each member starts at 100; tracked objects reduce the weighting, and below a lower threshold the member stops being a forwarder until it rises above an upper one.

Worked on four forwarders under round robin: each answers a quarter of the hosts. When one fails, a secondary takes over its virtual MAC, so no host loses its gateway, but the survivor now carries 50% while the two others keep 25% each, until hosts age out their ARP entries and ask again. The AVG keeps handing out the lost MAC until the redirect timer ends, after 10 minutes, and the secondary stops forwarding for it when the forwarder timeout ends, after 4 hours. The same failure in RFC 9568's two-router split leaves one router carrying everything.

Two VRRP virtual routersGLBPAnycast gateway
Who splits the loadWhoever configures the hostsThe AVG, in its ARP repliesEach host's own attachment point
ElectionOne per virtual routerOne AVG, plus one AVF per virtual MACNone
Hello trafficOne stream per virtual routerOne per memberNone for the gateway itself
StandardRFC 9568Cisco's documentationRFC 9135 for Ethernet virtual private network () fabrics; features otherwise
After one router failsThe survivor carries allOne survivor carries its own share and the failed one'sHosts behind the failed switch move with their links

Two cautions come with GLBP in Cisco's own guides: each forwarder needs its own MAC address on the interface, so the hardware must support several, and Enhanced Object Tracking is not aware of stateful switchover, so it cannot be used with GLBP in that mode (IOS XE guide, as above). The Nexus guide adds a general rule: do not configure more than one first-hop redundancy protocol on the same interface (Nexus guide, as above).

Object tracking: the gateway that follows its uplink

Neither VRRP nor HSRP looks past the LAN, and the first-hop article shows the classic failure: an Active Router whose uplink died keeps winning the election. Every vendor fixes it with tracking, and every vendor's tracking is different. Side by side, from each one's own documents:

ImplementationWhat it can trackWhat tracking doesDefaults and limits stated
Cisco HSRPTracked objects: interfaces, routes and othersLowers the priorityDecrement 10 if none is configured, and cumulative
Juniper Junos OSLogical interfaces, their speed, routesSubtracts a priority cost per objectUp to 10 interfaces per group; the sum of costs at most the configured priority; a hold time between changes
Nokia SR OSPort down, link aggregation group (LAG) port down, host unreachable, route unknownSubtracts a delta, or sets an explicit priorityDelta floor 1 by default; lowest explicit value wins
Fortinet FortiOSUp to two destination addresses (vrdst)The primary stops advertising, or advertises a lower priorityvrdst-priority for active signalling
keepalivedScripts, interfaces, files, processes, Bidirectional Forwarding Detection ()Adds or subtracts a weight, or forces FAULTScript weight 0 by default, which means FAULT
Arista EOSObjects created by trackLowers the priority or shuts the virtual router downSet per tracked object: a decrement or a shutdown

The rows come from Cisco's HSRP guide (Cisco, Configuring HSRP); Juniper's guide, which states "For each VRRP group, you can track up to 10 logical interfaces" and "The sum of the priority costs for all tracked logical interfaces must be less than or equal to the configured priority of the VRRP group" (Juniper, High Availability User Guide, Configuring a Logical Interface to Be Tracked for a VRRP Group); Nokia's router guide, in which a delta event "subtracts a specified amount from the current, in-use priority", an explicit event sets it, and "When multiple explicit priority events happen simultaneously, the lowest value is used for the in-use priority" (Nokia, 7750 SR Router Configuration Guide 22.2.R1, VRRP priority control policy delta in-use priority limit; Nokia, 22.7.R1, VRRP policy); Fortinet's guide, under which "Up to two VRRP destination addresses can be configured to be monitored by the primary router" and an unreachable destination makes it stop "sending VRRP advertisement messages", unless vrdst-priority makes it "actively signal to the backup routers" with a lower priority (Fortinet, FortiOS 8.0.0, VRRP failover); keepalived's manual, in which a script's weight defaults to 0 and an instance then enters the fault state after the configured number of consecutive failures (keepalived.conf(5)); and Arista's manual (Arista, VRRP and VARP).

Nokia's floor deserves a note: the delta in-use limit defaults to 1, "which prevents the delta priority events from operationally disabling the virtual router instance" (Nokia, 22.2.R1, as above). Juniper went the other way in Release 15.1, when an adjusted priority of zero became possible, which makes the router resign at once (Juniper, as above). Two vendors, two answers to the question of whether a tracked failure should take a router out of the group entirely.

An election, worked

Juniper's route-tracking example gives Router R2 priority 200 and three tracked /32 routes, each with a priority cost of 5, and Router R1 priority 195 (Juniper, High Availability User Guide, Configuring VRRP Route Tracking). Played through RFC 9568's state machine with preemption on, the default:

Tracked routes missing on R2R2 priorityR1 priorityOutcome
0200195R2 stays Active
1195195R2 stays Active: a Backup resets its timer on an advertisement whose priority is greater than or equal to its own
2190195R1 discards R2's lower advertisements and becomes Active when its own timer fires
3185195As above

The tie in the second row is RFC 9568's rule for a Backup: "If Preempt_Mode is False, or if the Priority in the ADVERTISEMENT is greater than or equal to the local Priority", it resets its timer (RFC 9568, section 6.4.2). The higher primary address breaks a tie only for a router that is already Active (section 6.4.3). So losing one route of three changes nothing, which may be the intent. When it does change, R1 takes over one Active_Down_Interval after the last advertisement it accepted: at priority 195 and 1 second, 300 + 61 × 100 / 256 = 323.83 centiseconds, 3.24 seconds. Junos's priority hold time exists so that the election does not follow every flap: "This ensures that Junos OS does not initiate primary role elections every time a tracked interface flaps" (Juniper, as above).

The same arithmetic with Cisco's default decrement of 10 on an Active router at 110 against a standby at 100 ends in a tie that the higher address settles, as the first-hop article shows. The rule that both cases teach is RFC 9568's own: priorities need "sufficient differences" (RFC 9568, section 8.3.2), and a tracked cost must exceed the gap it is meant to close.

Brazil: tracking in an exchange's access rules

The Brazilian exchange B3 writes tracking into its access requirements. Its technology access manual, version 8.5 of 13 February 2026, lists among the features of the routers at a participant's edge a first-hop redundancy protocol, with HSRP or VRRP as the examples, and, on the next line, "Feature Track"; it adds: "If two routers are acquired, bear in mind that VRRP and HSRP are not compatible with each other. Only one of the two should be used." (our translation here and below) (B3, Manual for Access to the Technology Infrastructure (in Portuguese), version 8.5, 13 February 2026, section 3.2). How participants reach the exchange is in Brazil's exchange and electronic access.

IPv6: hosts that choose their own router

An IPv6 host learns its routers from Router Advertisements and keeps a Default Router List, so it has more to work with than an IPv4 host with one configured gateway. The protocol's own timers show why that is not redundancy enough:

  • Advertisements are slow. At defaults a router sends unsolicited advertisements at intervals of up to 600 seconds and announces a Router Lifetime of three times that, 1,800 seconds (RFC 4861, section 6.2.1), as the IPv6 address configuration article computes. A router that dies without a word stays in the list for up to 30 minutes by lifetime alone.
  • Neighbour Unreachability Detection is slower than VRRP. The states are explained in IPv6 Neighbor Discovery. Timed from RFC 4861's constants, a host that sends to a dead router whose entry is already stale waits 5 seconds in the delay state, then sends 3 probes a second apart: 8 seconds. If a confirmation arrived just before the failure, the entry first stays reachable for its ReachableTime, a random 15 to 45 seconds, so detection takes 8 to 53 seconds (RFC 4861, sections 7.3.3 and 10). RFC 9568 adds that the timers could be made more aggressive, "note that the current lower limit for this is 5 seconds", at the cost of much more Neighbor Discovery (ND) traffic (RFC 9568, section 1.4). Against VRRPv3's 3.61 seconds, that is 2.2 to 14.7 times slower.
  • Preferences are configured, not computed. RFC 4191 lets a router advertise itself as High, Medium (the default) or Low preference, two bits, and "Having just three values reinforces that they are not metrics"; the values "require administrative configuration; they are not automatically derived from routing tables" (RFC 4191, Abstract and section 2.1). A host that implements them "primarily prefers reachable routers over non-reachable routers and secondarily uses the router preference values" (section 3.2). Preference steers hosts towards a router; it does not detect that router's death any faster.
  • More than one prefix means more than one correct router. Where each upstream assigns its own prefix and filters by source, RFC 8028 specifies "to which router a host should present its transmission": a host should "send messages using a source address in a given prefix to the router that advertised the prefix in its Router Advertisement (RA)" (RFC 8028, Abstract and section 1.1). A first-hop group that hides two upstreams behind one virtual router has to honour the same constraint.

VRRP for IPv6 sits on top of this. The Active Router sends the Router Advertisements for the virtual router, and Backups "MUST be configured to send the same Router Advertisement options as the address owner" (RFC 9568, section 8.2.3); options that announce a special service should not be sent unless the Backups can take it over in full (same section). Cisco documents the same pattern for HSRP: a virtual link-local address derived by default from the virtual MAC address, taken from the range 0005.73A0.0000 to 0005.73A0.0FFF, with periodic advertisements only while the group is active and a final one when it stops being active (Cisco, Configuring HSRP, as above). Two things go wrong in practice. A router that sends its own advertisements beside the virtual router's gives hosts a second default router that no first-hop protocol protects, and RA Guard on access ports is the switch-side control for advertisements that should not be there. And Duplicate Address Detection delays a new Active Router's addresses: Juniper lists disabling it on interfaces with tracked VRRP as one of its convergence measures, because "convergence time is high after an IPv6 interface that has been configured for VRRP tracking comes up" (Juniper, High Availability User Guide, Improving the Convergence Time for VRRP, as above).

The anycast gateway: every switch is the gateway

In a data centre fabric, the first hop moved from a pair of routers to every leaf switch. RFC 9135, Integrated Routing and Bridging in Ethernet , of October 2021, explains why. With a centralized gateway, two tenant systems on different subnets behind the same provider edge (PE) had their traffic "backhauled from the PE all the way to the centralized gateway" and back; "For today's large multi-tenant Data Center (DC), this scheme is very inefficient and sometimes impractical" (RFC 9135, section 1). Integrated routing and bridging () puts the gateway on each PE of the EVPN, the edge switches the series met in part 4's EVPN multihoming. The Multiprotocol Label Switching (MPLS) primer explains the labels underneath one of the encapsulations it runs over.

One address and one MAC, everywhere

RFC 9135 gives two ways to configure the gateway on every PE. In the first, "All the PEs for a given tenant subnet use the same anycast default gateway IP and MAC addresses"; in the second, each PE keeps its own MAC address and they are aliased to the shared IP address through the Default Gateway extended community of RFC 7432 (RFC 9135, section 4.1; RFC 7432, section 10.1). "option 1 is recommended": it needs no extended community and no aliasing, and "following host mobility, the host does not need to refresh the default GW ARP/ND entry" (RFC 9135, section 4.1). The shared MAC address may be derived automatically from VRRP's own ranges, 00-00-5E-00-01-{VRID} for IPv4 and 00-00-5E-00-02-{VRID} for IPv6, with a virtual router identifier of 1 unless configured, and only "if there is certainty that the auto-derived MAC does not collide with any customer MAC address" (same section). Each IRB interface can carry a second, non-anycast address for ping and traceroute (same section).

RFC 9135 defines no election and no Hello for the gateway. Every PE answers ARP and Neighbor Solicitation for the gateway address itself and routes what it receives, so the failure of one PE is the failure of the hosts attached to it, and a host that is multihomed to two PEs with EVPN multihoming simply sends its frames down the other links of its bundle.

Symmetric and asymmetric routing

RFC 9135 defines two forwarding models, and the choice changes what each switch must hold:

Symmetric IRBAsymmetric IRB
LookupsMAC then IP at the ingress PE; IP then MAC at the egress PEMAC, IP and MAC again at the ingress PE; MAC only at the egress PE
Tunnel between PEsBetween IP virtual routing and forwarding instances (VRFs)Between bridge tables; must carry Ethernet
ARP and MAC tablesLocal hosts and local subnets onlyRemote hosts too, and every subnet of the tenant on every PE
Time to live () or hop limitDecremented twice, once by each PEDecremented once, by the ingress PE

All four rows are RFC 9135's (section 4), which sums the choice up as "a trade-off between scale (which is better in the symmetric IRB mode) and control plane simplicity (asymmetric IRB mode simplifies the control plane)" (section 4.2). The two modes can coexist; the egress PE signals which one it wants through the routes it advertises (section 4.2).

When a host moves

A gateway that is everywhere makes moving a host cheap, and the hard part becomes knowing where the host now is. RFC 9135 handles three behaviours of a host that moves between PEs: one that sends a , one that just starts sending data, and a silent host that sends nothing and is found only when an age-out timer on the old PE sends an ARP probe (RFC 9135, sections 7.1 to 7.3). In each case the new PE advertises the host with the MAC Mobility extended community and a sequence number incremented by one, and every other PE prefers the higher number (same sections). Two failures are written into the standard. Two hosts with the same MAC address make it move back and forth for ever, so a PE that sees N moves within M seconds, "with a default value of M = 180" and "with a default value of N = 5", concludes "that a duplicate-MAC situation has occurred", alerts the operator and stops advertising that MAC (RFC 7432, section 15.1); five moves in 180 seconds is one move every 36 seconds on average. And address resolution floods: RFC 9161 adds an EVPN proxy ARP and ND function that helps operators "by reducing and even suppressing the flooding produced by address resolution in the EVPN network" (RFC 9161, Abstract).

The same idea in four vendors' documents

Vendor and featureHow the gateway is sharedMAC addressNotes from the vendor
Juniper, IRB with anycast address or virtual gateway address (VGA)Same IP and MAC on every IRB, or a VGA beside a unique IRB addressVGA auto-generates 00:00:5E:00:01:01 (IPv4) or 00:00:5E:00:02:01 (IPv6) unless configuredRecommends one virtual gateway MAC (VMAC) per virtual network, the same on every IRB serving it
Nokia SR Linux 24.7, anycast-gwSame IP and MAC on the IRB subinterfaces of all leaves in the broadcast domainAuto-derived per RFC 9135, virtual router identifier 1 unless configuredSkips duplicate address detection for the anycast address
Fortinet FortiOS 8.0.0, EVPN anycast gatewayAll leaves serving a share the gateway IP and a virtual MACvirtual-mac-vrid, 1 to 255New in 8.0.0, with EVPN IRB and type-5 routes
Arista EOS, Virtual ARP (VARP)Every switch answers ARP for the shared router address and routesOne global virtual MAC for all VLAN interfaces, never used as a sourceGratuitous ARP every 30 s by default; preferred over VRRP with multi-chassis link aggregation ()

The sources: Juniper's EVPN guides, which say that with a VGA the gateway "automatically generates IPv4 media access control (MAC) address 00:00:5E:00:01:01" and recommend assigning "the same VMAC to all IRB interfaces that you configure with the same VGA" (Juniper, Using a Default Layer 3 Gateway to Route Traffic in an EVPN-VXLAN Overlay Network; Juniper, Anycast Gateways); Nokia's SR Linux guide, under which anycast gateways "allow configuration of the same IP and MAC addresses on the IRB interfaces of all leaf switches attached to the same BD", "use a default virtual-router-id of 01, if not explicitly configured", and the system skips "the ARP/ND duplicate-address-detection procedures for the anycast-GW IP address" (Nokia, SR Linux R24.7 EVPN Guide, EVPN for Layer 3); Fortinet's guide, under which "all leaf switches that connect endpoints in the same VLAN (or subnet) share the same virtual default gateway IP address" (Fortinet, FortiOS 8.0.0, EVPN support for VXLAN Anycast gateway and type-5 routing); and Arista's manual (Arista, VRRP and VARP). Cisco co-authored RFC 9135, but its own configuration guide for the feature was not read for this article. , the Virtual Extensible LAN encapsulation that most of these fabrics use, has its own glossary entry.

How gateways at scale fail, and how the failures are found

Each case below is recorded in a standard or a vendor's document; what to look at follows each one.

  • A tracked cost that ties. The Junos example above loses one route and changes nothing; Cisco's default decrement can tie a standby. Look at the effective priorities on both routers after taking the tracked object down in a test window, and compare them with the configured gap (RFC 9568, section 8.3.2).
  • Too many groups for one control plane. Late advertisements promote Backups (RFC 9568, section 2.5), and forwarding updates arrive in batches (Juniper's failover delay). Count the groups and their intervals before choosing sub-second timers, and capture with the vrrp filter on the LAN to see the real advertisement rate; the multicast MAC mapper shows the Ethernet address that 224.0.0.18 travels to.
  • Two checksum conventions. Two IPv4 routers that disagree about the pseudo-header discard each other's advertisements and both become Active, so a capture on the LAN shows advertisements from both. Juniper's own example output of tcpdump shows what a decoder prints for a checksum computed the other way: "bad vrrp cksum" (Juniper, High Availability User Guide, IPv6 VRRP Checksum Behavioral Differences).
  • The virtual MAC that switches never learn. RFC 9568 makes the Active Router source its advertisements from the virtual MAC precisely so that bridges learn it (RFC 9568, section 2.4). Juniper documents the case where that does not happen: in a centrally routed EVPN overlay, a gateway with a VGA answers ARP with the virtual MAC inside the packet but its own IRB MAC in the Ethernet header, so an intermediate switch "is unable to find the virtual MAC in its MAC table" and "floods the domain with unknown unicast packets"; configuring a virtual gateway MAC removes the problem (Juniper, Understanding the MAC Addresses For a Default Virtual Gateway). Unknown-unicast flooding on every port of a VLAN is the symptom; the MAC table entry for the gateway is the check.
  • A protection that takes down both halves. Juniper's EVPN core isolation brings down the server-facing bundles of a leaf that "loses all of its EVPN peering sessions", which is right for a leaf cut off from the spines. In a collapsed design with only two spines and older multichassis pairs below them, losing the link between the spines takes down the last session on both, both put their leaf-facing links in standby, and "traffic within the data center would essentially be halted" (Juniper, Understanding When to Disable EVPN-VXLAN Core Isolation). It is the shared fate the hub's outage table shows at Optus: a protective rule, identical on both devices, triggered by one event.
  • A host that keeps moving. Duplicate MAC detection stops advertising a MAC after five moves in 180 seconds (RFC 7432, section 15.1). The alarm names the MAC; the two ports it moves between name the two hosts.
  • Mixed protocols. VRRP and HSRP do not form one group, as B3's manual warns, and version 2 and version 3 mix only as a transition (RFC 9568, section 8.4.1). An inventory of which protocol and version each router runs is the check.
  • A GLBP forwarder that stays half alive. A member whose weighting falls below its lower threshold stops being a forwarder, and hosts that learnt its MAC are served by the secondary until they ask again (Cisco's GLBP guides, as above). The virtual MAC in each host's ARP entry shows which forwarder it still uses.

These are tests to run in a window, not to read about; part 10 is about running them, and change windows that do not become incidents about the window. The packet capture plan builder helps place captures on both routers of a pair; the lookup of organizationally unique identifiers (OUIs) and the IPv6 Toolkit decode the virtual MAC and the link-local address a capture shows; and the Python playground reruns any of the timer and load arithmetic above.

What to remember

  • VRRPv3 (RFC 5798, then RFC 9568 of April 2024) brought IPv6 and centisecond timers; at 1 second it detects a failure exactly as fast as VRRPv2, and only below 1 second is it faster.
  • RFC 9568 fixed the state machine, settled the IPv4 checksum (no pseudo-header), made the Active Router re-assert itself at once, and turned interval mismatches into log lines; implementations from before the clarification can still disagree on the checksum.
  • Version 2 and version 3 mix only during an upgrade, at 100 centiseconds, with no version 2 router holding the highest priority.
  • Advertisement load grows with groups times families divided by the interval: 1,000 groups at 100 ms is 10,000 a second, and state inheritance (Juniper) or Multiple Group Optimization (Cisco) is the remedy; a thousand groups do not fail over in the time of one.
  • Load sharing with VRRP means two virtual routers and a split of the hosts; GLBP has one AVG hand out up to four virtual MACs, and a failed forwarder's MAC is served by a survivor until hosts ask again.
  • Tracking differs by vendor in what it watches, how much it subtracts and whether it can take a router out entirely; a cost that does not exceed the priority gap changes nothing.
  • IPv6 hosts detect a dead router by Neighbor Unreachability Detection in 8 to 53 seconds at default timers and keep it on their list for up to 30 minutes by lifetime; preferences steer, they do not detect.
  • An EVPN anycast gateway has no election: every leaf owns the same IP and MAC (RFC 9135's recommended option); its failure modes are mobility, duplicate MACs, flooding and protective rules that act on both halves at once.

Sources