DYNAMIC MULTIPOINT VPN HUB AND SPOKE INTRODUCTION



Similar documents
How To Design An Ipsec Vpn Network Connection

Cisco EXAM Implementing Cisco Secure Mobility Solutions (SIMOS) Buy Full Product.

Cisco Dynamic Multipoint VPN: Simple and Secure Branch-to-Branch Communications

Case Studies. Static p2p GRE over IPsec with a Branch Dynamic Public IP Address Case Study. Overview CHAPTER

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

Point-to-Point GRE over IPsec Design and Implementation

Cisco Site-to-Site VPN Lab 3 / GRE over IPSec VPNs by Michael T. Durham

BUY ONLINE AT:

Cisco Virtual Office: High Availability Design Guide

Configure ISDN Backup and VPN Connection

Configuring a Site-to-Site VPN Tunnel Between Cisco RV320 Gigabit Dual WAN VPN Router and Cisco (1900/2900/3900) Series Integrated Services Router

: Interconnecting Cisco Networking Devices Part 2 v1.1

CCNA2 Chapter 11 Practice

Interconnecting Cisco Networking Devices Part 2

Advanced IPSec with GET VPN. Nadhem J. AlFardan Consulting System Engineer Cisco Systems

IP Routing Configuring RIP, OSPF, BGP, and PBR

MPLS VPN over mgre. Finding Feature Information. Prerequisites for MPLS VPN over mgre

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Deploying IPSec VPN in the Enterprise

Course Contents CCNP (CISco certified network professional)

CCNA Security 1.1 Instructional Resource

Advanced Concepts of DMVPN (Dynamic Multipoint VPN)

Chapter 1 Implement EIGRP operations Chapter 2 Implement multiarea OSPF operations Chapter 4 Implement Cisco IOS routing features...

Most Common DMVPN Troubleshooting Solutions

Monitoring Routing. Monitoring OSPF LSAs. Type 1 CHAPTER

Route Discovery Protocols

OSPF Routing Protocol

Introduction to MPLS-based VPNs

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

IMPLEMENTING CISCO IP ROUTING V2.0 (ROUTE)

Lab 4.4.8a Configure a Cisco GRE over IPSec Tunnel using SDM

Cisco Which VPN Solution is Right for You?

Administrative Distance

Advanced Concepts of DMVPN (Dynamic Multipoint VPN) Mike Sullenberger Distinguished Engineer BRKSEC-4054

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

Building scalable IPSec infrastructure with MikroTik. IPSec, L2TP/IPSec, OSPF

MPLS Implementation MPLS VPN

Building VPNs. Nam-Kee Tan. With IPSec and MPLS. McGraw-Hill CCIE #4307 S&

Introducing Basic MPLS Concepts

How Routers Forward Packets

Introduction about cisco company and its products (network devices) Tell about cisco offered courses and its salary benefits (ccna ccnp ccie )

SNRS. Securing Networks with Cisco Routers and Switches. Length 5 days. Format Lecture/lab

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

Configuring IPsec VPN Fragmentation and MTU

Securing Networks with Cisco Routers and Switches 1.0 (SECURE)

Configuring a Gateway of Last Resort Using IP Commands

Configuring Tunnel Default Gateway on Cisco IOS EasyVPN/DMVPN Server to Route Tunneled Traffic

Virtual Private Network and Remote Access Setup

Using OSPF in an MPLS VPN Environment

LAN-Cell to Cisco Tunneling

MPLS Concepts. Overview. Objectives

MPLS over IP-Tunnels. Mark Townsley Distinguished Engineer. 21 February 2005

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

Configuring a Lan-to-Lan VPN with Overlapping Subnets with Juniper NetScreen/ISG/SSG Products

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

Group Encrypted Transport VPN

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

GregSowell.com. Mikrotik Routing

Using the Border Gateway Protocol for Interdomain Routing

O /27 [110/129] via , 00:00:05, Serial0/0/1

I. What is VPN? II. Types of VPN connection. There are two types of VPN connection:

