Connect two offices over the internet the right way. In this Cisco lab we build a GRE tunnel, run OSPF through it, capture the clear-text GRE traffic like an attacker on the path — and then protect the tunnel with an IPsec profile.
In this lab you will learn:
✅ Why GRE over IPsec: multicast and routing protocols + encryption
✅ GRE tunnel configuration: tunnel source, tunnel destination, tunnel IP
✅ MTU and TCP MSS tuning for tunnels
✅ OSPF over a GRE tunnel
✅ Why plain GRE is readable by anyone on the path (lab demo)
✅ IPsec protection profile: ISAKMP policy, transform set, transport mode
✅ Verification with show crypto ipsec sa
✅ Best practices and the next step: DMVPN
⏱️ Chapters:
0:00 Intro
0:23 GRE and IPsec Basics
0:58 Lab Topology
1:26 Step 1 · Build the GRE Tunnel
1:53 Step 2 · OSPF over the Tunnel
2:12 The Problem · Clear-Text Tunnel
2:35 Step 3 · Protect the Tunnel with IPsec
3:10 Step 4 · Verify the Encryption
3:37 Best Practices and Next Steps
4:18 Recap
4:37 Outro
🧪 Key commands (R1):
interface tunnel 0
ip address 10.0.0.1 255.255.255.252
tunnel source g0/1
tunnel destination 198.51.100.2
ip mtu 1400
ip tcp adjust-mss 1360
crypto isakmp policy 10
encryption aes 256
hash sha256
authentication pre-share
group 14
crypto isakmp key YOUR-STRONG-KEY address 198.51.100.2
crypto ipsec transform-set TS esp-aes 256 esp-sha256-hmac
mode transport
crypto ipsec profile GRE-PROT
set transform-set TS
interface tunnel 0
tunnel protection ipsec profile GRE-PROT
⚠️ Educational purposes only. Test attacks only in your own lab.
📚 More networking labs: IPsec VPN, BGP, VLANs, OSPF, Layer 2 attacks, STP, ACLs, NAT, router hardening, HSRP — subscribe to netacademy.ge
▶️ Previous lab — HSRP & Gateway Hijacking:
© netacademy.ge — All rights reserved.
#VPN #CCNA #Cisco #NetworkSecurity #Networking