π― Welcome to the Advanced BGP Lab
This comprehensive lab will take you through advanced BGP concepts and real-world configurations used in enterprise and service provider networks.
π What You'll Learn
- Route Reflectors: Configure BGP route reflectors to scale iBGP without full mesh requirements
- BGP Confederations: Implement confederations to divide large AS into smaller sub-autonomous systems
- BGP Communities: Use standard and extended communities for traffic engineering and route manipulation
- Advanced Path Selection: Master BGP attributes including LOCAL_PREF, AS_PATH prepending, and MED
- Route Filtering: Apply prefix-lists, route-maps, and AS-path filters effectively
- BGP Best Path Algorithm: Understand the complete BGP decision process
- Traffic Engineering: Implement inbound and outbound traffic control techniques
π’ Lab Environment
This lab simulates an enterprise network with multiple sites connected to two ISPs. You'll configure:
- 4 Internal routers forming an iBGP mesh with route reflectors
- 2 ISP connections with diverse paths
- Traffic steering using BGP communities
- Redundancy and failover scenarios
π‘ Why This Matters
BGP is the routing protocol of the Internet. Understanding advanced BGP concepts is crucial for network architects, engineers managing multi-homed networks, and anyone working in service provider environments. These techniques are used daily to optimize traffic flow, ensure redundancy, and implement complex routing policies across thousands of production networks worldwide.
Click through the tabs above to progress through the lab. Start with the Topology to understand the network layout, then move to Prerequisites before diving into Configuration.
πΊοΈ Network Topology
Our lab network consists of an enterprise network (AS 65100) connected to two ISPs (AS 65200 and AS 65300).
π Network Details
| Router | Role | AS Number | Loopback |
|---|---|---|---|
| R1 | Edge Router / RR Client | 65100 | 1.1.1.1/32 |
| R2 | Edge Router / RR Client | 65100 | 2.2.2.2/32 |
| R3 | Route Reflector | 65100 | 3.3.3.3/32 |
| R4 | Internal Router / RR Client | 65100 | 4.4.4.4/32 |
π Prerequisites
π§ Required Knowledge
- Strong understanding of BGP fundamentals (eBGP and iBGP)
- Familiarity with BGP attributes (AS_PATH, LOCAL_PREF, MED, NEXT_HOP)
- Experience with router CLI (Cisco IOS or similar)
- Understanding of IP routing and subnetting
- Knowledge of route-maps and prefix-lists
Verify Physical Connectivity
β All interfaces operational
β IGP (OSPF) converged
β Loopback addresses reachable
βοΈ Configuration Steps
Configure R1 - Edge Router
π‘ Key Concept: next-hop-self
The next-hop-self command is critical for iBGP. It changes the next-hop to R1's IP so internal routers can reach external destinations.
Configure R2 - Edge Router
Configure R3 - Route Reflector
π‘ Route Reflector Magic
R3 reflects routes between clients, eliminating the need for full-mesh iBGP. With 4 routers, this reduces sessions from 6 to 3!
Configure R4 - Internal Router
π§ Troubleshooting Guide
BGP Neighbor Won't Establish
β’ Wrong AS number in remote-as command
β’ No IP reachability (check IGP)
β’ Update-source mismatch
β’ Firewall blocking TCP 179
Routes Not Being Advertised
π‘ iBGP Split Horizon Rule
Routes learned via iBGP are NOT advertised to other iBGP peers. This is why route reflectors are essential!
β Verification Procedures
π Step 1: Verify BGP Neighbors
β’ All neighbors in Established state
β’ Uptime is stable
β’ Prefix count is non-zero