The course uses one network throughout: a company in AS 64500 with two routers, R1 and R2, each connected to a different internet provider. The company advertises its own address block, 198.51.100.0/24, to both. It assumes CCNA-level routing; the BGP overview in the CCNA Routing course is a short introduction if BGP is completely new.
Device key: ISP A, ISP B, R1, R2 (router) · Company LAN, AS 64500 (network / site)
Lines show the example’s network connections. Thick links: uplinks/WAN, as labelled. Read the numbered steps for traffic direction and changes.
Reading the addresses
IP labels identify interfaces or destinations. Subnet labels identify networks; /n is the prefix length. A router ID (RID) identifies a routing process and need not be a reachable interface.
An IP address alone is not a URL. A web URL includes a scheme such as https://; an address on a router or printer does not imply a website.
- ISP A: AS 64501
- ISP B: AS 64502
- R1: RID 1.1.1.1
- R2: RID 2.2.2.2
- Company LAN, AS 64500: Subnet 198.51.100.0/24
- 1. eBGP to each ISP: R1 peers with ISP A and R2 with ISP B, across their autonomous system borders.
- 2. iBGP inside AS 64500: R1 and R2 share what each learned from its ISP.
- 3. One prefix, two ways in: Both ISPs carry the company's block to the rest of the internet.
What's in this course
6 modules · 43 lessons · about 9 hours of reading
Module 1: BGP Foundations
Autonomous systems, why the internet routes with BGP, how two BGP routers form a session, and how eBGP and iBGP differ.
Module 2: Configuring BGP
eBGP to two ISPs, iBGP between the company's own routers, IPv6 address families and a first lab.
- 2.1Configuring eBGP14 min · Advanced14 min · Advanced
- 2.2Configuring iBGP with loopbacks14 min · Advanced14 min · Advanced
- 2.3eBGP multihop and loopback peering13 min · Advanced13 min · Advanced
- 2.4Address families: BGP for IPv4 and IPv615 min · Advanced15 min · Advanced
- 2.5Originating routes: network, redistribute, default-originate13 min · Advanced13 min · Advanced
- 2.6Lab: eBGP to two ISPs and iBGP insideLab16 min · Advanced16 min · Advanced
Module 3: Path Selection
The attributes BGP compares, the order it compares them in, and how to steer traffic in and out.
- 3.1BGP path attributes13 min · Advanced13 min · Advanced
- 3.2Attribute: weight9 min · Advanced9 min · Advanced
- 3.3Attribute: local preference9 min · Advanced9 min · Advanced
- 3.4Attribute: AS_PATH and prepending9 min · Advanced9 min · Advanced
- 3.5Attribute: ORIGIN9 min · Advanced9 min · Advanced
- 3.6Attribute: MED9 min · Advanced9 min · Advanced
- 3.7Attribute: NEXT_HOP9 min · Advanced9 min · Advanced
- 3.8Attribute: communities9 min · Advanced9 min · Advanced
- 3.9Attributes: ATOMIC_AGGREGATE and AGGREGATOR9 min · Advanced9 min · Advanced
- 3.10The BGP best-path algorithm14 min · Advanced14 min · Advanced
- 3.11Controlling outbound traffic: weight and local preference13 min · Advanced13 min · Advanced
- 3.12Controlling inbound traffic: AS-path prepending and MED13 min · Advanced13 min · Advanced
- 3.13Lab: primary and backup ISPLab18 min · Advanced18 min · Advanced
Module 4: BGP Policy
Filtering what you send and accept, and changing attributes with route maps.
- 4.1Prefix lists and route maps for BGP13 min · Advanced13 min · Advanced
- 4.2Inbound and outbound filtering14 min · Advanced14 min · Advanced
- 4.3AS-path filters and regular expressions13 min · Advanced13 min · Advanced
- 4.4Filtering with distribute lists and extended ACLs11 min · Advanced11 min · Advanced
- 4.5Preventing transit AS12 min · Advanced12 min · Advanced
- 4.6Route aggregation14 min · Advanced14 min · Advanced
- 4.7Applying policy changes: route refresh and soft reconfiguration11 min · Advanced11 min · Advanced
- 4.8Route flap dampening12 min · Advanced12 min · Advanced
Module 5: Scaling and Operations
Route reflectors, peer groups, authentication, timers and private AS numbers, and BGP in a VRF.
- 5.1Route reflectors14 min · Advanced14 min · Advanced
- 5.2Peer groups and templates12 min · Advanced12 min · Advanced
- 5.3BGP authentication and timers12 min · Advanced12 min · Advanced
- 5.4Session safeguards: maximum-prefix, TTL security, allowas-in13 min · Advanced13 min · Advanced
- 5.5Next-hop tracking and the BGP scanner11 min · Advanced11 min · Advanced
- 5.6Private and 4-byte AS numbers12 min · Advanced12 min · Advanced
- 5.7BGP with VRF-Lite13 min · Advanced13 min · Advanced
Module 6: Troubleshooting and Practice
A method for BGP faults, tickets to diagnose, a revision sheet and a test.
- 6.1Troubleshooting BGP15 min · Advanced15 min · Advanced
- 6.2Troubleshooting neighbour adjacency14 min · Advanced14 min · Advanced
- 6.3Troubleshooting route advertisement14 min · Advanced14 min · Advanced
- 6.4BGP troubleshooting ticketsLab20 min · Advanced20 min · Advanced
- 6.5BGP cheat sheet6 min · Advanced6 min · Advanced
- 6.6Test: BGPTest20 min · Advanced20 min · Advanced