NHRP in Cisco Router

Multipoint Generic Routing Encapsulation (mGRE)

  • It is a multipoint GRE
  • It is point to multipoint
  • It uses GRE and NHRP
Next Hop Resolution Protocol (NHRP)
  • NHRP is an ARP (Address Resolution Protocol) like protocol that dynamically maps a non broadcast multi access network
  • NHRP has two component; NH Client (NHC) and NH Server (NHS)
  • NHS is called as HUB and NHC is SPOKE
  • NHRP protocol allows NHCs to dynamically register with NHSs
  • It is a layer 2 protocol
  • This allows the NHCs to join the NBMA network without configuration changes  on the NHS
  • NHRP allows one NHC (SPOKE) to dynamically discover the logical VPN IP to physical NBMA IP mapping for another NHC within the same NBMA network
  • NHRP are CLIENT/SERVER protocol

If we need to create more than one GRE tunnel interface then we use MGRE tunnel interface instead of point to point GRE interface

MGRE is a combination of NHRP & GRE

Why we need NHRP?

NHRP is an Address Resolution Protocol (ARP)-like protocol that dynamically maps nonbroadcast multiaccess (NBMA) Network. With NHRP, systems attached to an NBMA network can dynamically learn the NBMA (physical) address of the other systems that are part of that network, allowing these systems to directly communicate.

  1.  NHRP is an ARP-like protocol that allows Next Hop Clients (NHCs ) to dynamically register with Next Hop Servers (NHSs). This allows the NHCs to join the NBMA network without configuration changes on the NHSs
  1.  NHRP is a resolution protocol that allows one NHC client (spoke) to dynamically discover the logical VPN IP to physical NBMA IP mapping for another NHC client (spoke) within the same NBMA network. Without this discovery, IP packets traversing from hosts behind one spoke to hosts behind another spoke would have to traverse by way of the NHS (hub) router. This would increase the utilization of the hub’s physical bandwidth and CPU to process these packets that come into the hub on the multipoint interface and go right back out the multipoint interface. This is often called hair-pinning. With NHRP, systems attached to an NBMA network dynamically learn the NBMA address of the other systems that are part of that network, allowing these systems to directly communicate without requiring traffic to use an intermediate hop.
  1. NHRP is a client/server protocol in which clients are said to be spokes & servers as hub
  1. Each spokes registers itself with hub by providing its real (NBMA/Physical) address with tunnel (Logical) address
  1. So hub will dynamically learn about the spokes & form a GRE tunnel with them.

The last new command, ip nhrp map multicast dynamic, allows NHRP to automatically add spoke routers to the multicast NHRP mappings when these spoke routers initiate the mGRE+IPsec tunnel and register their unicast NHRP mappings. This is needed to enable dynamic routing protocols to work over the mGRE+IPsec tunnels between the hub and spokes. If this command was not available, then the hub router would need to have a separate configuration line for a multicast mapping to each spoke.

Configuration:
At NHS (HUB)
  • (config)# interface tunnel <#>
  • (config-if)# ip address <tunnel ip> <mask>
  • (config-if)# tunnel source <physical IP>
  • (config-if)# tunnel mode gre multipoint
  • (config-if)# tunnel key <key>
  • (config-if)# ip nhrp map multicast dynamic
  • (config-if)# ip nhrp authentication <authentication key>
  • (config-if)# ip nhrp network-id <#>
At NHC (SPOKE)
 
 
  • (config)# interface tunnel <#>
  • (config-if)# ip address <tunnel ip> <mask>
  • (config-if)# tunnel source <physical IP>
  • (config-if)# tunnel mode gre multipoint
  • (config-if)# tunnel key <key>
  • (config-if)# ip nhrp map multicast <nbma ip>
  • (config-if)# ip nhrp authentication <authentication key>
  • (config-if)# ip nhrp network-id <#>
  • (config-if)# ip nhrp nhs <tunnel IP of the NHS>
  • (config-if)# ip nhrp map <tunnel IP of the NHS> <physical ip of the NHS>
Verification Commands
  • #show ip nhrp
  • #show ip nhrp brief
  • #show ip nhrp detail

Was this article helpful?

Related Articles

Leave A Comment?