DMVPN over IPsec (2024)

Lesson Contents

In our first DMVPN lesson we talked about the basics of DMVPN and its different phases. DMVPN is a “routing technique” that relies on multipoint GRE and NHRP and IPsec is not mandatory.

However since you probably use DMVPN with the Internet as the underlay network, it might be wise to encrypt your tunnels. In this lesson I’ll show you how to configure IPsec to encrypt your multipoint GRE tunnels. Here’s the topology we will use:

DMVPN over IPsec (1)

Above we have a hub and spoke topology which I used in all of my previous DMVPN examples. We’ll use a DMVPN phase 2 network with RIP as the routing protocol to test IPsec.

Configuration

Tunnel Interfaces

Let’s start with the tunnel interfaces on all routers. This is a basic DMVPN phase 2 configuration:

Hub(config)#interface Tunnel 0Hub(config-if)#ip address 172.16.123.1 255.255.255.0Hub(config-if)#ip nhrp authentication DMVPNHub(config-if)#ip nhrp map multicast dynamicHub(config-if)#ip nhrp network-id 1Hub(config-if)#tunnel source GigabitEthernet0/1Hub(config-if)#tunnel mode gre multipoint

Here are the spoke routers:

Spoke1(config)#interface Tunnel 0Spoke1(config-if)#ip address 172.16.123.2 255.255.255.0Spoke1(config-if)#ip nhrp authentication DMVPNSpoke1(config-if)#ip nhrp map 172.16.123.1 192.168.123.1Spoke1(config-if)#ip nhrp map multicast 192.168.123.1Spoke1(config-if)#ip nhrp network-id 1Spoke1(config-if)#ip nhrp nhs 172.16.123.1Spoke1(config-if)#tunnel source GigabitEthernet0/1Spoke1(config-if)#tunnel mode gre multipoint
Spoke2(config)#interface Tunnel 0Spoke2(config-if)#ip address 172.16.123.3 255.255.255.0Spoke2(config-if)#ip nhrp authentication DMVPNSpoke2(config-if)#ip nhrp map 172.16.123.1 192.168.123.1Spoke2(config-if)#ip nhrp map multicast 192.168.123.1Spoke2(config-if)#ip nhrp network-id 1Spoke2(config-if)#ip nhrp nhs 172.16.123.1Spoke2(config-if)#tunnel source GigabitEthernet0/1Spoke2(config-if)#tunnel mode gre multipoint

Now we can configure RIP…

RIP

We will advertise all interfaces in RIP, here’s the hub router:

Hub(config)#router ripHub(config-router)#version 2Hub(config-router)#network 1.0.0.0Hub(config-router)#network 172.16.0.0Hub(config-router)#no auto-summary
Hub(config)#interface Tunnel 0Hub(config-if)#no ip split-horizon

Don’t forget to disable split horizon. Here are the spoke routers:

Spoke2(config)#router ripSpoke2(config-router)#version 2Spoke2(config-router)#network 3.0.0.0Spoke2(config-router)#network 172.16.0.0Spoke2(config-router)#no auto-summary
Spoke1(config)#router ripSpoke1(config-router)#version 2Spoke1(config-router)#network 2.0.0.0Spoke1(config-router)#network 172.16.0.0Spoke1(config-router)#no auto-summary

That should do it. Now before we start messing around with IPsec, we should check if everything is working without encryption. Let’s check if the hub router has two NHRP registrations:

Hub#show dmvpn | begin PeerType:Hub, NHRP Peers:2, # Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb ----- --------------- --------------- ----- -------- ----- 1 192.168.123.2 172.16.123.2 UP 00:06:15 D 1 192.168.123.3 172.16.123.3 UP 00:06:22 D

That’s looking good. Do we have some RIP routes?

Hub#show ip route rip 2.0.0.0/32 is subnetted, 1 subnetsR 2.2.2.2 [120/1] via 172.16.123.2, 00:00:02, Tunnel0 3.0.0.0/32 is subnetted, 1 subnetsR 3.3.3.3 [120/1] via 172.16.123.3, 00:00:11, Tunnel0
Spoke1#show ip route rip 1.0.0.0/32 is subnetted, 1 subnetsR 1.1.1.1 [120/1] via 172.16.123.1, 00:00:07, Tunnel0 3.0.0.0/32 is subnetted, 1 subnetsR 3.3.3.3 [120/2] via 172.16.123.3, 00:00:07, Tunnel0
Spoke2#show ip route rip 1.0.0.0/32 is subnetted, 1 subnetsR 1.1.1.1 [120/1] via 172.16.123.1, 00:00:28, Tunnel0 2.0.0.0/32 is subnetted, 1 subnetsR 2.2.2.2 [120/2] via 172.16.123.2, 00:00:28, Tunnel0

