The VRRP protocol lets two routers present one virtual IP as the default gateway, so hosts keep working if the active router fails. Hosts are configured with that one virtual address, not with either physical router. VRRP elects one router as master to own the virtual address and forward traffic; if it stops advertising, a backup takes that address over. For a small site with a single upstream gateway and no dynamic routing on the hosts, that is the whole value.
Rayin (Shenzhen Rayin Technology) is a manufacturer of GPON OLTs and industrial Ethernet switches.
VRRP shares one virtual gateway IP between routers; hosts point at the virtual address, so a gateway change needs no host reconfiguration.
The router with the highest priority becomes master; priority is a number you set, commonly with tracking to step down if its uplink fails.
VRRP is a Layer 3 first-hop mechanism — it is not a substitute for Layer 2 ring or link redundancy such as RSTP or ERPS.
Every host on a network needs a default gateway — the next hop for traffic leaving its subnet. At a small site there is often only one router doing that job. If it fails, every host loses its route off the network, even though the local switch and cabling are fine. Changing the gateway address on every host is slow and error-prone.

VRRP removes that single point of failure at the gateway. Two (or more) routers join a VRRP group and share one virtual IP. Hosts use the virtual IP as their default gateway. One router, the master, owns that address and forwards traffic. The other stays in backup, listening. If the master stops sending advertisements, a backup promotes itself and takes over the virtual IP. The hosts notice nothing — their gateway address never changed. This is first-hop redundancy: it protects the first router in the path, not the links behind it.
| Without VRRP | With VRRP |
|---|---|
| One router is the gateway | Two routers share a virtual gateway IP |
| Gateway failure strands every host | Backup takes over the virtual IP |
| Recovery needs host reconfiguration | Hosts keep the same address |
Priority decides. Each router in the group is given a priority value, and the highest one becomes master. The default is 100; setting one router higher makes it the preferred master in normal operation. The router with the highest priority sends periodic advertisements to the group's multicast address. As long as those advertisements arrive, backups stay quiet and do not forward traffic for the virtual IP.
If the master stops advertising, backups wait a short interval and then the highest-priority backup promotes itself. That promotion is what keeps the gateway alive. Timing is governed by the advertisement interval, which is why the failover is not instantaneous — there is a detection window before a backup takes over. RFC 5798 defines VRRP version 3 for IPv4 and IPv6; the RFC number is the reliable reference and specific sections should be checked against the current text before being quoted.
| Parameter | Typical role | Effect |
|---|---|---|
| Priority | Sets preference (default 100) | Higher value becomes master |
| Advertisement interval | How often master announces itself | Sets detection time on failure |
| Preemption | Whether a higher-priority router can retake master | Controls failback behaviour |
| Tracking | Ties priority to an interface state | Steps master down if its uplink fails |
A router can be healthy while its upstream link is dead. If that router is the VRRP master, it keeps advertising and keeps being chosen — but every packet it receives has nowhere to go. Static priority alone cannot see this. Tracking fixes it by tying priority to the state of a monitored interface: if the uplink goes down, the router lowers its own priority, and a backup with the now-higher priority takes over.
Preemption is the companion setting. It decides whether a router that recovers, and now has the higher priority, retakes the master role from a backup that is currently serving. With preemption on, traffic fails back to the preferred router once it is healthy. With it off, the current master keeps the role until it fails again. Either is valid; the choice should be deliberate, because unexpected failback can interrupt sessions just as a failover does.
This is the most common confusion, and it matters for design. VRRP protects the default gateway — a Layer 3 function. RSTP, ERPS and LACP protect Layer 2 links and loops; dual homing protects a device's uplink. They solve different problems and are normally used together. A site can run ERPS around an industrial ring for sub-second link recovery and VRRP between two gateways for host default-gateway survival. One does not replace the other. For the Layer 2 side, see RSTP, ERPS, LACP and dual homing compared.
| Mechanism | Layer | What it protects |
|---|---|---|
| VRRP | 3 (first hop) | The hosts' default gateway |
| RSTP / ERPS | 2 | Loops and ring links |
| LACP | 2 | Aggregated links and bandwidth |
| Dual uplink | 2 | A device's physical uplink |
For a fuller view of specifying redundancy at a site, see no single point of failure in a managed switch design. And because a failover that has never been tested is a guess, prove a redundant link actually fails over before you trust the design. For where Layer 2 ends and Layer 3 begins, Layer 2 versus Layer 3 switching sets the boundary.

VRRP protects the gateway address, not the whole path. If both routers share the same upstream link or the same power source, taking that link down strands both — redundancy at the first hop does not help when the failure is common to both boxes. Physical diversity is a separate design decision. It also does not load-balance by default: with one virtual IP and one master, only one router forwards at a time, so the backup is idle until a failure.
Failover depends on timers and on the backup actually receiving advertisements. A switch between the two routers that drops multicast, or a misconfigured advertisement interval, can cause both routers to believe they are master. That split-brain state is worse than having one gateway. Testing under a real failure — pulling the master's uplink, not just rebooting it — is the only reliable check. Figures described here as typical are planning values, not measured specifications of any Rayin product, and no certification is implied.
Does VRRP need special configuration on the hosts? No. Hosts are configured with the virtual IP as their default gateway, exactly as they would be with a physical router. The routers run VRRP; the hosts see one ordinary gateway address and need no changes when a failover occurs.
Is VRRP the same as a Layer 2 ring protocol? No. VRRP is a Layer 3 first-hop mechanism that protects the default gateway. RSTP and ERPS protect Layer 2 loops and ring links. They address different failures and are commonly deployed together.
What happens if the master router's uplink fails but the router is still on? Without tracking, nothing — the master keeps advertising and traffic stops. With interface tracking, the master lowers its priority and a healthy backup takes over the virtual IP.
Does VRRP increase available bandwidth? Not by default. One router is master and forwards for the virtual IP; the backup stays idle until failover. Multiple VRRP groups can be used to spread different gateways, but that is a deliberate design, not an automatic benefit.
How fast is a VRRP failover? It depends on the advertisement interval and the detection logic, so it is not instantaneous. There is a short window before a backup promotes itself. Test the actual fail-over time on the installed equipment rather than assuming a number.
The redundancy statements above come from public sources: RFC 5798 for VRRP version 3, and general first-hop redundancy practice for priorities, preemption and interface tracking. Only the RFC number is cited; no clause numbers are asserted. The comparison tables and wording are written by Sara, who checked each figure against those sources before publication. Anything presented as a typical value is labelled as such; nothing here is a measured figure from a Rayin product or a claim of any certification.
About the author: Sara — Sara is a Customer Manager at Rayin with over 10 years of experience in the communications field. In her free time, she enjoys badminton and swimming.
About Rayin: Shenzhen Rayin Technology Co., Ltd. — Company Profile