اس سبق کے بعد آپ MPLS L3VPN کا مکمل خاکہ سمجھ جائیں گے: VRF، Route Distinguisher، Route Target، اور MP-BGP VPNv4 کی عملی configuration کر سکیں گے۔
Is lesson ke baad aap MPLS L3VPN ka mukammal khaaka samajh jayenge: VRF, Route Distinguisher, Route Target, aur MP-BGP VPNv4 ki practical configuration kar sakenge.
After this lesson you will understand the full MPLS L3VPN picture: VRF, Route Distinguisher, Route Target, and practical MP-BGP VPNv4 configuration.
MPLS L3VPN ایسا ہے جیسے ایک ہی عمارت میں کئی کمپنیوں کے الگ الگ دفاتر — ایک ہی provider نیٹ ورک، لیکن ہر customer کا ٹریفک VRF کے ذریعے مکمل الگ۔ RD ہر دفتر کا منفرد پتہ ہے، RT دروازے کی چابی۔
MPLS L3VPN aisa hai jaise ek hi building mein kai companies ke alag alag offices — ek hi provider network, lekin har customer ka traffic VRF ke zariye mukammal alag. RD har office ka unique pata hai, RT darwaze ki chaabi.
MPLS L3VPN is like several companies sharing one building with separate offices — one provider network, but each customer's traffic fully isolated via VRF. RD is each office's unique address; RT is the door key.
دو PE روٹرز، ایک P روٹر، اور دو CE روٹرز (دو customers) لیں۔ کور میں OSPF چلائیں۔ ہر PE پر دو VRFs بنائیں (CUST-A، CUST-B)۔
Do PE routers, ek P router, aur do CE routers (do customers) lein. Core mein OSPF chalayein. Har PE par do VRFs banayein (CUST-A, CUST-B).
Use two PE routers, one P router, and two CE routers (two customers). Run OSPF in the core. Create two VRFs (CUST-A, CUST-B) on each PE.
کور میں MPLS فعال کریں: ہر کور انٹرفیس پر LDP چلائیں۔ پہلے IGP (OSPF) پوری طرح converge ہونا چاہیے۔
Core mein MPLS active karein: har core interface par LDP chalayein. Pehle IGP (OSPF) poori tarah converge hona chahiye.
Enable MPLS in the core: run LDP on every core interface. The IGP (OSPF) must be fully converged first.
mpls ipinterface FastEthernet0/0mpls ipshow mpls ldp neighborVRF بنائیں۔ RD ہر VRF prefix کو منفرد بناتا ہے (اوور لیپنگ IPs کی اجازت دیتا ہے)۔ RT کنٹرول کرتا ہے کون سی VRF کون سے routes import/export کرے۔
VRF banayein. RD har VRF prefix ko unique banata hai (overlapping IPs ki ijazat deta hai). RT control karta hai kaun si VRF kaun se routes import/export kare.
Create the VRFs. RD makes each VRF prefix unique (allowing overlapping IPs). RT controls which VRF imports/exports which routes.
ip vrf CUST-Ard 65000:1route-target export 65000:1route-target import 65000:1VRF کو customer-facing انٹرفیس سے جوڑیں۔ نوٹ: انٹرفیس پر پہلے سے موجود IP مٹ جائے گا، اس لیے IP دوبارہ لگائیں۔
VRF ko customer-facing interface se jorein. Note: interface par pehle se maujood IP mit jayega, is liye IP dobara lagayein.
Bind the VRF to the customer-facing interface. Note: the interface's existing IP is removed, so re-apply it.
interface FastEthernet0/1ip vrf forwarding CUST-Aip address 192.168.10.1 255.255.255.0PE-CE routing چلائیں — یہاں eBGP استعمال کریں۔ CE کے روٹس VRF routing table میں آئیں گے۔
PE-CE routing chalayein — yahan eBGP use karein. CE ke routes VRF routing table mein aayenge.
Run PE-CE routing — use eBGP here. CE routes will land in the VRF routing table.
router bgp 65000address-family ipv4 vrf CUST-Aneighbor 192.168.10.2 remote-as 65001redistribute connectedPEs کے درمیان MP-BGP VPNv4 session بنائیں۔ یہ VPNv4 prefixes (RD + IPv4) ایک PE سے دوسرے PE تک لے جاتا ہے۔
PEs ke darmiyan MP-BGP VPNv4 session banayein. Ye VPNv4 prefixes (RD + IPv4) ek PE se doosre PE tak le jata hai.
Build the MP-BGP VPNv4 session between PEs. It carries VPNv4 prefixes (RD + IPv4) from one PE to the other.
router bgp 65000neighbor 10.0.0.2 remote-as 65000neighbor 10.0.0.2 update-source Loopback0address-family vpnv4neighbor 10.0.0.2 activateneighbor 10.0.0.2 send-community extendedVRF روٹس کو MP-BGP میں redistribute کریں تاکہ وہ VPNv4 کے طور پر دوسرے PE تک پہنچیں۔
VRF routes ko MP-BGP mein redistribute karein taake wo VPNv4 ke tor par doosre PE tak pohnchen.
Redistribute VRF routes into MP-BGP so they reach the other PE as VPNv4.
address-family ipv4 vrf CUST-Aredistribute bgp 65001آخر سے آخر تک connectivity ٹیسٹ کریں: CE-A1 سے CE-A2 تک ping۔ پھر CUST-B کے CE سے ping کر کے دیکھیں کہ ٹریفک الگ ہے (fail ہونا چاہیے)۔
End-to-end connectivity test karein: CE-A1 se CE-A2 tak ping. Phir CUST-B ke CE se ping kar ke dekhen ke traffic alag hai (fail hona chahiye).
Test end-to-end connectivity: ping from CE-A1 to CE-A2. Then ping from CUST-B's CE to confirm isolation (it should fail).
ping vrf CUST-A 192.168.20.2show ip route vrf CUST-Aیقین کریں کہ LDP neighbors up ہیں، ہر VRF میں CE روٹس موجود ہیں، VPNv4 prefixes دوسرے PE پر نظر آ رہے ہیں، اور customers آپس میں isolated ہیں۔
Yaqeen karein ke LDP neighbors up hain, har VRF mein CE routes maujood hain, VPNv4 prefixes doosre PE par nazar aa rahe hain, aur customers aapas mein isolated hain.
Confirm LDP neighbors are up, each VRF holds CE routes, VPNv4 prefixes appear on the remote PE, and customers are isolated from each other.
show mpls forwarding-tableshow ip bgp vpnv4 all summaryshow ip route vrf CUST-Aping vrf CUST-A 192.168.20.2