Yes we do! Everything is looking good so now we can focus on encryption.

IPsec

IPsec has two phases, phase 1 and 2 (don’t confuse them with the DMVPN phases).

Phase 1

We need an ISAKMP policy that matches on all our routers. Let’s pick something:

Hub, Spoke1 & Spoke 2(config)#crypto isakmp policy 10(config-isakmp)#authentication pre-share (config-isakmp)#encryption aes 128(config-isakmp)#group 5(config-isakmp)#hash sha256

When it comes to encryption we can choose between pre-shared keys or PKI. To keep it simple, I’ll go for the pre-shared keys:

Hub(config)#crypto isakmp key DMVPN_KEY address ? A.B.C.D Peer IP address ipv6 define shared key with IPv6 address

When you configure the pre-shared key you have to enter the NBMA address. Keep in mind that encryption occurs before multipoint GRE / NHRP. We also have to specify a peer address, we have two options here:

  • Configure a pre-shared key for each “router pair” you have: this means we use a unique key for hub-spoke1, hub-spoke2 and spoke1-spoke2. This is secure but it’s not a very scalable solution, the more spoke routers we add to the network, the more keys we have to configure.
  • Configure a “wildcard” pre-shared key: this allows us to use a single key for all routers. This is the most convenient but it also means that if you want to change the key, you have to do it on all your routers.

I’ll use the wildcard pre-shared key for our example:

DMVPN over IPsec (2024)
Top Articles
Unsupported EU page
Overseas Housing Allowance
Duralast Gold Cv Axle
Po Box 7250 Sioux Falls Sd
Zabor Funeral Home Inc
craigslist: kenosha-racine jobs, apartments, for sale, services, community, and events
Coverage of the introduction of the Water (Special Measures) Bill
PontiacMadeDDG family: mother, father and siblings
Comforting Nectar Bee Swarm
Apex Rank Leaderboard
Craigslist Free Stuff Appleton Wisconsin
Dee Dee Blanchard Crime Scene Photos
<i>1883</i>'s Isabel May Opens Up About the <i>Yellowstone</i> Prequel
Best Cav Commanders Rok
Nioh 2: Divine Gear [Hands-on Experience]
Fairy Liquid Near Me
Quest Beyondtrustcloud.com
Hellraiser III [1996] [R] - 5.8.6 | Parents' Guide & Review | Kids-In-Mind.com
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
Roll Out Gutter Extensions Lowe's
1v1.LOL - Play Free Online | Spatial
Ally Joann
97226 Zip Code
1989 Chevy Caprice For Sale Craigslist
12 Facts About John J. McCloy: The 20th Century’s Most Powerful American?
2021 MTV Video Music Awards: See the Complete List of Nominees - E! Online
Ficoforum
Play It Again Sports Forsyth Photos
Mobile crane from the Netherlands, used mobile crane for sale from the Netherlands
Jail Roster Independence Ks
24 Hour Drive Thru Car Wash Near Me
Moonrise Time Tonight Near Me
Craigslist Free Stuff San Gabriel Valley
Japanese Pokémon Cards vs English Pokémon Cards
How to Get Into UCLA: Admissions Stats + Tips
Cox Outage in Bentonville, Arkansas
Wisconsin Women's Volleyball Team Leaked Pictures
Second Chance Apartments, 2nd Chance Apartments Locators for Bad Credit
Verizon Outage Cuyahoga Falls Ohio
Bill Manser Net Worth
Differential Diagnosis
فیلم گارد ساحلی زیرنویس فارسی بدون سانسور تاینی موویز
Iman Fashion Clearance
How to Connect Jabra Earbuds to an iPhone | Decortweaks
Lebron James Name Soundalikes
Free Carnival-themed Google Slides & PowerPoint templates
Strange World Showtimes Near Century Federal Way
O'reilly's Eastman Georgia
Laurel Hubbard’s Olympic dream dies under the world’s gaze
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6342

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.