Cisco 300-410: VPN, Tunneling and Remote Connectivity — Study Guide
Part of the Cisco CCNP Enterprise 300-410 ENARSI — Study Guide. Practice with verified answers in the Cisco exam hub, or take timed practice tests on ExamRoll.io.
Overview
VPN, tunneling, and remote connectivity techniques allow private, policy‑enforced communication over shared networks. Designs hinge on encapsulation choices (GRE, IPsec, VTIs), key exchange (IKEv1/2), control-plane resolution (NHRP in DMVPN), and transport realities (MTU, NAT, failover). This section explains how to combine these building blocks to produce scalable, secure, and resilient overlay networks for both site‑to‑site and remote‑access use cases.
GRE and IPsec Fundamentals
Generic Routing Encapsulation (GRE) is a simple, stateless encapsulation that carries almost any Layer‑3 protocol over an IP underlay. Key properties:
- Behavior and encapsulation: GRE adds a 20‑byte outer IP header plus a 4‑byte GRE header (24 bytes total). GRE has no native encryption or authentication.
- Routing: GRE provides a numbered tunnel interface that participates in routing and supports IGP adjacencies over the overlay.
- MTU, fragmentation, MSS: The added overhead reduces effective payload MTU. Without mitigation, PMTUD blackholing and IP fragmentation can degrade performance. Best practice sets a smaller tunnel interface MTU and clamps TCP MSS to avoid fragmentation in the overlay.
Example GRE point‑to‑point with safe MTU and MSS:
interface Tunnel1
ip address 172.20.1.2 255.255.255.0
ip mtu 1400
ip tcp adjust-mss 1360
tunnel source 10.10.2.2
tunnel destination 10.10.1.1
IPsec provides confidentiality, integrity, and anti‑replay:
- Modes: Transport mode secures only the payload; the original IP header remains. Tunnel mode encapsulates the entire IP packet with a new outer IP header. GRE over IPsec typically uses IPsec transport mode to minimize overhead; route‑based VTIs use IPsec tunnel mode.
- Selectors (proxy IDs / traffic selectors): Define which 5‑tuple flows are protected. Policy‑based VPNs use ACLs to define selectors; route‑based VPNs use 0.0.0.0/0 (or ::/0) selectors tied to a tunnel interface, with routing determining traffic.
- Encryption and integrity: AES‑GCM provides authenticated encryption in one transform and reduces per‑packet overhead vs AES‑CBC + HMAC. Use modern DH groups (14/19+) and PFS for forward secrecy. Align transform/proposal capabilities on both peers.
Fragmentation and throughput trade‑offs:
- Pre‑fragmentation (look‑ahead fragmentation) works in tunnel mode only. It can improve throughput by avoiding reassembly on the decrypting end host, at the cost of additional IP fragments across the underlay.
- Fragmentation after‑encryption is often used with GRE over IPsec in transport mode and NAT‑T; combined with MSS clamping it reduces the chance of PMTUD black holes.
- PMTUD vs fixed MTU: If underlay ICMP is filtered, rely on conservative tunnel MTU and MSS clamping.
Applying IPsec to GRE with tunnel protection:
crypto isakmp policy 10
encr aes 256
hash sha256
authentication pre-share
group 14
lifetime 28800
crypto isakmp key Test address 0.0.0.0 0.0.0.0
crypto ipsec transform-set TS esp-gcm 256 mode transport
!
crypto ipsec profile GRE-PROF
set transform-set TS
!
interface Tunnel10
ip address 10.10.10.1 255.255.255.0
ip mtu 1400
ip tcp adjust-mss 1360
tunnel mode gre multipoint
tunnel protection ipsec profile GRE-PROF
Key Exchange, NAT Traversal, and VPN Styles
IKE negotiates SAs for IPsec.
- IKEv1: Main and Aggressive modes for Phase 1; Quick Mode for Phase 2. Configure policies (“crypto isakmp policy”), authentication (PSK or certificates), lifetime, and DH groups. Troubleshoot with show crypto isakmp sa and debugs for MM/AM/QM exchanges and proxy ID mismatches.
- IKEv2: Single exchange model with proposals, policies, and profiles. Supports multiple child SAs, EAP for remote access, and better error signaling. FlexVPN standardizes on IKEv2 and route‑based behavior via VTIs. Troubleshoot with show crypto ikev2 sa/session, show crypto ipsec sa, and debugs.
NAT traversal and keepalives:
- NAT‑T detects NAT along the path and encapsulates ESP in UDP/4500. Ensure both peers enable NAT‑T. IKE keepalives and Dead Peer Detection (DPD) remove stale SAs; tune timers to match application needs.
- Tunnel source/destination reachability is foundational: the underlay must route to the tunnel endpoints. Provide static routes or dynamic underlay routing to ensure the outer IPs remain reachable through failover events.
- GRE keepalives work for point‑to‑point GRE, but not for mGRE. For overlays, use IGP timers, NHRP timers, or BFD. BFD control packets use UDP port 3784 and can rapidly detect path failures; integrate with IGPs for sub‑second convergence.
Policy‑based vs route‑based VPNs:
- Policy‑based: Crypto map with ACL “interesting traffic” selectors. Pros: simple for small, static site‑to‑site. Cons: complex with many prefixes, asymmetric routing issues, and poor support for spoke‑to‑spoke.
- Route‑based: Virtual tunnel interfaces (VTI/dVTI/FlexVPN) with default (any/any) selectors; routing determines protected flows. Pros: scales, supports dynamic routing and hairpin/spoke‑to‑spoke, simpler crypto. Preferred for modern designs.
Remote access with IKEv2/FlexVPN:
- Use IKEv2 profiles, EAP authentication, and dVTIs to assign per‑user/per‑group policies. Diagnose with show crypto ikev2 sa and AAA logs. MSS clamping and split tunneling mitigate MTU and performance issues on diverse client networks.
Policy‑based routing for fallbacks:
- When steering otherwise unrouted flows into a tunnel or to a specific egress, use PBR with set ip default next-hop to specify a default next hop when the RIB has no matching route, minimizing reliance on static defaults during failover.
DMVPN Design and Operation
DMVPN combines mGRE, NHRP, and IPsec to build scalable hub‑and‑spoke or spoke‑to‑spoke topologies.
- mGRE: One tunnel interface terminates many peers dynamically; no per‑spoke tunnel required at the hub. The tunnel endpoint is a single “any‑to‑any” NBMA address.
- NHRP: Resolves overlay next hops to NBMA underlay addresses. The spoke registers with the NHRP Next Hop Server (NHS) on the hub. NHRP queries enable on‑demand spoke‑to‑spoke resolution.
- Spokes and dynamic IPs: Spokes behind NAT or with dynamic addresses may require ip nhrp registration no-unique to allow registration without a globally unique NBMA.
- Phases:
- Phase 1: Spokes use hub for all traffic; no direct spoke‑to‑spoke.
- Phase 2: Spokes form direct tunnels after NHRP resolution; routing must advertise spoke prefixes without summarization that obscures next hops.
- Phase 3: Adds NHRP redirect/shortcut to dynamically rewrite next hops; allows summarization at hub and optimal spoke‑to‑spoke forwarding.
- OSPF over DMVPN: mGRE defaults to OSPF broadcast; the hub should become DR to stabilize adjacencies—set OSPF priority > 1 on the hub and 0 on spokes. Alternatively, use point‑to‑multipoint to avoid DR/BDR but accept higher LSA overhead.
- IPv6: Build IPv6 adjacencies over DMVPN using tunnel mode gre multipoint ipv6 and NHRP for IPv6 mappings. Dual‑stack overlays can run IPv4 and IPv6 simultaneously on the same mGRE interface.
- IPsec integration: Protect mGRE with a single IPsec profile using tunnel protection. Prefer transport mode for GRE over IPsec.
- MTU and fragmentation: Apply conservative ip mtu and ip tcp adjust‑mss and consider crypto ipsec fragmentation after-encryption to maximize negotiated TCP MSS and avoid PMTUD failures.
Typical Phase 3 excerpts:
! Hub
interface Tunnel10
ip address 10.0.0.1 255.255.255.0
ip nhrp map multicast dynamic
ip nhrp network-id 10
ip nhrp redirect
tunnel mode gre multipoint
tunnel protection ipsec profile DMVPN-PROF
ip ospf network broadcast
ip ospf priority 100
! Spoke
interface Tunnel10
ip address 10.0.0.11 255.255.255.0
ip nhrp network-id 10
ip nhrp nhs 10.0.0.1
ip nhrp map multicast dynamic
ip nhrp shortcut
ip nhrp registration no-unique
ip mtu 1400
ip tcp adjust-mss 1360
tunnel mode gre multipoint
tunnel protection ipsec profile DMVPN-PROF
NAT traversal: Ensure NAT‑T is enabled and that the hub is reachable on UDP/500 and UDP/4500. Dynamic spoke‑to‑spoke tunnels require that the underlay permit direct UDP/4500 and ESP/UDP between spokes if NAT‑T relays are not in the path.
Operations and troubleshooting:
- show dmvpn, show ip nhrp, and show crypto ipsec sa to verify NHRP registrations and IPsec SAs.
- For routing, confirm that hub advertisements do not obscure spoke specifics in Phase 2, and that NHRP redirects/shortcuts are occurring in Phase 3.
- mGRE does not support GRE keepalives; rely on NHRP/IGP timers or BFD for failure detection.
IPv6, Dual‑Stack Security, and Resilient Remote Connectivity
IPv6 over IPv4 tunnels:
- GRE over IPv4 underlay carries IPv6 payloads transparently; secure with IPsec as above.
- 6in4 (tunnel mode ipv6ip) is a simple point‑to‑point option, but lacks DMVPN/mGRE scalability.
- Dual‑stack overlays run both IPv4 and IPv6 on the same GRE/mGRE, protected by a single IPsec association set, or separate SAs if required by policy.
IPv6 security notes:
- RA Guard filters rogue IPv6 Router Advertisements on L2 segments but cannot inspect inside tunnels; it does not protect when IPv6 traffic is tunneled. Enforce security at the tunnel endpoints and on the overlay routing plane.
Remote‑access diagnostics and resilient design:
- Instrumentation: show crypto ikev2 sa/session, show crypto ipsec sa, show crypto session, and per‑client accounting logs. Capture on UDP/500/4500 and ESP/UDP to observe NAT‑T behavior. Verify that split‑tunnel routes are installed on the client.
- MTU optimization: Clients traverse arbitrary access networks; enable TCP MSS clamping on headends and consider 1200–1360 MSS for stable performance. Packet loss combined with PMTUD blackholing is a common cause of poor UX.
- High availability: Use multiple tunnel sources (multi‑WAN) with object tracking and SLA probes to fail over the underlay default. For IGP overlays, consider BFD to reduce failure detection timers on the tunnel. Maintain short IKE/child SA rekey timers aligned with headend clustering to minimize crypto state loss during failover.
- Access policy and selectors: Prefer route‑based remote access (dVTI) so all client traffic (or only split prefixes) is routed into the virtual interface; this avoids brittle policy‑based selector mismatches.
- Endpoint reachability: Always verify underlay routing to the headend’s public addresses from the client networks. If steering traffic within the WAN, policy‑based routing with set ip default next-hop can direct otherwise‑unrouted flows to the correct egress when RIB lookups fail.
Practical Problem Scenario
Contoso Retail operates 150 branches connected over broadband. They need secure hub‑and‑spoke connectivity with dynamic spoke‑to‑spoke for Point‑of‑Sale replication, dual‑stack support, and resilience to MTU/NAT issues.
Approach:
- Build a DMVPN Phase 3 overlay with mGRE on the hub and spokes, protected by IPsec transport mode.
- Rationale: mGRE scales to many spokes without per‑tunnel hub config. Phase 3 allows on‑demand spoke‑to‑spoke via NHRP shortcut/redirect, optimizing replication flows and conserving hub bandwidth. Transport mode minimizes overhead for GRE over IPsec.
- Standardize IKEv2 with modern cryptography and NAT‑T.
- Rationale: IKEv2 simplifies negotiations and supports multiple child SAs and cleaner error handling, ideal for large deployments. NAT‑T (UDP/4500) accommodates branch NAT. Use AES‑GCM with DH group 19 or 20 and PFS for performance and security.
- Engineer MTU end‑to‑end and enable fragmentation after encryption.
- Rationale: Broadband providers often block ICMP, breaking PMTUD. Setting ip mtu 1400 and ip tcp adjust-mss 1360 on Tunnel interfaces, plus crypto ipsec fragmentation after-encryption, prevents blackholing and maximizes effective TCP MSS.
- Enable NHRP features for dynamic resolution and NATed spokes.
- Rationale: ip nhrp redirect on the hub and ip nhrp shortcut on spokes create Phase 3 shortcuts. ip nhrp registration no-unique allows spokes with dynamic/NATed NBMA addresses to register successfully.
- Run OSPF over the overlay with hub as DR and BFD for fast failure detection.
- Rationale: mGRE defaults to broadcast; setting the hub’s OSPF priority > 1 and spokes to 0 ensures a stable DR/BDR election and fewer adjacencies. BFD (UDP/3784) with aggressive timers provides sub‑second convergence on tunnel failures.
- Add IPv6 alongside IPv4 on the same DMVPN interface.
- Rationale: tunnel mode gre multipoint ipv6 enables IPv6 adjacency over mGRE. Dual‑stack routing avoids parallel infrastructures. RA Guard is ineffective inside the tunnel, so enforce IPv6 security via overlay ACLs and routing policy.
- Harden key exchange and operations.
- Rationale: Use preshared keys initially (crypto isakmp key Test address 0.0.0.0 0.0.0.0 for legacy IKEv1 fallback, or IKEv2 keyrings/profiles) and migrate to certificates. Set appropriate lifetimes and DPD to clear stale SAs. Instrument with show dmvpn, show ip nhrp, show crypto ikev2 sa, show crypto ipsec sa, and syslog.
- Ensure underlay reachability and steer failover with routing/PBR where needed.
- Rationale: Static routes or dynamic underlay routing must keep tunnel sources reachable across WAN changes. Where interim steering is necessary, PBR with set ip default next-hop can direct traffic toward the preferred egress if RIB lookups fail.
This design yields scalable, encrypted, dual‑stack connectivity with optimal spoke‑to‑spoke paths, predictable MTU behavior, robust NAT traversal, and fast recovery from failures.
← Quality of Service and Control-Plane Protection · All domains · Network Services →
Practice these questions → · Timed practice on ExamRoll.io →
Pass the whole exam — not just this question
You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.
Pass your exam →