Table of Contents. Cisco How Does Load Balancing Work?

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Cisco Group Encrypted Transport VPN: Tunnel-less VPN Delivering Encryption and Authentication for the WAN

WAN Topologies MPLS. 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr Cisco Systems, Inc. All rights reserved.

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

Interconnecting IPv6 Domains Using Tunnels

Connecting Remote Offices by Setting Up VPN Tunnels

Implementing Secured Converged Wide Area Networks (ISCW) Version 1.0

Vodafone MachineLink 3G. IPSec VPN Configuration Guide

VXLAN: Scaling Data Center Capacity. White Paper

Router and Routing Basics

Data Networking and Architecture. Delegates should have some basic knowledge of Internet Protocol and Data Networking principles.

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

AT&T Managed IP Network Service (MIPNS) MPLS Private Network Transport Technical Configuration Guide Version 1.0

- Multiprotocol Label Switching -

Case Study for Layer 3 Authentication and Encryption

FortiOS Handbook - IPsec VPN VERSION 5.2.4

Internet Packets. Forwarding Datagrams

Lab a Configure Remote Access Using Cisco Easy VPN

Configuring IPsec VPN with a FortiGate and a Cisco ASA

Mobile IP Part I: IPv4

BGP: Border Gateway Protocol

EIGRP Commands. Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols IP2R-141

Quick Note 20. Configuring a GRE tunnel over an IPSec tunnel and using BGP to propagate routing information. (GRE over IPSec with BGP)

MPLS. Cisco MPLS. Cisco Router Challenge 227. MPLS Introduction. The most up-to-date version of this test is at:

How To Learn Cisco Cisco Ios And Cisco Vlan

Interconnecting Cisco Networking Devices: Accelerated (CCNAX) 2.0(80 Hs) 1-Interconnecting Cisco Networking Devices Part 1 (40 Hs)

FortiOS Handbook - IPsec VPN VERSION 5.2.2

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

"Charting the Course...

IOS NAT Load Balancing with Optimized Edge Routing for Two Internet Connections

FortiOS Handbook IPsec VPN for FortiOS 5.0

IPv6 Trace Analysis using Wireshark Nalini Elkins, CEO Inside Products, Inc.

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Chapter 4. Distance Vector Routing Protocols

Abstract. SZ; Reviewed: WCH 6/18/2003. Solution & Interoperability Test Lab Application Notes 2003 Avaya Inc. All Rights Reserved.

Transcription:

DYNAMIC MULTIPOINT VPN HUB AND SPOKE INTRODUCTION NOVEMBER 2004 1

INTRODUCTION Spoke, Presentation_ID 11/04 2004, Cisco Systems, Inc. All rights reserved. 2

What is Dynamic Multipoint VPN? Dynamic Multipoint VPN (DMVPN) is a combination of GRE, NHRP, and IPsec NHRP allows the peers to have dynamic addresses (ie: Dial and DSL) with GRE / IPsec tunnels Backbone is a hub and spoke topology Allows direct spoke to spoke tunneling by auto leveling to a partial mesh 3

Site-to-Site, DMVPN: mgre/ipsec/nhrp Integration, Only HUB address Is Known HUB 10.0.0.0 255.255.255.0 10.0.0.1 LANs can have private addressing Static known IP address Dynamic unknown IP addresses SPOKE 10.0.3.1 10.0.3.0 255.255.255.0 10.0.1.1 10.0.2.0 255.255.255.0 10.0.1.0 255.255.255.0 = Static spoke-to-hub IPsec tunnels 10.0.2.1 = Dynamic&Temporary Spoke-to-spoke IPsec tunnels 4

Terminology Pause DMVPN is a partial dynamic mesh Spoke: all the devices that contact a central router called hub Node: any hub or a spoke 5

This Presentation This presentation concentrate on hub and spoke to explain how DMVPN works 6

DMVPN Spoke, Presentation_ID 11/04 2004, Cisco Systems, Inc. All rights reserved. 7

