Labs / First Contact / ICMP & gateway redundancy

Lab 2 of 2 · ICMP & gateway redundancy

First-hop redundancy: one gateway address, two routers

Share one gateway address between two routers with VRRP, then power one off.

Open this lab Pro 7 steps

The idea

A laptop reaches a server through two routers, routerA and routerB. They share one gateway address, so the laptop never notices one of them dying.

The gateway is a pair that moves
The gateway is a pair that moves
Alive is not the same as useful
Alive is not the same as useful

Steps

  1. Two routers, one gateway address

    One gateway is one point of failure, so two routers share its address. The laptop's gateway is 10.0.1.254, an address no router was given. Both routers run VRRP and each has a virtual card, vrrp.1. Look at what that card holds on routerA, then on routerB.

    routerA:~# ip -br addr show vrrp.1
    routerB:~# ip -br addr show vrrp.1
  2. A MAC address no card was born with

    Sharing the address is not enough: the laptop sends its frames to the gateway's MAC address, which it learned with ARP, and that must survive a failure too. Look at its neighbour entry for 10.0.1.254, then at routerA's virtual card.

    laptop:~# ip neigh show 10.0.1.254
    routerA:~# ip -d link show vrrp.1

Pro

5 more steps in the app

  1. The master advertises
  2. routerA fails
  3. routerA returns and takes over
  4. Track the uplink
  5. Preemption off
Get Pro

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Open this lab