eBGP Basics

CCNP ENCOR 350-401 v1.2 EVE-NG / GNS3

مقصدObjectiveObjective

اس لیب میں آپ eBGP کی بنیاد سیکھیں گے — دو الگ autonomous systems کے درمیان روٹنگ۔Is lab mein aap eBGP ki bunyaad seekhenge — do alag autonomous systems ke darmiyan routing.In this lab you will learn the basics of eBGP — routing between two different autonomous systems.

آسان مثالSimple AnalogySimple Analogy

OSPF آپ کے شہر کے اندر کی گلیاں ہے۔ BGP دو ملکوں کے درمیان کا ہائی وے ہے — انٹرنیٹ اسی پر چلتا ہے۔ eBGP کا مطلب دو الگ کمپنیوں (AS numbers) کے درمیان روٹنگ۔ ہر کمپنی کا اپنا AS نمبر ہوتا ہے، جیسے ہر ملک کا اپنا کوڈ۔ iBGP ایک ہی کمپنی کے اندر ہوتا ہے (اس لیب میں نہیں)۔OSPF aapke sheher ke andar ki galiyan hai. BGP do mulkon ke darmiyan ka highway hai — internet isi par chalta hai. eBGP ka matlab do alag companies (AS numbers) ke darmiyan routing. Har company ka apna AS number hota hai, jaise har mulk ka apna code. iBGP same company ke andar hota hai (is lab mein nahi).OSPF is the streets inside your city. BGP is the highway between two countries — the internet runs on it. eBGP means routing between two different companies (AS numbers). Each company has its own AS number, like each country has its own code. iBGP is inside the same company (not in this lab).

سیٹ اپLab SetupLab Setup

R1 (AS 65001) اور R2 (AS 65002) 203.0.113.0/24 سے connected ہیں۔ ڈیوائسز: 2x روٹر 2911 (R1, R2)، 2x پی سی۔ PC1: 192.168.10.10/24 (R1 کے پیچھے)۔ PC2: 192.168.30.10/24 (R2 کے پیچھے)۔R1 (AS 65001) aur R2 (AS 65002) 203.0.113.0/24 se connected. Devices: 2x Router 2911 (R1, R2), 2x PC PC1: 192.168.10.10/24 (R1 ke peeche). PC2: 192.168.30.10/24 (R2 ke peeche).R1 (AS 65001) and R2 (AS 65002) are connected via 203.0.113.0/24. Devices: 2x Router 2911 (R1, R2), 2x PC. PC1: 192.168.10.10/24 (behind R1). PC2: 192.168.30.10/24 (behind R2).

اقداماتStepsSteps

Step 1

R1 (AS 65001) پر eBGP۔ BGP پروسیس اپنے AS نمبر سے شروع ہوتا ہے۔ پھر neighbor بتائیں: اس کا IP اور اس کا AS نمبر۔R1 (AS 65001) par eBGP. BGP process apne AS number se start hota hai. Phir neighbor batao: uska IP aur uska AS number.eBGP on R1 (AS 65001). The BGP process starts with your own AS number. Then define the neighbor: its IP and its AS number.

enable
configure terminal
router bgp 65001
neighbor 203.0.113.2 remote-as 65002

Step 2

network کمانڈ سے اپنی نیٹ ورک advertise کریں۔network command se apni network advertise karoAdvertise your network with the network command.

network 192.168.10.0 mask 255.255.255.0
exit

Step 3

R2 (AS 65002) پر eBGP۔ R2 کا اپنا AS (65002)۔ Neighbor R1 ہے (AS 65001)۔R2 (AS 65002) par eBGP. R2 ka apna AS (65002). Neighbor R1 hai (AS 65001).eBGP on R2 (AS 65002). R2's own AS is 65002. The neighbor is R1 (AS 65001).

enable
configure terminal
router bgp 65002
neighbor 203.0.113.1 remote-as 65001

Step 4

دونوں طرف کانفگ match کرے تو BGP session Established ہوگی۔Dono taraf config match kare to BGP session Established hogiIf the config matches on both sides, the BGP session will become Established.

network 192.168.30.0 mask 255.255.255.0
exit

Step 5

ٹیسٹنگ: show ip bgp summary — State/PfxRcd میں نمبر آنا چاہیے (Established)۔Testing: show ip bgp summary — State/PfxRcd mein number aana chahiye (Established).Testing: show ip bgp summary — there should be a number under State/PfxRcd (Established).

Step 6

پھر PC1 سے PC2 پنگ کریں۔Phir PC1 se PC2 ping karo.Then ping PC2 from PC1.

تصدیقVerifyVerify

show ip bgp summary سے session state دیکھیں۔ show ip bgp سے BGP ٹیبل دیکھیں۔show ip bgp summary se session state dekho. show ip bgp se BGP table dekho.Check the session state with show ip bgp summary. View the BGP table with show ip bgp.

show ip bgp summary
show ip bgp

خرابی دور کرناTroubleshootingTroubleshooting

⚠️ BGP neighbor Idle/Active میں اٹکا ہے۔BGP neighbor Idle/Active mein atka hai.The BGP neighbor is stuck in Idle/Active.

✅ Neighbor کے remote-as میں پڑوسی کا AS لکھنا ہے، اپنا نہیں۔ دونوں طرف چیک کریں۔Neighbor ke remote-as mein padosi ka AS likhna hai, apna nahi. Dono taraf check karo.In the neighbor's remote-as you write the neighbor's AS, not your own. Check both sides.

⚠️ Neighbor up ہے لیکن روٹس advertise نہیں ہو رہے۔Neighbor up hai lekin routes advertise nahi ho rahe.The neighbor is up but routes are not being advertised.

✅ network کمانڈ والی نیٹ ورک روٹنگ ٹیبل میں ہونی چاہیے (connected یا static سے)۔network command wali network routing table mein honi chahiye (connected ya static se).The network in the network command must exist in the routing table (via connected or static).

انٹرویو سوالاتInterview Q&AInterview Q&A

❓ eBGP اور iBGP میں فرق؟eBGP aur iBGP mein farq?What is the difference between eBGP and iBGP?

eBGP الگ AS نمبرز کے درمیان (انٹرنیٹ)، iBGP ایک ہی AS کے اندر۔ eBGP میں AS-path لوپ روکتا ہے۔eBGP alag AS numbers ke darmiyan (internet), iBGP same AS ke andar. eBGP mein AS-path loop rokta hai.eBGP is between different AS numbers (the internet), iBGP is inside the same AS. In eBGP the AS-path prevents loops.