GRE Tunnels A GRE tunnel is a simple non-negotiated tunnel; GRE only needs tunnel endpoints GRE encapsulate frames or packets into an other IP packet + IP header GRE has only 4 to 8 bytes of overhead GRE tunnels exist in two main flavors: Point-to-point (GRE) Point-to-multipoint (mgre) 8

GRE multipoint and DMVPN A GRE interface definition includes An IP address A tunnel source A tunnel destination An optional tunnel key An mgre interface definition includes An IP address A tunnel source A tunnel key interface Tunnel 0 ip address 10.0.0.1 255.0.0.0 tunnel source Dialer1 tunnel destination 172.16.0.2 tunnel key 1 interface Tunnel 0 ip address 10.0.0.1 255.0.0.0 tunnel source Dialer1 tunnel mode gre multipoint tunnel key 1 mgre interfaces do not have a tunnel destination 9

Terminology Pause The tunnel address is the ip address defined on the tunnel interface The Non-Broadcast Multiple Access (NBMA) address is the ip address used as tunnel source (or destination) Example on router A, one configures interface Ethernet0/0 ip address 172.16.0.1 255.255.255.0 interface Tunnel0 ip address 10.0.0.1 255.0.0.0 tunnel source Ethernet0/0 [ ] 10.0.0.1 is router A's tunnel address 172.16.0.1 is router A's NBMA address 10

mgre Tunnels Single tunnel interface (mp) Non-Broadcast Multi-Access (NBMA) Network Multiple (dynamic) tunnel destinations Multicast/broadcast support Next Hop Resolution Protocol (NHRP) VPN IP to NBMA IP address mapping 11

GRE Encapsulation Tunnel address: 10.0.0.1/24 NBMA address: 172.16.0.1/24 Tunnel address: 10.0.0.2/24 NBMA address: 172.16.1.1/24 192.168.0.0/24 192.168.1.0/24 IP s=172.16.0.1, d=172.16.1.1 GRE IP s=192.168.0.1, dst=192.168.1.1 Payload IP s=192.168.0.1, dst=192.168.1.1 Payload IP s=192.168.0.1, dst=192.168.1.1 Payload 12

DMVPN GRE Interfaces In DMVPN, the hub must have a point to mgre Spokes can have a point to point GRE interface or an mgre interface This presentation will use mgre everywhere for consistency Note that point-to-point GRE interfaces prevent spoke to spoke direct tunneling 13

mgre Talking to a Peer Because mgre tunnels do not have a tunnel destination defined, they can not be used alone NHRP tells mgre where to send the packets to NHRP is defined in RFC 2332 14

What is NHRP? NHRP is a layer two resolution protocol and cache like ARP or Reverse ARP (Frame Relay) It is used in DMVPN to map a tunnel IP address to an NBMA address Like ARP, NHRP can have static and dynamic entries NHRP has worked fully dynamically since Release 12.2(13)T 15

How mgre Uses NHRP When a packet is routed, it is passed to the mgre interface along with a next-hop The next-hop is the tunnel address of a remote peer mgre looks up the NHRP cache for the next-hop address and retrieves the NBMA address of the remote peer mgre encapsulates the packet into a GRE/IP payload The new packet destination is the NMBA address Multicast packets are only sent to specific remote peers identified in the NHRP configuration 16

mgre/nhrp Path Tunnel address: 10.0.0.1/24 NBMA address: 172.16.0.1/24 Tunnel address: 10.0.0.2/24 NBMA address: 172.16.0.2/24 192.168.0.0/24 Routing Table NHRP Table 192.168.1.0/24 -> 10.0.0.2 -> 172.16.0.2 Tunnel 0, via 10.0.0.2 192.168.1.0/24 IP s=172.16.0.1, d=172.16.0.2 GRE IP s=192.168.0.1, dst=192.168.1.1 Payload IP s=192.168.0.1, dst=192.168.1.1 Payload 17

How NHRP Works mgre uses NHRP, but how does NHRP work? This presentation will introduce a network topology and illustrate the associated NHRP commands 18

