🌐 BGP (Border Gateway Protocol) - Internet protocol
🌐 BGP (Border Gateway Protocol)
🧠 Top 5 Key Points
-
Path Vector Routing Protocol:
BGP makes routing decisions based on path attributes, policies, and rules, not just metrics like OSPF or EIGRP. -
Used for Internet Routing:
It’s the protocol that runs the Internet, connecting different Autonomous Systems (AS) — typically ISPs, enterprises, and data centers. -
Exterior Gateway Protocol (EGP):
Unlike OSPF or EIGRP (Interior Gateway Protocols), BGP operates between autonomous systems, not within one. -
TCP Port 179:
BGP forms neighbor relationships (peering) over TCP port 179 for reliable communication. -
Two Types of BGP:
-
eBGP: Between different ASes (ISPs or enterprises).
-
iBGP: Within the same AS (used inside large networks).
-
⚙️ Technical Summary
-
Protocol Type: Path Vector
-
Metric: Path attributes (AS-PATH, NEXT-HOP, LOCAL_PREF, etc.)
-
Transport: TCP Port 179
-
Convergence: Slower but highly stable and scalable
🧰 BGP Lab in Cisco Packet Tracer
(Simplified eBGP Lab for beginners)
🎯 Goal:
Configure eBGP between two autonomous systems (AS 65001 and AS 65002) so that both LANs can communicate.
🖥️ Network Topology
IP Address Plan
| Device | Interface | IP Address | Network | AS Number |
|---|---|---|---|---|
| R1 | G0/0 | 192.168.1.1 | 192.168.1.0/24 | 65001 |
| S0/0/0 | 10.0.0.1 | 10.0.0.0/30 | 65001 | |
| R2 | S0/0/0 | 10.0.0.2 | 10.0.0.0/30 | 65002 |
| G0/0 | 192.168.2.1 | 192.168.2.0/24 | 65002 | |
| PC1 | NIC | 192.168.1.10 | 192.168.1.0/24 | — |
| PC2 | NIC | 192.168.2.10 | 192.168.2.0/24 | — |
🪜 Step-by-Step Configuration
🔹 R1 (AS 65001)
🔹 R2 (AS 65002)
🔍 Verification Commands
➡ Shows BGP neighbor relationships and AS numbers.
➡ Displays the BGP routing table.
➡ Shows BGP-learned routes (marked with “B”).
💡 Testing
From PC1, ping PC2:
✅ If successful → BGP routes are properly exchanged between AS 65001 and AS 65002.
🧠 What Students Learn
| Concept | Description |
|---|---|
| BGP Type | Path Vector |
| Use Case | Routing between ISPs or organizations |
| eBGP Peering | Between different AS numbers |
| Transport Protocol | TCP port 179 |
| Metric Basis | Path attributes (AS Path, Next Hop, etc.) |
🗺️ Extra Teaching Tip
"Think of BGP as the Internet’s post office — it doesn’t care how you reach the neighbor’s street (internal routing handles that), it just needs to know which neighborhood (AS) to forward to next."
Comments
Post a Comment