Troubleshooting notes · VPN and tunnels
DMVPN spoke won't register with the hub: tunnel key mismatch
A DMVPN spoke keeps sending NHRP registrations and never gets a reply, with nothing in the log. How show ip nhrp nhs detail points to a GRE tunnel key mismatch. Real output from Cisco IOS XE 17.18.
The symptom
A spoke never appears on the hub. The spoke keeps sending NHRP registration requests but receives no replies, and nothing is logged:
SPOKE1# show ip nhrp nhs detail
172.16.0.1 E NBMA Address: 198.51.100.1 priority = 0 cluster = 0 req-sent 11 req-failed 0 repl-recv 0
Pending Registration Requests:
Registration Request: Reqid 2, Ret 64 NHS 172.16.0.1 expired (Tu0)
E means the spoke is still expecting replies, and repl-recv 0 says none came. The NBMA address of the hub is right, which points away from the NHS configuration and towards the tunnel itself.
Why it happens
The hub and the other spoke use tunnel key 100; this spoke uses tunnel key 99. The key is carried in every GRE header, and a router silently drops GRE packets whose key doesn't match its tunnel. So the spoke's registrations never reach the hub's tunnel interface.
The fix
Use the same tunnel key on every router in the DMVPN:
SPOKE1(config)# interface Tunnel0
SPOKE1(config-if)# tunnel key 100
Be patient after the fix: the spoke retries its registration on a back-off timer. In the lab it took up to a minute (Ret 64) before the spoke registered.
Check it
On the hub, show ip nhrp and show dmvpn should list the spoke with its tunnel and NBMA addresses. On the spoke, show ip nhrp nhs detail should show replies received. If the counters still don't move, check the other usual suspect: the hub's NBMA address in the spoke's ip nhrp nhs line.
Practise this fault
This fault is in ENARSI Lab 29, one of the free labs: a ready-made GNS3 project where you find and fix it yourself, with the tested solution. Get it with 14 more free labs, by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.