NHRP Registration Dynamically Addressed Spokes 192.168.0.1/24 Physical: 172.17.0.1 Tunnel0: 10.0.0.1 Physical: (dynamic)172.16.1.1 Tunnel0: 10.0.0.11 Physical: (dynamic)172.16.2.1 Tunnel0: 10.0.0.12 192.168.1.1/24 Spoke A Spoke B 192.168.2.1/24 19

Basic NHRP Configuration In order to configure an mgre interface to use NHRP, the following command is necessary: ip nhrp network-id <id> Where <id> is a unique number (same on hub and all spokes) <id> has nothing to do with tunnel key The network ID defines an NHRP domain Several domains can co-exist on the same router 20

Populating the NHRP Cache Three ways to populate the NHRP cache: Manually add static entries Hub learns via registration requests Spokes learn via resolution requests We will now study static and registration Resolution is for spoke to spoke 21

Initial NHRP Caches Initially, the hub has an empty cache The spoke has one static entry mapping the hub s tunnel address to the hub s NBMA address: ip nhrp map 10.0.0.1 172.17.0.1 Multicast traffic must be sent to the hub ip nhrp map multicast 172.17.0.1 22

The Spokes Must Register To The Hub In order for the spokes to register themselves to the hub, the hub must be declared as a Next Hop Server (NHS): ip nhrp nhs 10.0.0.1 ip nhrp holdtime 3600 (optional) ip nhrp registration no-unique (optional) Spokes control the cache on the hub 23

Registration Process The spokes send Registration-requests to the hub The request contains the spoke s Tunnel and NBMA addresses as well as the hold time and some flags The hub creates an entry in its NHRP cache The entry will be valid for the duration of the hold time defined in the registration The NHS returns a registration reply (acknowledgement) 24

Multicast Packets from the Hub The hub must also send multicast traffic to all the spokes that registered to it This must be done dynamically (possible since Release 12.2(13)T) This is not the default ip nhrp map multicast dynamic 25

NHRP Registration Request 192.168.0.1/24 Physical: 172.17.0.1 Tunnel0: 10.0.0.1 NHRP Table 10.0.0.11 -> 172.16.1.1 (dynamic, mcast, hold=3600, no-unique) Physical: (dynamic)172.16.1.1 Tunnel0: 10.0.0.11 IP s=172.16.1.1, d=172.17.0.1 GRE NHRP-Registration Tunnel=10.0.0.11 s=10.0.0.11 NBMA=172.16.1.1 dst=10.0.0.1 Hold=3600, no-unique 192.168.1.1/24 Spoke A NHRP Table 10.0.0.1 -> 172.17.0.1 (static, mcast) 26

NHRP Registration Reply 192.168.0.1/24 Physical: 172.17.0.1 Tunnel0: 10.0.0.1 NHRP Table 10.0.0.11 -> 172.16.1.1 (dynamic, mcast, hold=3600, no-unique) IP s=172.16.1.1, d=172.17.0.1 GRE NHRP-Registration Reply s=10.0.0.11 dst=10.0.0.1 Code = Successful Physical: (dynamic)172.16.1.1 Tunnel0: 10.0.0.11 192.168.1.1/24 Spoke A NHRP Table 10.0.0.1 -> 172.17.0.1 (static, mcast) 27

NHRP Functionality Address mapping/resolution Static NHRP mapping Next Hop Client (NHC) registration with Next Hop Server (NHS) Packet Forwarding Resolution of VPN to NBMA mapping Routing: NHRP: IP destination Tunnel IP next-hop Tunnel IP next-hop NBMA address 28

Routing Protocol The spoke needs to advertise its private network to the hub Can use BGP, EIGRP, OSPF, RIP or ODR; however, this presentation will focus on EIGRP Must consider several caveats 29

Spoke Hellos Spoke has all it needs to send hellos immediately: Tunnel is defined Static NHRP entry to hub is present NHRP entry is marked for multicast So the spoke never waits 30

Hub hello s With its basic tunnel definition, the hub cannot send anything (including hellos) to anyone It must wait NHRP for registrations to arrive As soon as the spokes have registered, the NHRP is marked Multicast due to ip nhrp map multicast dynamic The hub sends hellos to all the registered spokes simultaneously 31

