Capstone: LTM Build
F5 BIG-IP LTM F5 BIG-IP VE (GUI + TMSH)
مقصدObjectiveObjective
Capstone: scratch سے ایک مکمل LTM load-balanced deployment بنائیں — nodes, pool, monitors, persistence, virtual server, اور HA checks۔Capstone: scratch se ek mukammal LTM load-balanced deployment banayen — nodes, pool, monitors, persistence, virtual server, aur HA checks.Capstone: build a complete LTM load-balanced deployment from scratch — nodes, pool, monitors, persistence, virtual server, and HA checks.
آسان مثالSimple AnalogySimple Analogy
Capstone آخری cooking challenge ہے — ہر چیز جو آپ نے سیکھی (nodes, pools, virtual servers, monitors, persistence) ایک ہی dish میں ڈالتی ہے۔Capstone aakhri cooking challenge hai — har cheez jo aap ne seekhi (nodes, pools, virtual servers, monitors, persistence) ek hi dish mein dalti hai.The capstone is the final cooking challenge — every ingredient you learned (nodes, pools, virtual servers, monitors, persistence) goes into one dish.
سیٹ اپLab SetupLab Setup
BIG-IP VE اندرونی نیٹ ورک (10.10.10.0/24، پورٹ 80 پر دو ویب سرورز) اور بیرونی نیٹ ورک (172.16.1.0/24) کے ساتھ۔BIG-IP VE internal network (10.10.10.0/24, port 80 par do web servers) aur external network (172.16.1.0/24) ke sath.BIG-IP VE with internal network (10.10.10.0/24, two web servers on port 80) and external network (172.16.1.0/24).
اقداماتStepsSteps
Step 1
Step 1 — بنیاد: VLANs، Self IPs، اور ایک ڈیفالٹ روٹ بنائیں۔Step 1 — bunyad: VLANs, Self IPs, aur ek default route banayen.Step 1 — foundation: create VLANs, Self IPs, and a default route.
tmsh create net vlan internal interfaces add { 1.1 }
tmsh create net self 10.10.10.1/24 address 10.10.10.1/24 vlan internal
tmsh create net vlan external interfaces add { 1.2 }
tmsh create net self 172.16.1.1/24 address 172.16.1.1/24 vlan external🖱️ Network > VLANs, Network > Self IPs, Network > RoutesNetwork > VLANs, Network > Self IPs, Network > RoutesNetwork > VLANs, Network > Self IPs, Network > Routes
Step 2
Step 2 — اپنے دونوں ویب سرورز کے لیے nodes بنائیں۔Step 2 — apne dono web servers ke liye nodes banayen.Step 2 — create the nodes for your two web servers.
tmsh create ltm node cap-web1 address 10.10.10.10 tmsh create ltm node cap-web2 address 10.10.10.11
🖱️ Local Traffic > Nodes > CreateLocal Traffic > Nodes > CreateLocal Traffic > Nodes > Create
Step 3
Step 3 — ایک HTTP monitor اور دونوں members کے ساتھ ایک pool بنائیں۔Step 3 — ek HTTP monitor aur dono members ke sath ek pool banayen.Step 3 — create an HTTP monitor and a pool with both members.
tmsh create ltm monitor http cap-monitor send "GET / HTTP/1.1\\r\\nHost: cap.local\\r\\n\\r\\n" recv "200 OK"
tmsh create ltm pool cap-pool monitor cap-monitor members add { cap-web1:80 cap-web2:80 }🖱️ Local Traffic > Monitors > Create، پھر Local Traffic > Pools > CreateLocal Traffic > Monitors > Create, phir Local Traffic > Pools > CreateLocal Traffic > Monitors > Create, then Local Traffic > Pools > Create
Step 4
Step 4 — cookie persistence شامل کریں تاکہ ہر کلائنٹ ایک ہی سرور پر رہے۔Step 4 — cookie persistence shamil karein taake har client ek hi server par rahe.Step 4 — add cookie persistence so each client sticks to one server.
tmsh create ltm persistence cookie cap-cookie
tmsh modify ltm pool cap-pool persist replace-all-with { cap-cookie }🖱️ Local Traffic > Profiles > Persistence > Create، ورچوئل سرور سے جوڑ دیںLocal Traffic > Profiles > Persistence > Create, virtual server se jor deinLocal Traffic > Profiles > Persistence > Create, attach to the virtual server
Step 5
Step 5 — 172.16.1.200:80 پر ورچوئل سرور بنائیں جو cap-pool سے جڑا ہو، TCP اور HTTP پروفائلز کے ساتھ۔Step 5 — 172.16.1.200:80 par virtual server banayen jo cap-pool se jura ho, TCP aur HTTP profiles ke sath.Step 5 — create the virtual server 172.16.1.200:80 attached to cap-pool with TCP and HTTP profiles.
tmsh create ltm virtual cap-vip destination 172.16.1.200:80 pool cap-pool profiles add { tcp http }🖱️ Local Traffic > Virtual Servers > CreateLocal Traffic > Virtual Servers > CreateLocal Traffic > Virtual Servers > Create
Step 6
Step 6 — end-to-end test: VIP کو بار بار curl کریں، members سبز ہوں اس کی تصدیق کریں، اور persistence کے کام کرنے کی بھی تصدیق کریں۔Step 6 — end-to-end test: VIP ko baar baar curl karein, members sabz hon is ki tasdeeq karein, aur persistence ke kaam karne ki bhi tasdeeq karein.Step 6 — end-to-end test: curl the VIP repeatedly, check that members are green, and confirm persistence sticks.
tmsh show ltm pool cap-pool members tmsh show ltm virtual cap-vip
Step 7
Step 7 — HA اور sync check: sync status کی تصدیق کریں اور دیکھ لیں کہ failover کا منصوبہ موجود ہے۔Step 7 — HA aur sync check: sync status ki tasdeeq karein aur dekh len ke failover ka plan maujood hai.Step 7 — HA and sync check: confirm sync status and that a failover plan exists.
curl http://172.16.1.200
تصدیقVerifyVerify
تصدیق: VIP content دیتا ہے، دونوں members سبز ہیں، persistence کام کرتی ہے، اور checklist مکمل ہے۔Tasdeeq: VIP content deta hai, dono members sabz hain, persistence kaam karti hai, aur checklist mukammal hai.Verify: the VIP serves content, both members are green, persistence sticks, and the checklist is complete.
tmsh show ltm virtual cap-vip tmsh show ltm pool cap-pool members tmsh show cm sync-status
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ Capstone میں checklist کا ایک step fail ہو رہا ہےCapstone mein checklist ka ek step fail ho raha haiOne step of the checklist fails in the capstone
✅ VIP سے پیچھے کی طرف جائیں: pool → members → monitor → Self IP/route۔ Failure ہمیشہ symptom سے نیچے والی layer پر ہوتا ہے۔VIP se peechay ki taraf jayen: pool → members → monitor → Self IP/route. Failure hamesha symptom se neechay wali layer par hota hai.Work backwards from the VIP: pool → members → monitor → Self IP/route. The failure is always on the layer below the symptom.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ ایک مکمل LTM build کی تصدیق کیسے کرتے ہیں؟Ek mukammal LTM build ki tasdeeq kaise karte hain?How do you validate a finished LTM build?
تصدیق کریں کہ VIP جواب دے رہا ہے، members صحت مند ہیں اور ٹریفک لے رہے ہیں، monitors سبز ہیں، persistence کام کرتی ہے، اور HA sync سبز ہے۔Tasdeeq karein ke VIP jawab de raha hai, members sehatmand hain aur traffic le rahe hain, monitors sabz hain, persistence kaam karti hai, aur HA sync sabz hai.Verify the VIP answers, members are healthy and receiving traffic, monitors are green, persistence works, and HA sync is green.