CCNA Notes

200-301 Exam Prep

Progress0/67

0% complete

Practice TestsNew
1Networking Devices2Interfaces And Cables3OSI Model and TCP/IP Suite4Intro to the CLI5Ethernet LAN Switching - Part 16Ethernet LAN Switching - Part 27IPv4 Addressing - Part 18IPv4 Addressing - Part 29Switch Interfaces10The IPv4 Header11Routing Fundamentals - Part 111Static Routing - Part 212Life of a Packet13Subnetting - Part 114Subnetting - Part 215Subnetting (VLSM) - Part 316VLANs - Part 117VLANs - Part 218VLANs - Part 319DTP / VTP20Spanning Tree Protocol - Part 121Spanning Tree Protocol - Part 222Rapid Spanning Tree Protocol23Etherchannel24Dynamic Routing25RIP / EIGRP26OSPF - Part 127OSPF - Part 228OSPF - Part 329First Hop Redundancy Protocol30TCP and UDP31IPv6 - Part 132IPv6 - Part 233IPv6 - Part 334Standard Access Control List35Extended Access Control List36CDP and LLDP37NTP - Network Time Protocol38DNS - Domain Name System39DHCP - Dynamic Host Configuration Protocol40SNMP - Simple Network Management Protocol41SYSLOG42SSH - Secure Shell43FTP and TFTP44NAT (Static) - Part 145NAT (Dynamic) - Part 246QoS (Voice VLAN) - Part 147QoS (Quality of Service) - Part 248Security Fundamentals49Port Security50DHCP Snooping51Dynamic ARP Inspection52LAN Architectures53WAN Architectures54Virtualization and Cloud - Part 154Virtualization (Containers) - Part 254Virtualization (VRF) - Part 355Wireless Fundamentals56Wireless Architectures57Wireless Security58Wireless Configuration59Introduction to Network Automation60JSON, XML, and YAML61REST APIs62Software Defined Networking63Ansible, Puppet, and Chef67CCNA Complete Cheatsheet
/First Hop Redundancy Protocol
Topic 294 min read

First Hop Redundancy Protocol

/
Tip: Select text to highlight or pin your reading position

29. FIRST HOP REDUNDANCY PROTOCOLS

THE PURPOSE OF FHRPS

imageClick to enlarge

What happens when the configured DEFAULT GATEWAY for network HOSTS goes down ?

What happens to the routed traffic?

How can we route our traffic to the functional GATEWAY at R2 (.253) ?

This is what the FIRST HOP REDUNDANCY PROTOCOL is designed to fix


FIRST HOP REDUNDANCY PROTOCOL (FHRP)

  • Computer networking protocol
  • Designed to PROTECT the DEFAULT GATEWAY used on a SUBNET by allowing TWO or MORE ROUTERS to provide BACKUP for that ADDRESS
  • In the event of a FAILURE of the ACTIVE ROUTER, the BACKUP ROUTER will take over the ADDRESS (usually within seconds)

HOW DOES FHRP WORK?

  • TWO (or more) ROUTERS share a VIP (A Virtual IP ADDRESS)
  • THIS VIP is used by HOSTS as the DEFAULY GATEWAY IP
  • The ROUTERS communicate with each other by sending “Hello” messages
  • One ROUTER becomes the ACTIVE ROUTER, the other(s) STANDBY
  • When a HOST sends traffic to an ADDRESS outside of the NETWORK, it sends an ARP REQUEST (Broadcast Flood) to the VIP to find out it’s MAC ADDRESS
    • Spanning Tree prevents BROADCAST STORM due to Broadcast Flood
  • The ACTIVE ROUTER sends the ARP REPLY back (it’s VIRTUAL MAC ADDRESS) to the HOST
  • The HOST now sends traffic OUTSIDE of the NETWORK with:
    • Source IP (HOST IP)
    • Destination IP (External IP ADDRESS)
    • Source MAC (HOST MAC ADDRESS)
    • Destination MAC (GATEWAY VIP MAC ADDRESS)

