اس لیب میں آپ VRF-Lite کانفگر کرنا سیکھیں گے — ایک روٹر پر متعدد الگ الگ روٹنگ ٹیبلز بنانا۔
Is lab mein aap VRF-Lite configure karna seekhenge — ek router par multiple isolated routing tables banana.
In this lab you will learn to configure VRF-Lite — creating multiple isolated routing tables on one router.
ایک ہی بلڈنگ میں دو کمپنیاں ہیں — دونوں اپنا اپنا دفتر چلاتی ہیں، لیکن بجلی کا میٹر ایک ہے۔ VRF کا مطلب روٹر کے اندر الگ الگ 'ورچوئل روٹرز' بنا دینا: ہر کمپنی کی اپنی روٹنگ ٹیبل، اپنے روٹس — ایک دوسرے کو دیکھ بھی نہیں سکتے۔ VRF-Lite یہی کام ہے، بغیر MPLS کے — چھوٹے ملٹی ٹیننٹ نیٹ ورکس کے لیے۔
Ek hi building mein do companies hain — dono apna apna office chalati hain, lekin bijli ka meter ek hai. VRF ka matlab router ke andar alag alag 'virtual routers' bana dena: har company ki apni routing table, apne routes — ek doosre ko dekh bhi nahi sakte. VRF-Lite yehi kaam hai, baghair MPLS ke — chhote multi-tenant networks ke liye.
Two companies share one building — both run their own office, but the electricity meter is one. VRF means creating separate 'virtual routers' inside the router: each company has its own routing table, its own routes — they can't even see each other. VRF-Lite does the same thing without MPLS — for small multi-tenant networks.
R1 کے G0/0 پر COMPANY-A کا سوئچ+PCs، G0/1 پر COMPANY-B کا سوئچ+PCs۔ ڈیوائسز: 1x روٹر 2911 (R1)، 2x سوئچ، 4x پی سی۔ COMPANY-A کے PCs: 192.168.10.10، .11/24۔ COMPANY-B کے PCs: 192.168.10.10، .11/24 (وہی IPs چلیں گے — الگ VRF!)۔
R1 ke G0/0 par COMPANY-A ka switch+PCs, G0/1 par COMPANY-B ka switch+PCs. Devices: 1x Router 2911 (R1), 2x Switch, 4x PC COMPANY-A ke PCs: 192.168.10.10, .11/24. COMPANY-B ke PCs: 192.168.10.10, .11/24 (same IPs chalenge — alag VRF!).
R1's G0/0 connects COMPANY-A's switch+PCs, G0/1 connects COMPANY-B's switch+PCs. Devices: 1x Router 2911 (R1), 2x Switch, 4x PC. COMPANY-A PCs: 192.168.10.10, .11/24. COMPANY-B PCs: 192.168.10.10, .11/24 (the same IPs work — different VRF!).
R1 پر VRFs بنائیں۔ دو VRFs بناتے ہیں (A اور B)۔
R1 par VRFs banao. Do VRFs banate hain (A aur B).
Create VRFs on R1. We create two VRFs (A and B).
enableconfigure terminalip vrf COMPANY-Ard 1:1exitip vrf COMPANY-Brd 1:2exitپھر ہر انٹرفیس کو اس کے VRF میں ڈالتے ہیں — دھیان دیں: ip vrf forwarding IP ایڈریس سے پہلے لگتا ہے، ورنہ IP اڑ جاتا ہے۔ دونوں VRFs میں ایک ہی IP بھی چل سکتا ہے!
Phir har interface ko uske VRF mein daalte hain — dhyan do: ip vrf forwarding IP address se PEHLE lagta hai, warna IP ur jata hai. Dono VRFs mein same IP bhi chal sakta hai!
Then we place each interface in its VRF — note: ip vrf forwarding goes BEFORE the IP address, otherwise the IP is removed. The same IP can even be used in both VRFs!
interface fa0/0ip vrf forwarding COMPANY-Aip address 192.168.10.1 255.255.255.0no shutdownexitinterface fa0/1ip vrf forwarding COMPANY-Bip address 192.168.10.1 255.255.255.0no shutdownexitVRF ویریفائی کریں۔ show ip vrf سے VRFs دیکھیں۔
VRF verify karo. show ip vrf se VRFs dekho.
Verify VRF. View the VRFs with show ip vrf.
show ip vrfہر VRF کی اپنی روٹنگ ٹیبل ہوتی ہے — اس لیے show ip route کے ساتھ vrf کا نام لکھنا پڑتا ہے۔ پنگ بھی VRF بتائے کر کریں۔
Har VRF ki apni routing table hoti hai — is liye show ip route ke saath vrf naam likhna parta hai. Ping bhi VRF specify kar ke karo
Each VRF has its own routing table — so you must write the vrf name with show ip route. Also specify the VRF when pinging.
show ip route vrf COMPANY-Aping vrf COMPANY-A 192.168.10.10ٹیسٹنگ: A کے PC سے A کے گیٹ وے کو پنگ کریں — کامیاب۔ A کے PC سے B کے نیٹ ورک کو پنگ کریں — ناکام (isolated)۔
Testing: A ke PC se A ke gateway ko ping karo — kamyab. A ke PC se B ke network ko ping karo — nakaam (isolated).
Testing: ping A's gateway from A's PC — success. Ping B's network from A's PC — failure (isolated).
یہی VRF کا کمال ہے۔
Yehi VRF ka kamal hai.
That is the magic of VRF.
show ip vrf سے VRFs دیکھیں۔ show ip route vrf COMPANY-A سے اس کی ٹیبل دیکھیں۔
show ip vrf se VRFs dekho. show ip route vrf COMPANY-A se uski table dekho.
View the VRFs with show ip vrf. View its table with show ip route vrf COMPANY-A.
show ip vrfshow ip route vrf COMPANY-A