Hub sending EIGRP hello 192.168.0.1/24 IP s=172.17.0.1, d=172.16.1.1 GRE Physical: 172.17.0.1 Tunnel0: 10.0.0.1 IP s=10.0.0.1, d=224.0.0.10 EIGRP hello NHRP Table 10.0.0.11 -> 172.16.1.1 (dynamic, mcast, hold=3600, no-unique) Physical: (dynamic)172.16.1.1 Tunnel0: 10.0.0.11 192.168.1.1/24 Spoke A EIGRP neighbor 10.0.0.1 NHRP Table 10.0.0.1 -> 172.17.0.1 (static, mcast) 32

GRE and EIGRP The default bandwidth of a GRE tunnel is 9Kbps This has no influence on the traffic but EIGRP will take ½ the interface bandwidth maximum (4.5 Kbps) this is too low bandwidth 1000 33

Spoke EIGRP configuration Nothing special on the spoke EIGRP stub should be considered 34

Hub EIGRP Configuration There are many options If you want a spoke to see other spokes: no ip split-horizon eigrp 1 Summarization is to be considered Setting the bandwidth is crucial in the hub to spoke direction Best-practice: Set the bandwidth the same on all nodes 35

IPsec Protection GRE/NHRP can build a fully functional overlay network GRE is insecure; ideally, it must be protected The good old crypto map configuration is rather cumbersome; DMVPN introduced tunnel protection Still need to define an IPsec security level 36

The IPsec Security Policy A transform set must be defined: crypto ipsec transform-set ts esp-sha-hmac esp-3des mode transport An IPsec profile replaces the crypto map crypto ipsec profile prof set transform-set ts The IPsec profile is like a crypto map without set peer and match address 37

Protecting the tunnel The profile must be applied on the tunnel tunnel protection ipsec profile prof Internally Cisco IOS Software will treat this as a dynamic crypto map and it derives the localaddress, set peer and match address parameters from the tunnel parameters and the NHRP cache This must be configured on the hub and spoke tunnels 38

Relation Between GRE, NHRP and IPsec For each NHRP cache unique NBMA address, Cisco IOS Software will create an internal crypto map that protects GRE traffic From tunnel source (NBMA) address To NHRP entry NBMA address The SAs will be negotiated as soon as the cache entry is created (static and resolved) 39

Relationship (cont d.) NHRP registration will be triggered When the Tunnel interface comes up/up When the tunnel source address changes When IPsec finishes negotiating the phase 2 related to the tunnel protection When the registration timer expires 40

NHRP Registration Dynamically Addressed Spokes NHRP mapping Routing Table = permanent IPsec tunnels Physical: 172.17.0.1 Tunnel0: 10.0.0.1 192.168.0.1/24 10.0.0.11 172.16.1.1 10.0.0.12 172.16.2.1 192.168.0.0/24 Conn. 192.168.1.0/24 10.0.0.11 192.168.2.0/24 10.0.0.12 Physical: 172.16.1.1 (dynamic) Tunnel0: 10.0.0.11 Physical: 172.16.2.1 (dynamic) Tunnel0: 10.0.0.12 Spoke A 192.168.1.1/24 10.0.0.1 172.17.0.1 192.168.0.0/24 10.0.0.1 192.168.1.0/24 Conn. 192.168.2.0/24 10.0.0.1 Spoke B 192.168.2.1/24 10.0.0.1 172.17.0.1 192.168.0.0/24 10.0.0.1 192.168.1.0/24 10.0.0.1 192.168.2.0/24 Conn. 41

Building Hub-and-Spoke tunnels NHRP Registration Host1 Spoke1 Hub Spoke2 Host2 IKE Initialization IKE/IPsec Established NHRP Regist. Req. NHRP Regist. Rep. Routing Adjacency Routing Update Routing Update IKE Initialization IKE/IPsec Established NHRP Regist. Req. NHRP Regist. Rep. Routing Adjacency Routing Update Routing Update Encrypted Encrypted 42

43