Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityAdvanced

DMVPN explained: mGRE, NHRP and phases 1, 2 and 3

In short: DMVPN lets hundreds of branches connect over the internet with a single tunnel interface on each router. Multipoint GRE carries traffic, NHRP lets spokes find each other's public addresses through the hub, and IPsec encrypts it all. Phase 3 lets spokes build direct tunnels on demand while the hub only sends them a summary route.

The problem

A company with 200 branches wants them all connected over cheap internet links. Building a separate IPsec tunnel from every branch to head office means 200 tunnel configurations at the hub. Letting branches talk directly to each other would need nearly 20,000 tunnels in a full mesh. Branches also often have dynamic public addresses. DMVPN (Dynamic Multipoint VPN), a Cisco design built from standard protocols, solves all three problems.

DMVPN phasesPhase 1 and 2Phase 1: hub and spoke onlyPhase 2: direct spoke tunnelsPhase 2: no summarisation at hubPhase 2: spokes need full routesPhase 3Direct spoke tunnelsHub can send a summaryNHRP redirect and shortcutBest choice for new designs
Figure 1. Phase 3 combines direct spoke-to-spoke traffic with a small routing table at each spoke.

The three ingredients

  • Multipoint GRE (mGRE): one tunnel interface that can reach many destinations. The hub has one tunnel interface for all spokes, instead of one per spoke. Spokes also use mGRE in phases 2 and 3 so they can build direct tunnels.
  • NHRP (Next Hop Resolution Protocol): works like ARP for the tunnel. Each spoke registers its tunnel address and its current public address with the hub, which acts as the next hop server. When a spoke needs another spoke, it asks the hub for that spoke's public address.
  • IPsec: encrypts the GRE packets with a single IPsec profile applied to the tunnel, so you do not need a crypto map per peer.

A dynamic routing protocol (EIGRP, OSPF or BGP) runs over the tunnel so branches learn each other's networks.

The phases

  • Phase 1: hub and spoke only. Spokes use point-to-point GRE to the hub. All spoke-to-spoke traffic passes through the hub. Simple, but the hub carries everything.
  • Phase 2: spokes use mGRE and can build direct tunnels. To trigger this, each spoke must see the other spoke's networks with the other spoke as next hop, so the hub cannot summarise or change next hops. Routing tables at the spokes grow with every branch.
  • Phase 3: the hub can send just a summary or a default route. When a spoke sends traffic for another spoke through the hub, the hub replies with an NHRP redirect. The spoke then resolves the other spoke's address and installs an NHRP shortcut route for that network, and traffic moves to a direct tunnel. Small routing tables and direct paths at the same time.

Where DMVPN fits today

DMVPN is still widely used and well understood, especially on Cisco ISR routers, and it is an important exam topic. Newer networks often choose SD-WAN instead, which adds central management, application-aware path selection and easier zero-touch deployment. Many SD-WAN products still use the same ideas underneath: overlay tunnels, a control plane that tells sites how to reach each other, and on-demand direct tunnels.

Real-world example: video calls between branches

A retailer's stores used phase 1 DMVPN, so every video call between two stores went through head office and back. As video use grew, the hub internet link became the bottleneck and calls were choppy. Moving to phase 3 with an NHRP redirect on the hub and NHRP shortcuts on the spokes let stores talk directly. Hub bandwidth dropped by a third and call quality improved.

Practice

What does NHRP do in DMVPN?
It maps tunnel addresses to public (NBMA) addresses, with the hub acting as next hop server so spokes can find each other.
Which DMVPN phase allows the hub to send only a summary route while still allowing direct spoke-to-spoke tunnels?
Phase 3.
What tells a phase 3 spoke to build a direct tunnel?
An NHRP redirect from the hub, followed by an NHRP resolution and shortcut route.

Key takeaways

  • DMVPN uses mGRE, NHRP and IPsec to connect many sites with one tunnel each.
  • NHRP lets spokes find each other's public addresses through the hub.
  • Phase 1 is hub-and-spoke; phase 2 and 3 allow direct spoke tunnels.
  • Phase 3 combines summarisation at the hub with on-demand spoke tunnels.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: