LAB1: DMVPN Theory
LAB1: DMVPN Theory
LAB1: DMVPN Theory
Pag
e
Disclaimer
DMVPN Theory
Pag
e
INTRODUCTION
Dynamic Multipoint VPN
Legacy hub and spoke setup would require three separate tunnels
spanning from R1 to each of the spoke routers.
NHRP clients (spoke routers) issue requests to the next hop server (hub
router) to obtain the physical address of another spoke router.
Pag DMVPN CONFIGURATION
e
R1:
interface fastethernet 0/0
ip address 172.16.1.2 255.255.255.252
no shutdown
exit
interface tunnel 0
ip address 192.168.0.1 255.255.255.0
ip nhrp map multicast dynamic
!(Enables forwarding of multicast traffic across the tunnel to dynamic spokes
required by most routing protocol)
ip nhrp network-id 1
!(Uniquely identifies the DMVPN network; tunnels will not form between
router with differing network IDs.)
tunnel source 172.16.1.2
tunnel mode gre multipoint
Pag !(Here tunnel does not have an explicit destination specified because
e multipoint tunnels are built dynamically from the spokes to the hub router;
the hub router doesn’t need to be preconfigured with spoke addresses.)
R2:
interaface fastethernet0/0
ip address 172.168.2.2 255.255.255.252
no shutdown
exit
interface tunnel 0
ip address 192.168.0.2 255.255.255.0
ip nhrp map 192.168.0.1 172.16.1.2
! (Statically maps the NHS address to R1’s physically address)
ip nhrp map multicast 172.16.1.2
! (Multicast traffic is only allowed from spokes to the hub, not from spoke to
spoke.)
ip nhrp network-id 1
ip nhrp nhs 192.168.0.1
! (ip nhrp nhs 192.168.0.1 designates R1 as the Next Hop Server)
tunnel source 172.168.2.2
tunnel mode gre multipoint
Dynamic Tunneling
Brilliance of DMVPN lies in its ability to dynamically establish spoke-to-
spoke tunnels.
Verify
Packet capture of traffic from R2 to R4. Traffic initially follows the path
through R1 as described above while a dynamic tunnel is built from R2
to R4 using NHRP.
After the new tunnel has been an established traffic flow across it
bypassing R1 completely.
We can see a new tunnel has been established after traffic destined for
R4 is detected:
Notice that the tunnel to R4 has been flagged as dynamic, in contrast to the static
tunnel to the hub/NHS.
(After bumping the tunnel interfaces, we can see the DMVPN sessions have
been rebuilt, this time sporting some slick military-grade encryption.)
Verification
R1# show dmvpn