Troubleshooting notes · VPN and tunnels
DMVPN Phase 3: spoke-to-spoke traffic still goes through the hub
DMVPN Phase 3 is configured, but every branch-to-branch trace still goes through the hub. The fix is ip nhrp redirect on the hub and ip nhrp shortcut on the spokes, and IOS XE hides the shortcut default. Real output from Cisco IOS XE 17.18.
The symptom
Branch-to-branch traffic always goes through head office, however often you repeat the test. The spoke only has a static tunnel to the hub (S), never a dynamic one to the other spoke:
SPOKE1# traceroute 10.2.2.1 source loopback1 numeric
1 172.16.0.1 1 msec 1 msec 1 msec
2 172.16.0.3 1 msec * 3 msec
SPOKE1# show dmvpn | begin Peer
1 198.51.100.1 172.16.0.1 UP 00:06:22 S
Why it happens
In Phase 3 the hub forwards the first packets between spokes and, at the same time, sends the spoke an NHRP redirect: "there's a better path, resolve it yourself". The spoke then resolves the other spoke and installs a shortcut. Both halves are needed:
ip nhrp redirecton the hub's tunnel interfaceip nhrp shortcuton the spokes' tunnel interfaces
Here the hub doesn't send redirects, so the spokes never learn about the direct path.
The fix
HUB(config)# interface Tunnel0
HUB(config-if)# ip nhrp redirect
Check it
The next ping triggers the resolution, and the trace is one hop:
SPOKE1# traceroute 10.2.2.1 source loopback1 numeric
1 172.16.0.3 1 msec
SPOKE1# show dmvpn | begin Peer
2 198.51.100.9 172.16.0.3 UP 00:00:04 DT2
172.16.0.3 UP 00:00:04 DT1
1 198.51.100.1 172.16.0.1 UP 00:06:36 S
SPOKE1# show ip nhrp shortcut
10.2.2.0/24 via 172.16.0.3
Tunnel0 created 00:00:05, expire 00:09:53
Type: dynamic, Flags: router used rib nho
NBMA address: 198.51.100.9
T1 is the installed shortcut route and T2 the next-hop override. The routing protocol's route still points to the hub; NHRP overrides the next hop (nho).
The other half: a spoke with shortcuts switched off
On IOS XE 17.18, ip nhrp shortcut is on by default on mGRE tunnels and doesn't show in the running config. So the only thing you'll see in the config is the line that turns it off:
interface Tunnel0
no ip nhrp shortcut
That spoke receives the hub's redirects but never installs a shortcut. Its traffic keeps going through the hub, while the other direction is already direct:
SPOKE2# traceroute 10.1.1.1 source loopback1 numeric
1 172.16.0.1 2 msec 2 msec 0 msec
2 172.16.0.2 2 msec
SPOKE2# show ip nhrp shortcut
SPOKE2#
Turn shortcuts back on:
SPOKE2(config)# interface Tunnel0
SPOKE2(config-if)# ip nhrp shortcut
After clear ip nhrp, or once the old entries expire, both directions are direct. The first packets of a new flow always go through the hub: the shortcut is built on demand.
Practise this fault
This fault is in ENARSI Lab 30 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.