First Hop Redundancy Protocols

Done

With this feature a network can have two or more routers in case the active one fails, allowing for redundancy.

Routers using these protocols will both share a virtual IP Address and a virtual MAC Address (each FHRP uses a different format for the virtual MAC).

Also, once the current active router fails, the standby router will send Gratuitous ARP. These are ARP reply without ARP requests, so the switches in the network can update their outgoing interfaces for a given MAC Address. Usually an ARP Reply is a Unicast, but in a Gratuitous ARP, it will be broadcast.

đź’ˇ
FHRP are “non-preemptive”. It is similar to OSPF DR/BDR, the current roles will not change until something fails or reloads, by default. This can be changed by settings.

HSRP (Hot Standby Router Protocol)

đź’ˇ
IMPORANT: The MAC Address is a hexadecimal number, so the same applies for the group number. For example, it is possible to use the group number 200 in version 1 of HSRP, because it is equal to c8 in hexadecimal.

VRRP (Virtual Router Redundancy Protocol)

GLBP (Gateway Load Balance Protocol)

Configure HSRP

configure terminal
interface g0/0
standby {group-number} ip {virtual-ip}
đź’ˇ
IMPORTANT: The group-number MUST match between the routers

Choose which router will be the Active

configure terminal
interface g0/0
standby {group-number} priority {0-255}

In order, the active router will be the one with:

  1. Higher Priority (default 100)
  1. Higher IP Address

Enable preemptive behavior

Enabling this will make the right active router take the lead even if another router has the active role. This is used in case the main router comes back up online.

configure terminal
interface g0/0
standby {group-number} preempt
đź’ˇ
IMPORTANT: For it to take the role of active router it MUST have a higher priority or IP Address.
đź’ˇ
NOTE: You can only enable it on the router you want to be active

Change HSRP version

configure terminal
interface g0/0    //interface configuration mode
standby version {1 | 2}

Verify HSRP

show standby