🌐 BGP (Border Gateway Protocol) - Internet protocol

 

🌐 BGP (Border Gateway Protocol)


🧠 Top 5 Key Points

  1. Path Vector Routing Protocol:
    BGP makes routing decisions based on path attributes, policies, and rules, not just metrics like OSPF or EIGRP.

  2. Used for Internet Routing:
    It’s the protocol that runs the Internet, connecting different Autonomous Systems (AS) — typically ISPs, enterprises, and data centers.

  3. Exterior Gateway Protocol (EGP):
    Unlike OSPF or EIGRP (Interior Gateway Protocols), BGP operates between autonomous systems, not within one.

  4. TCP Port 179:
    BGP forms neighbor relationships (peering) over TCP port 179 for reliable communication.

  5. 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

PC1 -- R1 -- R2 -- PC2

IP Address Plan

DeviceInterfaceIP AddressNetworkAS Number
R1G0/0192.168.1.1192.168.1.0/2465001
S0/0/010.0.0.110.0.0.0/3065001
R2S0/0/010.0.0.210.0.0.0/3065002
G0/0192.168.2.1192.168.2.0/2465002
PC1NIC192.168.1.10192.168.1.0/24
PC2NIC192.168.2.10192.168.2.0/24

🪜 Step-by-Step Configuration

🔹 R1 (AS 65001)

enable conf t interface g0/0 ip address 192.168.1.1 255.255.255.0 no shutdown exit interface s0/0/0 ip address 10.0.0.1 255.255.255.252 clock rate 64000 no shutdown exit router bgp 65001 neighbor 10.0.0.2 remote-as 65002 network 192.168.1.0 mask 255.255.255.0

🔹 R2 (AS 65002)

enable conf t interface s0/0/0 ip address 10.0.0.2 255.255.255.252 no shutdown exit interface g0/0 ip address 192.168.2.1 255.255.255.0 no shutdown exit router bgp 65002 neighbor 10.0.0.1 remote-as 65001 network 192.168.2.0 mask 255.255.255.0

🔍 Verification Commands

show ip bgp summary

➡ Shows BGP neighbor relationships and AS numbers.

show ip bgp

➡ Displays the BGP routing table.

show ip route bgp

➡ Shows BGP-learned routes (marked with “B”).


💡 Testing

From PC1, ping PC2:

ping 192.168.2.10

✅ If successful → BGP routes are properly exchanged between AS 65001 and AS 65002.


🧠 What Students Learn

ConceptDescription
BGP TypePath Vector
Use CaseRouting between ISPs or organizations
eBGP PeeringBetween different AS numbers
Transport ProtocolTCP port 179
Metric BasisPath 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

Popular posts from this blog

🖥️ Private IP vs Public IP Address

🧠 Introduction to CCNA Networking