VXLAN/EVPN on Nexus: Configuration Basics
CCNP Data Center — DCCOR track EVE-NG — Nexus / ACI lab
مقصدObjectiveObjective
اس lab میں آپ Nexus پر VXLAN/EVPN کی بنیاد configure کریں گے: NVE interface، VNI mapping اور EVPN control plane۔Is lab mein aap Nexus par VXLAN/EVPN ki bunyad configure karenge: NVE interface, VNI mapping aur EVPN control plane.In this lab you will configure the basics of VXLAN/EVPN on Nexus: NVE interface, VNI mapping and the EVPN control plane.
آسان مثالSimple AnalogySimple Analogy
Underlay کو شاہراہ اور overlay (VXLAN) کو اس پر چلنے والے ڈھکے ہوئے ٹرک سمجھیں۔ شاہراہ کو یہ جاننے کی ضرورت نہیں کہ ٹرک کے اندر کیا ہے — loading اور unloading کا کام VTEP کرتا ہے۔Underlay ko shahrah aur overlay (VXLAN) ko is par chalne wale dhake hue truck samajhein. Shahrah ko ye jaanne ki zaroorat nahi ke truck ke andar kya hai — loading aur unloading ka kaam VTEP karta hai.Think of the underlay as the highway and the overlay (VXLAN) as covered trucks driving on it. The highway does not need to know what is inside the trucks — the VTEPs handle loading and unloading.
سیٹ اپLab SetupLab Setup
EVE-NG میں: 1x spine کے ذریعے جڑے 2x Nexus 9000v leaves (Leaf-1، Leaf-2)۔ Underlay reachability OSPF یا static routes سے۔ ہر leaf پر Loopback0۔EVE-NG mein: 1x spine ke zariye jure 2x Nexus 9000v leaves (Leaf-1, Leaf-2). Underlay reachability OSPF ya static routes se. Har leaf par Loopback0.In EVE-NG: 2x Nexus 9000v leaves (Leaf-1, Leaf-2) connected through 1x spine. Underlay reachability via OSPF or static routes. Loopback0 on each leaf.
اقداماتStepsSteps
Step 1
Overlay features enable کریں (دونوں leaves پر)۔ nv overlay VXLAN data plane دیتا ہے، اور bgp EVPN control plane۔Overlay features enable karein (dono leaves par). nv overlay VXLAN data plane deta hai, aur bgp EVPN control plane.Enable the overlay features (on both leaves). nv overlay brings the VXLAN data plane, and bgp brings the EVPN control plane.
configure terminal feature nv overlay feature bgp end show feature | include nv
Step 2
ہر leaf کو loopback0 دیں (Leaf-1 پر 10.1.1.1/32، Leaf-2 پر 10.1.1.2/32)۔ یہ OSPF میں VTEP کا source address بنے گا۔Har leaf ko loopback0 dein (Leaf-1 par 10.1.1.1/32, Leaf-2 par 10.1.1.2/32). Ye OSPF mein VTEP ka source address banega.Give each leaf a loopback0 (10.1.1.1/32 on Leaf-1, 10.1.1.2/32 on Leaf-2). This will become the VTEP source address in OSPF.
configure terminal interface loopback0 ip address 10.1.1.1/32 ip router ospf UNDERLAY area 0.0.0.0 end
Step 3
Spine (10.2.2.2) کی طرف BGP EVPN peering configure کریں۔ l2vpn evpn address-family MAC/IP routes carry کرتی ہے۔Spine (10.2.2.2) ki taraf BGP EVPN peering configure karein. l2vpn evpn address-family MAC/IP routes carry karti hai.Configure BGP EVPN peering toward the spine (10.2.2.2). The l2vpn evpn address family is what carries MAC/IP routes.
configure terminal router bgp 65001 neighbor 10.2.2.2 remote-as 65001 update-source loopback0 address-family l2vpn evpn neighbor 10.2.2.2 activate send-community extended exit exit end
Step 4
VLAN 10 کو VNI 10010 سے map کریں (دونوں leaves پر)۔ یہ Layer 2 VLAN کو VXLAN segment سے جوڑتا ہے۔VLAN 10 ko VNI 10010 se map karein (dono leaves par). Ye Layer 2 VLAN ko VXLAN segment se jorta hai.Map VLAN 10 to VNI 10010 (on both leaves). This links the Layer 2 VLAN to the VXLAN segment.
configure terminal vlan 10 vn-segment 10010 exit end
Step 5
NVE interface بنائیں — یہ tunnel کا endpoint ہے۔ اسے loopback0 کی طرف point کریں اور VNI کو multicast group کے ساتھ جوڑیں۔NVE interface banayein — ye tunnel ka endpoint hai. Isay loopback0 ki taraf point karein aur VNI ko multicast group ke saath jorein.Create the NVE interface — the tunnel endpoint. Point it at loopback0 and attach the VNI with its multicast group.
configure terminal interface nve1 no shutdown source-interface loopback0 member vni 10010 mcast-group 239.1.1.1 end show nve vni
Step 6
VLAN 10 کے لیے SVI gateway لگائیں تاکہ اس segment کے hosts کو default gateway مل سکے۔VLAN 10 ke liye SVI gateway lagayein taake is segment ke hosts ko default gateway mil sake.Add an SVI gateway for VLAN 10 so hosts in the segment have a default gateway.
configure terminal interface vlan 10 ip address 192.168.10.1/24 no shutdown end
Step 7
تصدیق کریں: NVE peers نظر آنے چاہئیں اور BGP EVPN session established ہونا چاہیے۔Tasdeeq karein: NVE peers nazar aane chahiyein aur BGP EVPN session established hona chahiye.Verify: NVE peers should appear and the BGP EVPN session should be established.
show nve peers show bgp l2vpn evpn summary
تصدیقVerifyVerify
show nve peers میں دور کا leaf نظر آنا چاہیے، اور show bgp l2vpn evpn summary میں neighbor established ہونا چاہیے۔show nve peers mein door ka leaf nazar aana chahiye, aur show bgp l2vpn evpn summary mein neighbor established hona chahiye.show nve peers must list the remote leaf, and show bgp l2vpn evpn summary must show the neighbor as established.
show nve peers show bgp l2vpn evpn summary
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ NVE peers نہیں بن رہے۔NVE peers nahi ban rahe.NVE peers are not forming.
✅ Underlay reachability چیک کریں (دور کے loopback کو ping کریں)۔ Multicast group بھی دونوں leaves پر ایک جیسا ہونا چاہیے۔Underlay reachability check karein (door ke loopback ko ping karein). Multicast group bhi dono leaves par ek jaisa hona chahiye.Check underlay reachability (ping the remote loopback). The multicast group must also be identical on both leaves.
⚠️ EVPN routes نہیں آ رہے۔EVPN routes nahi aa rahe.EVPN routes are not arriving.
✅ کیا neighbor address-family l2vpn evpn کے اندر activate ہے؟ تصدیق کریں کہ send-community extended configure ہے۔Kya neighbor address-family l2vpn evpn ke andar activate hai? Tasdeeq karein ke send-community extended configure hai.Is the neighbor activated inside address-family l2vpn evpn? Check that send-community extended is configured.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ VTEP کیا ہے؟VTEP kya hai?What is a VTEP?
VTEP (VXLAN Tunnel Endpoint) وہ جگہ ہے جہاں VXLAN traffic encapsulate اور decapsulate ہوتا ہے۔ ہر leaf ایک VTEP ہے۔VTEP (VXLAN Tunnel Endpoint) woh jagah hai jahan VXLAN traffic encapsulate aur decapsulate hota hai. Har leaf ek VTEP hai.VTEP (VXLAN Tunnel Endpoint) is where VXLAN traffic is encapsulated and decapsulated. Every leaf is a VTEP.
❓ VNI کیا ہے؟VNI kya hai?What is a VNI?
VNI (VXLAN Network Identifier) 24-bit کا ID ہے جو VXLAN segment کو نشان زد کرتا ہے — VLAN ID جیسا، لیکن 16 ملین segments تک support کرتا ہے۔VNI (VXLAN Network Identifier) 24-bit ka ID hai jo VXLAN segment ko nishan zad karta hai — VLAN ID jaisa, lekin 16 million segments tak support karta hai.VNI (VXLAN Network Identifier) is a 24-bit ID that marks a VXLAN segment — like a VLAN ID, but supporting up to 16 million segments.