Professional Documents
Culture Documents
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
at http://www.ioshints.info/Webinars
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
2 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN
DMVPN Overview
Site-A Third-party IP backbone Central
Site
CE-A C1
Site-B
CE-B C2
DMVPN Phase 1
Traffic flow
S1
• Multicasts only between hub and
spokes
• Data traffic through the hub
mGRE
S2 Hub
NHRP
• Hub = NHS
S3
• Dynamic spoke registration
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
5 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
Mapping methods S3
Caveat
• Tunnel keys cause CPU-based switching on a 6500/7600
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
7 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
8 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Concepts
Non-unique registrations
• Already-registered NBMA address can change
• Spoke routers send registration requests at every NBMA address change
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
9 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
OSPF Routing S1
interface Loopback0
ip ospf 1 area 11
mGRE
! S2 Hub
interface Tunnel0
ip ospf network point-to-multipoint
ip ospf 1 area 11 S3
!
interface FastEthernet0/0
ip ospf 1 area 11
!
router ospf 1
interface Loopback0
log-adjacency-changes
ip ospf 1 area 0
area 11 stub no-summary
!
interface Tunnel0
Hub router must be IP next-hop ip ospf network point-to-multipoint
ip ospf 1 area 11
• Point-to-multipoint network type !
interface FastEthernet0/0
ip ospf 1 area 0
Minimize routing updates to spokes !
• Totally stubby area router ospf 1
log-adjacency-changes
• Flooding filter + static default route area 11 stub no-summary
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
11 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
EIGRP Routing S1
router eigrp 1
network 10.0.0.0 mGRE
S2 Hub
!
ip prefix-list EIGRPLeak seq 10 permit 10.0.0.0/8
ip prefix-list EIGRPLeak seq 15 permit 10.0.1.0/24 ge 32
ip prefix-list EIGRPLeak seq 20 permit 0.0.0.0/0
!
route-map EIGRPLeak permit 10
match ip address prefix-list EIGRPLeak interface Tunnel0
bandwidth value
no ip split-horizon eigrp 1
ip summary-address eigrp 1 10.0.0.0
Minimize routing updates: 255.0.0.0
• Summarize on the hub router !
router eigrp 1
• Spokes should be stub routers no auto-summary
network 10.0.0.0 0.255.255.255
network 172.16.0.0 0.15.255.255
network 192.168.0.0 0.0.255.255
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
12 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
BGP Routing S1
bgp log-neighbor-changes
redistribute connected route-map Internal
neighbor 192.168.0.1 remote-as 65000 S3
!
ip prefix-list Internal seq 5 permit 172.16.0.0/16 ge 20
ip prefix-list Internal seq 10 permit 10.0.0.0/8 ge 32
!
route-map Internal permit 10 router bgp 65000
match ip address prefix-list Internal template peer-policy DMVPN
next-hop-self
send-community
Hub router must be IP next-hop [ route-map FilterUpdates out ]
• next-hop-self on all BGP neighbors [ default-originate ]
exit-peer-policy
• Use policy templates !
no synchronization
Minimize routing updates to spokes bgp log-neighbor-changes
redistribute connected route-map Internal
• Filter BGP updates neighbor 192.168.0.3 remote-as 65003
• Advertise default route to the spokes neighbor 192.168.0.3 inherit peer-policy DMVPN
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
13 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Configuration
number
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
14 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Concepts
DMVPN Redundancy
interface Tunnel0
mGRE-A
ip address 192.168.0.5 255.255.255.0 S1 H1
!
crypto isakmp policy 10
authentication pre-share mGRE
group 2 S2 Hub
!
!
crypto ipsec transform-set DMVPN esp-des esp-sha-hmac
mode transport S3
!
crypto ipsec profile DMVPN
set transform-set DMVPN
!
interface Tunnel0
tunnel protection ipsec profile DMVPN
revocation-check crl
auto-enroll
! mGRE
crypto pki certificate chain ca.example.com S2 Hub
certificate 07 nvram:ca#7.cer
certificate ca 01 nvram:ca#1CA.cer
!
crypto isakmp policy 10 S3
group 2
!
crypto ipsec transform-set DMVPN esp-des esp-sha-hmac
mode transport
!
crypto ipsec profile DMVPN
set transform-set DMVPN
!
interface Tunnel0
tunnel protection ipsec profile DMVPN
S1A
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
18 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Monitoring
S1A
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
19 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Monitoring
Interface: Tunnel1
Session status: UP-ACTIVE
Peer: 10.0.7.13 port 500
IKE SA: local 10.0.7.5/500 remote 10.0.7.13/500 Active
IPSEC FLOW: permit 47 host 10.0.7.5 host 10.0.7.13
Active SAs: 2, origin: crypto map
Interface: Tunnel0
Session status: UP-ACTIVE
Peer: 10.0.7.17 port 500
IKE SA: local 10.0.7.5/500 remote 10.0.7.17/500 Active
IPSEC FLOW: permit 47 host 10.0.7.5 host 10.0.7.17 S1A
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
20 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Monitoring
# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb Target
S1A
Network
----- --------------- --------------- ----- -------- ----- -----------------
mGRE-A
1 10.0.7.17 192.168.0.1 UP 00:09:05 S 192.168.0.1/32 Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
21 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase 1 Monitoring
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
23 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase I Troubleshooting
Troubleshooting concepts
Routing protocol adjacency? S1
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
24 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
25 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN
Reverse traffic triggers the same mechanisms on the other spoke router
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
27 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase II
OSPF Configuration
interface Tunnel0 S1
interface Tunnel0
ip ospf network broadcast
ip ospf 1 area 11
IP next hop: DMVPN egress router !
• Broadcast OSPF network type router ospf 1
log-adjacency-changes
• Set spoke priority to zero area 11 stub
EIGRP Configuration
S1
1
IP next hop: DMVPN egress router 2
• Disable EIGRP split-horizon on the hub router S2
mGRE
Hub
to propagate updates between spokes
• Disable EIGRP next-hop processing on the
hub router S3
BGP Configuration
S1
IP next hop: DMVPN egress router 1
2
• Remove next-hop-self on the hub router mGRE
S2 Hub
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
32 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase II
S1A
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
33 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase II
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
34 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase II
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
35 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Phase II
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
36 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Coffee break
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
37 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
38 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
Overview
Requirement S1
1
• Default routing over DMVPN 2
toward hub site (routing mGRE
optimization or central firewall) S2 Hub
Problem S3
Technical Requirements
• GRE (or IPSec/GRE) packets should mGRE
use default route over Internet link
• All other traffic should use Internet
default route over DMVPN tunnel S1
Default routing for
DMVPN packets
Solutions
S3
Policy-based routing
Split routing with VRF (Internet link in the VRF)
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
40 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
41 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
42 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
43 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
S1A
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
44 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
C-id Local Remote I-VRF Status Encr Hash Auth DH Lifetime Cap.
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
45 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
46 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Split Default Routing
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
48 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Redundantly Connected Spoke Site
Overview
Requirements mGRE-A
• Two ISP connections
ISP-A
• Redundant DMVPN setup
(two DMVPN clouds) S1
ISP-B
Facts
mGRE-B
• Destinations in each DMVPN cloud are unknown
• Default routing required for both DMVPN clouds
• Spoke router needs two default routes (one for each ISP)
• ISPs might perform uRPF check
Challenge
• IPSec/GRE packets have to use the correct ISP link
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
49 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Redundantly Connected Spoke Site
ISP-B
Caveats
• Does not work together with IPSec (tunnel protection)
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
50 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Redundantly Connected Spoke Site
! ISP-B
interface Tunnel0
tunnel source Serial1/0 mGRE-B
tunnel mode gre multipoint
tunnel vrf Internet
!
interface Tunnel1
interface Serial1/0
tunnel source Serial1/1
description Link to ISP-A
tunnel mode gre multipoint
ip vrf forwarding Internet
tunnel vrf Internet_Backup
ip address negotiated
!
Don’t forget interface Serial1/1
description Link to ISP-B
• Per-VRF keyrings ip vrf forwarding Internet_Backup
ip address negotiated
• Per-VRF profiles !
ip route vrf Internet 0.0.0.0 0.0.0.0 Serial1/0
ip route vrf Internet 0.0.0.0 0.0.0.0 Serial1/1
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
52 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Redundantly Connected Spoke Site
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
54 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
DMVPN Scalability Limitations
• IKE processing (CPU overload) – limit # of IKE SA’s
• IPsec throughput – use hardware encryption
• NHRP overload – increase the NHRP registration timeout
• Multicast replication – use unidirectional RIP, BGP or static routes
• Routing protocol overhead – use EIGRP or RIP/ODR, not OSPF
• Amount of routing information – use default routing with Phase 3 DMVPN
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
55 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
56 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability
S3
Solutions
• Use a simple distance vector protocol on spoke sites with a single
router
• RIPv2 or ODR work just fine; RIPv2 gives you more options
• ODR makes sense if you already use CDP over the tunnels
• Don’t use ODR on spoke sites with multiple redundant routers
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
57 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: ODR in DMVPN
ODR Basics
• CDP updates contain IP prefixes of
OSPF
S1A
directly connected interfaces
mGRE-A
• CDP updates can be used to build IP S1B
Hub-1
ODR
S2
Hub-2
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
58 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: ODR in DMVPN
Spoke Configuration
OSPF
S1A
interface Tunnel0
cdp enable mGRE-A
tunnel source Serial1/0 S1B
Hub-1
ODR
S2
Hub-2
!
interface Tunnel1
cdp enable S3
!
tunnel vrf Internet • Do not configure a routing
ip route vrf Internet 0.0.0.0 0.0.0.0 protocol
!
Serial1/0
• ODR creates a default route
Transmit timer split default routing is mandatory
cdp timer 8
cdp holdtime 255
• Next-hop of the default route is
the CDP neighbor (hub router)
Receive timeout • All traffic flows through the hub(s)
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
59 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: ODR in DMVPN
Hub Configuration
interface Tunnel0
OSPF
cdp enable S1A
ODR
timers basic 8 24 0 1 Hub-2
S2 mGRE-B
Hub-2
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]).
S3 More information
61 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: ODR in DMVPN
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
62 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: ODR in DMVPN
1 192.168.0.1 12 msec
192.168.1.1 12 msec
192.168.0.1 8 msec
2 192.168.1.6 12 msec
192.168.0.6 12 msec *
Caveats S1A
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
63 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
64 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability
DMVPN Phase 3
Traffic flow
• Multicasts only between NHRP
S1 2 neighbors
1
3 • Data traffic optimal
mGRE
S2 Hub NHRP
• Hub(s): NHS
• Hub-to-hub: static NHRP
S3
• Dynamic spoke registration
• Traffic-driven shortcuts
• mGRE on all routers
• Inter-tunnel NHRP does not work
• Dynamic next-hop resolution
• DMVPN cloud = 1 subnet
• No limits on routing
spoke-to-spoke with default routes
Routing protocols
• No restrictions
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
+65 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: DMVPN phase 3
interface Tunnel0
S1 2
ip nhrp shortcut 1
3 interface Tunnel0
ip nhrp redirect
mGRE
S2 Hub
S3
S1 2
1
3
mGRE
S2 Hub
S1#
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
67 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: DMVPN phase 3
S1 2
1
3
mGRE
S2 Hub
S1#trace S2Host
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
68 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: DMVPN phase 3
S1 2
1
3
S1#show ip nhrp dynamic
172.16.12.0/24 via 192.168.0.6
mGRE Tunnel0 created 00:00:19, expire 00:00:40
S2 Hub
Type: dynamic, Flags: router
NBMA address: 10.0.7.5
172.16.12.1/32 via 192.168.0.6
Tunnel0 created 00:01:05, expire 00:00:54
S3
Type: dynamic, Flags: router
NBMA address: 10.0.7.5
192.168.0.5/32 via 192.168.0.5
Tunnel0 created 00:01:43, expire 00:00:55
Type: dynamic, Flags: router unique local
NBMA address: 10.0.7.9
(no-socket)
192.168.0.6/32 via 192.168.0.6
Tunnel0 created 00:01:43, expire 00:00:55
Type: dynamic, Flags: router implicit used
NBMA address: 10.0.7.5
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
69 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Coffee break
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
70 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
71 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability
Unidirectional Routing
Challenge S1A
Solution
S3
Technical details
• RIPv2 is the only routing protocol option
• Static default routing is needed on spoke routers
• Reliable static routing is required in redundant designs
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
72 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Unidirectional routing
RIP update
RIP is totally passive
• Unidirectional route collection interface Tunnel0
• Redistribute RIP routes into your IGP !
no ip nhrp map multicast dynamic
router ospf 1
log-adjacency-changes
redistribute rip subnets
Caveats distance ospf external 180
• Tweak RIP timers for faster !
router rip
convergence version 2
timers basic 10 30 5 5
• OSPF external routes have to be passive-interface default
network 192.168.0.0
worse than RIP routes no auto-summary
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
73 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Unidirectional routing
OSPF E2
RIP update
second hub router
Spoke
Solution
• Increase the AD of OSPF external routes (distance ospf external)
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
+74 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Unidirectional routing
router rip S1
version 2
timers basic 10 30 5 5
network 172.16.0.0 mGRE
network 192.168.0.0 S2 Hub
no auto-summary
!
ip route 0.0.0.0 0.0.0.0 Tunnel0 192.168.0.1 S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
75 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Unidirectional routing
frequency 5
ip sla schedule 1 life forever start-time now
! S2 mGRE-B
Hub-2
track 1 ip sla 1 reachability
default-state up
delay down 20 up 20 S3
!
ip route 0.0.0.0 0.0.0.0 Tunnel0 192.168.0.1 track 1
ip route 192.168.0.1 255.255.255.255 Tunnel0 192.168.0.1 permanent
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
77 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Unidirectional routing
mGRE-A
Hub-1
S1B
S1A
mGRE-A
Hub-1
S1B
S2 mGRE-B
Hub-2
S3
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
80 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Agenda
DMVPN Phase 1 and Phase 2 overview
Spoke enhancements
• Split Default Routing
• Multihomed Remote Site
Scalability solutions
• Simple spoke-to-hub routing protocol
• Spoke-to-spoke traffic with default routing (DMVPN Phase 3)
• Unidirectional routing
• Hierarchical hub structure
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
81 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability
S2 mGRE-B
Hub-3
S3
Solution
• Each spoke connects to a subset of hubs
• Hubs arranged in hierarchy, full-mesh or daisy-chain
• Two routing protocols: spoke-to-hub and hub-to-hub
• NHRP redirects required for direct spoke-to-spoke connectivity
Alternative: Regional DMVPN clouds linked with inter-hub links
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
82 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Distributed / Hierarchical Hubs
Design Guidelines
Generic guidelines S1A
DMVPN
interface S1B
S2 mGRE-B
Hub-2
Hub-3
S3
Hub routers
• Avoid dynamic multicast maps on hub routers
• Create a (failure-resistant) hierarchy or mesh of NHS servers
Dual tree, full mesh or daisy chain
• Configure NHS servers
• Configure NHRP + multicast for NHS mesh
Always run OSPF in P2MP mode between hub routers
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
84 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Scalability: Distributed / Hierarchical hubs
no ip redirects
S1B
ip nhrp authentication WanExamp
ip nhrp map 192.168.0.1 10.0.7.17 Hub-2
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
at http://www.ioshints.info/Webinars
Conclusions
Non-trivial DMVPN is complex
• Hub-and-spoke is easiest, try to avoid Phase 3
• Split default routing is almost mandatory in any-to-any design
• Split default routing on the hub for clean firewall design
Scaling steps
• Distance vector routing protocol between spokes and hubs
• Unidirectional routing
• Mesh of regional DMVPN clouds is simpler than huge Phase 3
DMVPN
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
87 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service
Questions?
This material is copyrighted and licensed for the sole use by Hakan Akca (hakotheman@yahoo.com [195.191.119.2]). More information
88 © NIL Data Communications 2010
at http://www.ioshints.info/Webinars Choose the Optimal VPN Service