Learn how BGP really works, how attackers hijack it, and how to defend your network. In this hands-on Cisco lab we configure eBGP step by step, launch a real BGP prefix hijack, and then stop it with prefix filtering, maximum-prefix, MD5 authentication and TTL security (GTSM).

BGP (Border Gateway Protocol) is the routing protocol of the internet, but it trusts every announcement by default. That is why BGP hijacks and route leaks can take down major services. In 2008, a single more-specific route took YouTube offline worldwide. In this video you will see exactly how that happens, and how to prevent it.

What you will learn:
✔ BGP basics: path-vector, autonomous systems (AS), TCP 179, eBGP vs iBGP
✔ eBGP configuration: router bgp, neighbor remote-as, network
✔ Verification: show ip bgp summary, show ip bgp
✔ BGP's 5 biggest weaknesses
✔ Live prefix hijack attack with more-specific /25 routes
✔ Fix #1: prefix-list filtering + maximum-prefix
✔ Fix #2: MD5 authentication + TTL security (GTSM)
✔ Real-world BGP security: RPKI route origin validation, IRR filters, BGP roles, ASPA, TCP-AO, BFD, MANRS

CHAPTERS:
0:00 Intro
0:18 What is BGP?
1:04 Lab Topology
1:42 Addressing Plan
1:53 Step 1 - Configure BGP on R1
2:22 Step 2 - Configure the ISP (R2)
2:45 Step 3 - Configure R3 and R4
3:05 Step 4 - Verify BGP
3:43 BGP's Weak Spots
4:27 The Attack - Prefix Hijack
5:33 Fix 1 - Prefix Filtering & Maximum-Prefix
6:29 Fix 2 - Secure the BGP Session (MD5 + TTL Security)
7:05 Hardening BGP in the Real World
7:56 Recap
8:27 Outro

KEY COMMANDS:
router bgp 100
bgp router-id 1.1.1.1
neighbor 10.0.12.2 remote-as 200
network 172.16.1.0 mask 255.255.255.0

! ISP (R2) - customer filtering
ip prefix-list AS666-IN seq 5 permit 172.16.4.0/24
router bgp 200
neighbor 10.0.24.2 prefix-list AS666-IN in
neighbor 10.0.24.2 maximum-prefix 10 80

! Session protection (both peers)
neighbor 10.0.12.2 password N3tAcad3my!
neighbor 10.0.12.2 ttl-security hops 1

More networking labs: https://netacademy.ge
Previous lab: Site-to-Site IPsec VPN - step by step

Which attack should we break next? Tell us in the comments!

© netacademy.ge - All rights reserved.

#BGP #NetworkSecurity #CCNP

Last modified: Sunday, 6 December 2026, 9:29 AM