Home > Cisco Networking > VPN > How to Configure DMVPN in a Cisco Network
Dynamic Multipoint VPN (DMVPN) is a Cisco technology that combines multipoint GRE, NHRP, and IPsec to build scalable hub-and-spoke VPN overlays over public or private WAN transport. This guide walks through a practical Cisco IOS DMVPN configuration, explains how the pieces fit together, and shows the verification and troubleshooting commands you should run after deployment.
DMVPN is designed to simplify large VPN topologies by reducing the need to configure a separate static GRE tunnel for every site pair. Cisco documents DMVPN as a combination of GRE tunnels, IPsec encryption, and NHRP, with crypto profiles used instead of traditional static crypto maps in many deployments. That design makes DMVPN especially useful for branch connectivity where spokes need to register dynamically with a central hub.
In a typical deployment:
DMVPN remains a strong option when you need scalable Cisco branch-to-hub connectivity, routing protocol support over the overlay, and secure transport across untrusted networks. Cisco also documents DMVPN support for dynamically assigned spoke addresses and large hub-and-spoke deployments, which is part of why it has remained a common design in enterprise WAN environments.
Multipoint GRE lets the hub terminate many GRE peers on a single tunnel interface. This is one of the key reasons DMVPN scales better than building a point-to-point GRE tunnel for every branch.
Next Hop Resolution Protocol maps overlay tunnel addresses to underlay NBMA addresses. In DMVPN, the hub maintains NHRP mappings for the spokes, and the spokes register with the hub so traffic can be forwarded across the tunnel infrastructure.
GRE by itself does not encrypt traffic. Cisco DMVPN deployments typically apply an IPsec profile directly to the tunnel interface with tunnel protection ipsec profile.
There are three common DMVPN design phases:
This tutorial focuses on a straightforward hub-and-spoke style baseline because it is easier to validate and safer to use as a first deployment model before adding advanced shortcut behavior.
The hub uses a multipoint GRE tunnel interface and accepts dynamic NHRP multicast mappings from the spokes.
hostname HUB interface Tunnel0 ip address 10.10.10.1 255.255.255.0 no ip redirects ip nhrp authentication DMVPNKEY ip nhrp map multicast dynamic ip nhrp network-id 10 tunnel source GigabitEthernet0/0 tunnel mode gre multipoint tunnel key 100 tunnel protection ipsec profile DMVPN-PROFILE interface FastEthernet0/0 ip address 203.0.113.1 255.255.255.0 no shutdown crypto isakmp policy 10 encr aes hash sha256 authentication pre-share group 14 lifetime 86400 crypto isakmp key CISCO123 address 0.0.0.0 0.0.0.0 crypto ipsec transform-set DMVPN-SET esp-aes esp-sha-hmac mode transport crypto ipsec profile DMVPN-PROFILE set transform-set DMVPN-SET
Important points:
Each spoke points at the hub public IP and registers to the hub as the Next Hop Server.
hostname SPOKE1 interface Tunnel0 ip address 10.10.10.11 255.255.255.0 no ip redirects ip nhrp authentication DMVPNKEY ip nhrp map 10.10.10.1 203.0.113.1 ip nhrp map multicast 203.0.113.1 ip nhrp network-id 10 ip nhrp nhs 10.10.10.1 tunnel source FastEthernet0/0 tunnel mode gre multipoint tunnel key 100 tunnel protection ipsec profile DMVPN-PROFILE interface FastEthernet0/0 ip address 198.51.100.2 255.255.255.252 no shutdown crypto isakmp policy 10 encr aes hash sha256 authentication pre-share group 14 lifetime 86400 crypto isakmp key CISCO123 address 203.0.113.1 crypto ipsec transform-set DMVPN-SET esp-aes esp-sha-hmac mode transport crypto ipsec profile DMVPN-PROFILE set transform-set DMVPN-SET
hostname SPOKE2 interface Tunnel0 ip address 10.10.10.22 255.255.255.0 no ip redirects ip nhrp authentication DMVPNKEY ip nhrp map 10.10.10.1 203.0.113.1 ip nhrp map multicast 203.0.113.1 ip nhrp network-id 10 ip nhrp nhs 10.10.10.1 tunnel source FastEthernet0/1 tunnel mode gre multipoint tunnel key 100 tunnel protection ipsec profile DMVPN-PROFILE interface FastEthernet0/1 ip address 198.51.200.2 255.255.255.252 no shutdown crypto isakmp policy 10 encr aes hash sha256 authentication pre-share group 14 lifetime 86400 crypto isakmp key CISCO123 address 203.0.113.1 crypto ipsec transform-set DMVPN-SET esp-aes esp-sha-hmac mode transport crypto ipsec profile DMVPN-PROFILE set transform-set DMVPN-SET
DMVPN becomes operationally useful when you advertise branch networks across the tunnel. OSPF is a common choice in Cisco-centric environments.
router ospf 1 log-adjacency-changes network 198.51.100.0 0.0.0.3 area 0 network 198.51.200.0 0.0.0.3 area 0 network 200.75.75.0 0.0.0.3 area 0
router ospf 1 log-adjacency-changes network 200.75.75.0 0.0.0.3 area 0 network 203.0.113.0 0.0.0.3 area 0
ip route 0.0.0.0 0.0.0.0 203.0.113.2 name ISP1
In this baseline model, spokes typically reach each other through the hub. That makes the behavior easier to understand before you move to shortcut-based DMVPN designs.
After configuration, validate the tunnel, NHRP registration, crypto sessions, and routing state.
show dmvpn show ip nhrp show crypto isakmp sa show crypto session show crypto ipsec sa show ip eigrp neighbors show ip route show interface tunnel0
These commands are especially useful:
If a spoke is stuck during NHRP establishment, verify the NHRP authentication string, network ID, tunnel key, and underlay reachability. Cisco troubleshooting guidance highlights common DMVPN failures around mismatched settings and registration problems.
Check your ISAKMP or IKE parameters, pre-shared keys, transform sets, and IPsec profile assignments. Even small mismatches can keep the tunnel from reaching a fully protected operational state.
Confirm that your routing protocol is enabled on the tunnel interface, that the correct LAN networks are advertised, and that no filtering or passive-interface setting is blocking adjacency or route exchange.
GRE and IPsec add overhead. If applications are unstable or pings succeed but larger flows fail, tune the tunnel MTU and TCP MSS.
interface Tunnel0 ip mtu 1400 ip tcp adjust-mss 1360
This guidance is intended for authorized network administration and legitimate operational recovery only.
DMVPN is still an important Cisco WAN skill because it gives you a scalable way to connect remote routers using mGRE, NHRP, and IPsec. The most reliable deployment path is to start with a clean hub-and-spoke design, confirm NHRP registration, verify IPsec protection, and then validate routing. Once those layers are working, expanding the design becomes much easier.