imageClick to enlarge

IF R1 goes down, R2 will switch from STANDY to ACTIVE after not receiving “Hello” messages from R1

imageClick to enlarge

The HOST ARP TABLE doesn’t need to change since the MAC ADDRESS of the VIP is already known and traffic flows externally via R2

R2 DOES need to update the SWITCHES with a GRATUITOUS ARP

  • GRATUITOUS ARP is an ARP REPLY sent without being REQUESTED (no ARP REQUEST received)
  • GRATUITOUS ARP uses BROADCAST (FFFF.FFFF.FFFF) - Normal ARP REPLY is Unicast

imageClick to enlarge

imageClick to enlarge

What happens is R1 comes back ONLINE again?

It becomes a STANDBY ROUTER

R2 remains the ACTIVE ROUTER

<aside> 💡 FPRPs are “non-preemptive”. The current ACTIVE ROUTER will not automatically give up its role, even if the former ACTIVE ROUTER returns.

*** You CAN change this setting to make R1 ‘preempt’ R2 and take back it’s ACTIVE role, automatically ***

</aside>

HSRP (HOT STANDBY ROUTER PROTOCOL)

  • Cisco proprietary

  • An ACTIVE and STANDBY ROUTER are elected

  • There are TWO VERSIONS :

    • version 1
    • version 2 : adds IPv6 support and increases # of groups that can be configured
  • Multicast IPv4 ADDRESSES :

    • v1 : 224.0.0.2
    • v2 : 224.0.0.102
  • VIRTUAL MAC ADDRESSES :

    • v1 : 0000.0c07.acXX (XX = HSRP GROUP NUMBER)
    • v2 : 0000.0c9f.fXXX (XXX = HSRP GROUP NUMBER)
  • In a situation with MULTIPLE SUBNETS / VLANS, you can configure a DIFFERENT ACTIVE ROUTER in EACH SUBNET / VLAN to LOAD BALANCE

imageClick to enlarge


VRRP (VIRTUAL ROUTER REDUNDANCY PROTOCOL)

  • Open Standard

  • A MASTER and BACKUP ROUTER are elected

  • Multicast IPv4 ADDRESSES :

    • 224.0.0.18
  • VIRTUAL MAC ADDRESSES :

    • 0000.5e00.01XX (XX = VRRP GROUP NUMBER)
      • for GROUP NUMBERS > 99, you need to convert the number to HEX
      • Example: 200 = “c8” in Hex so the MAC would be 0000.5e00.01c8
  • In a situation with MULTIPLE SUBNETS / VLANS, you can configure a DIFFERENT MASTER ROUTER in EACH SUBNET / VLAN to LOAD BALANCE

imageClick to enlarge


GLBP (GATEWAY LOAD BALANCING PROTOCOL)

  • Cisco Proprietary

  • LOAD BALANCES among MULTIPLE ROUTERS within a SINGLE SUBNET

  • An AVG (Active Virtual Gateway) is elected

  • Up to FOUR AVFs (Active Virtual Forwarders) are assigned BY the AVG (the AVG can be an AVF, too)

  • Each AVF acts as the DEFAULT GATEWAY for a portion of the HOSTS in the SUBNET

  • Multicast IPv4 ADDRESSES :

    • 224.0.0.102
  • VIRTUAL MAC ADDRESSES :

    • 0007.b400.XXYY (XX = GLBP GROUP NUMBER, YY = AVF NUMBER)

MEMORIZE THIS CHART and the differences between the FHRPs

imageClick to enlarge


BASIC HSRP CONFIGURATION

R1s configuration

imageClick to enlarge

NOTE : group number has to match ALL ROUTERS being configured in a given SUBNET

imageClick to enlarge

R2’s configuration

imageClick to enlarge

NOTE : HSRP versions are not cross-compatible. All ROUTERS must use the same HSRP Version

Output of the “show standby” command

imageClick to enlarge

PreviousOSPF - Part 3
NextTCP and UDP