Learn how to configure OSPF on Cisco routers step by step — then see how an attacker with a laptop can join your OSPF area, inject a fake route and hijack traffic. Finally, we secure the network with passive interfaces and SHA-256 authentication.
In this lab you will learn:
✅ How OSPF works: Hellos, LSAs, SPF, cost, router ID, areas
✅ Single-area OSPF configuration (router ospf, network, router-id, passive-interface)
✅ Verification: show ip ospf neighbor, show ip route ospf
✅ Rogue router injection — why a /25 beats a /24 (longest prefix match)
✅ The fix: passive-interface default + key chain with HMAC-SHA-256
✅ OSPF security best practices checklist (TTL security, max-lsa, monitoring)
⏱️ Chapters:
0:00 Intro
0:21 How OSPF Works
1:01 Lab Topology
1:22 Addressing Plan
1:39 Step 1 · Configure OSPF
2:29 Step 2 · Verify
3:03 OSPF Weaknesses
3:33 Attack · Rogue Router Injection
4:37 The Fix · Secure OSPF
5:30 OSPF Security Best Practices
6:08 Recap
6:30 Outro
🧪 Lab commands (R2 hardening):
router ospf 1
passive-interface default
no passive-interface g0/0
no passive-interface g0/1
key chain OSPF-KEYS
key 1
key-string your-strong-key
cryptographic-algorithm hmac-sha-256
interface range g0/0 - 1
ip ospf authentication key-chain OSPF-KEYS
⚠️ Educational purposes only. Test attacks only in your own lab.
📚 More networking labs: IPsec VPN, BGP security, VLAN hopping — subscribe to netacademy.ge
© netacademy.ge — All rights reserved.
#OSPF #CCNA #NetworkSecurity #Cisco #Networking