Cisco SD-WAN Templates & Policies
SD-WAN — Cisco Catalyst SD-WAN + Versa SD-WAN EVE-NG — vendor VMs
مقصدObjectiveObjective
اس لیب میں آپ vManage پر feature templates (system, VPN 0, VPN 1) بنائیں گے، انہیں ایک device template میں جوڑیں گے، اور برانچ vEdge سے attach کریں گے۔Is lab mein aap vManage par feature templates (system, VPN 0, VPN 1) banayenge, unhen aik device template mein jorenge, aur branch vEdge se attach karenge.In this lab you will build feature templates (system, VPN 0, VPN 1), bundle them into a device template on vManage, and attach it to a branch vEdge.
آسان مثالSimple AnalogySimple Analogy
پزا فرنچائز کی طرح: recipe book (feature templates) ہر ڈش کی ترکیب بتاتی ہے، اور مکمل مینیو (device template) ایک برانچ کے لیے recipes کا مجموعہ ہے۔ نئی برانچ پر مینیو لگانا (attach) کا مطلب ہے کہ وہ بالکل صحیح recipes کے ساتھ کھلے گی۔Pizza franchise ki tarah: recipe book (feature templates) har dish ki tarkeeb batati hai, aur mukammal menu (device template) aik branch ke liye recipes ka majmooa hai. Nayi branch par menu lagana (attach) ka matlab hai ke wo bilkul sahi recipes ke saath khulegi.Like a pizza franchise: the recipe book (feature templates) describes each dish, and the complete menu (device template) bundles recipes for one branch. Hanging the menu on a new branch (attach) means it opens with exactly the right recipes.
سیٹ اپLab SetupLab Setup
vManage اور ایک برانچ vEdge up اور reachable ہیں۔ vEdge کے دو uplinks ہیں: ge0/0 MPLS (VPN 0) اور ge0/1 Internet (VPN 0)؛ ge0/2 LAN ہے (VPN 1, 192.168.10.1/24)۔vManage aur aik branch vEdge up aur reachable hain. vEdge ke do uplinks hain: ge0/0 MPLS (VPN 0) aur ge0/1 Internet (VPN 0); ge0/2 LAN hai (VPN 1, 192.168.10.1/24).vManage and one branch vEdge are up and reachable. The vEdge has two uplinks: ge0/0 to MPLS (VPN 0) and ge0/1 to Internet (VPN 0); ge0/2 is the LAN (VPN 1, 192.168.10.1/24).
اقداماتStepsSteps
Step 1
vManage پر feature templates بنائیں: System template (hostname، site-id device variables کی صورت میں)، VPN 0 transport template دو tunnel interfaces کے ساتھ (color mpls اور color biz-internet)، اور VPN 1 service template LAN interface کے ساتھ۔vManage par feature templates banayen: System template (hostname, site-id device variables ki soorat mein), VPN 0 transport template do tunnel interfaces ke saath (color mpls aur color biz-internet), aur VPN 1 service template LAN interface ke saath.Create the feature templates on vManage: a System template (hostname, site-id as device variables), a VPN 0 transport template with two tunnel interfaces (color mpls and color biz-internet), and a VPN 1 service template with the LAN interface.
🖱️ Feature templates بنانے کا راستہFeature templates banane ka raastaPath to create feature templates
Step 2
vEdge ماڈل کے لیے device template بنائیں اور feature templates کو اس میں جوڑ دیں: System، VPN 0 (transport) اور VPN 1 (service)۔ جہاں values ہر ڈیوائس پر مختلف ہوں، انہیں device variables بنائیں۔vEdge model ke liye device template banayen aur feature templates ko ismein jor den: System, VPN 0 (transport) aur VPN 1 (service). Jahan values har device par mukhtalif hon, unhen device variables banayen.Create a device template for the vEdge model and bundle the feature templates: System, VPN 0 (transport) and VPN 1 (service). Where values differ per device, mark them as device variables.
🖱️ ڈیوائس template بنانے کا راستہDevice template banane ka raastaPath to create a device template
Step 3
Device template کو برانچ vEdge سے attach کریں۔ vManage device-specific values (hostname، site-id، IPs) پوچھے گا — پُر کر کے configuration push کر دیں۔Device template ko branch vEdge se attach karen. vManage device-specific values (hostname, site-id, IPs) poochhega — pur kar ke configuration push kar den.Attach the device template to the branch vEdge. vManage will ask for the device-specific values (hostname, site-id, IPs) — fill them in and push the configuration.
🖱️ Devices attach کرنے کا راستہDevices attach karne ka raastaPath to attach devices to the template
Step 4
vEdge پر تصدیق کریں: push ہوئی config میں VPN 0 دونوں tunnel interfaces (mpls اور biz-internet colors) اور VPN 1 LAN کے ساتھ نظر آنا چاہیے۔ اپنے template سے موازنہ کریں۔vEdge par tasdeeq karen: push hui config mein VPN 0 donon tunnel interfaces (mpls aur biz-internet colors) aur VPN 1 LAN ke saath nazar aana chahiye. Apne template se mawazna karen.Verify on the vEdge: the pushed config must show VPN 0 with both tunnel interfaces (mpls and biz-internet colors) and VPN 1 with the LAN. Compare with your template.
show sdwan running-config show running-config
Step 5
Push کے بعد دونوں tunnel interfaces show omp tlocs میں TLOCs کی صورت میں نظر آنے چاہئیں — ایک color mpls، دوسرا color biz-internet۔ Template سے overlay تک کا یہی لمحہ ہے۔Push ke baad donon tunnel interfaces show omp tlocs mein TLOCs ki soorat mein nazar aane chahiyen — aik color mpls, doosra color biz-internet. Template se overlay tak ka yehi lamha hai.After the push, the two tunnel interfaces should appear as TLOCs in show omp tlocs — one with color mpls, one with color biz-internet. This is the template-to-overlay moment.
show omp tlocs
تصدیقVerifyVerify
vEdge پر show sdwan running-config میں template کے VPN 0 tunnel interfaces اور VPN 1 LAN ہوں، اور show omp tlocs میں صحیح colors کے دو TLOCs ہوں۔vEdge par show sdwan running-config mein template ke VPN 0 tunnel interfaces aur VPN 1 LAN hon, aur show omp tlocs mein sahi colors ke do TLOCs hon.On the vEdge, show sdwan running-config must contain the VPN 0 tunnel interfaces and VPN 1 LAN from your template, and show omp tlocs must list two TLOCs with the right colors.
show sdwan running-config show omp tlocs
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ Template push variable error کے ساتھ fail ہو رہی ہے۔Template push variable error ke saath fail ho rahi hai.The template push fails with a variable error.
✅ Template میں استعمال ہر device variable کو attach کے وقت value چاہیے۔ Attach Devices دوبارہ کھول کر missing value پُر کریں۔Template mein istemal har device variable ko attach ke waqt value chahiye. Attach Devices dobara khol kar missing value pur karen.Every device variable used in the template needs a value at attach time. Reopen Attach Devices and fill in the missing variable.
⚠️ Attach کے بعد vEdge config mismatch دکھا رہا ہے۔Attach ke baad vEdge config mismatch dikha raha hai.The vEdge shows a config mismatch after attach.
✅ Local CLI تبدیلیاں template سے ٹکراتی ہیں۔ یا local change ہٹا دیں یا template push دوبارہ accept کریں — template ہمیشہ جیتتا ہے۔Local CLI tabdeeliyan template se takrati hain. Ya local change hata den ya template push dobara accept karen — template hamesha jeet-ta hai.Local CLI changes clash with the template. Either remove the local change or accept the template push again — the template always wins.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ Feature template اور device template میں کیا فرق ہے؟Feature template aur device template mein kya farq hai?What is the difference between a feature template and a device template?
Feature template ایک function configure کرتا ہے (مثال VPN 0 interface یا system settings)۔ Device template feature templates کو جوڑ کر ایک ڈیوائس ماڈل کی مکمل configuration بناتا ہے۔Feature template aik function configure karta hai (misal VPN 0 interface ya system settings). Device template feature templates ko jor kar aik device model ki mukammal configuration banata hai.A feature template configures one function (e.g. VPN 0 interface or system settings). A device template bundles feature templates into one complete configuration for a device model.
❓ Device template کو ڈیوائس سے attach کرنے پر کیا ہوتا ہے؟Device template ko device se attach karne par kya hota hai?What happens when you attach a device template to a device?
vManage مکمل configuration ڈیوائس پر push کرتا ہے اور status رپورٹ کرتا ہے۔ ڈیوائس پر show sdwan running-config سے پتہ چلتا ہے کہ کیا آیا۔vManage mukammal configuration device par push karta hai aur status report karta hai. Device par show sdwan running-config se pata chalta hai ke kya aaya.vManage pushes the full configuration to the device and reports the status. On the device, show sdwan running-config shows what arrived.