Virtual Servers & Profiles
F5 BIG-IP LTM F5 BIG-IP VE (GUI + TMSH)
مقصدObjectiveObjective
اس سبق میں آپ ایک ورچوئل سرور (VIP) بنائیں گے، اسے pool سے جوڑیں گے، اور TCP اور HTTP پروفائلز لگائیں گے۔Is lesson mein aap ek virtual server (VIP) banayenge, ise pool se jorenge, aur TCP aur HTTP profiles lagayenge.In this lesson you will create a virtual server (VIP), attach it to a pool, and apply TCP and HTTP profiles.
آسان مثالSimple AnalogySimple Analogy
ورچوئل سرور ایسا ہے جیسے دکان کا بورڈ — ایک عوامی چہرہ جس کے ساتھ پتا اور قواعد ہیں، جبکہ پیچھے کئی دکانیں (pool members) کام کرتی ہیں۔Virtual server aisa hai jaise dukaan ka board — ek awami chehra jis ke sath pata aur qawaid hain, jabke peechay kai dukanen (pool members) kaam karti hain.The virtual server is like the shop's signboard — one public face with an address and rules, while many shops (pool members) work behind it.
سیٹ اپLab SetupLab Setup
BIG-IP VE پچھلے سبق کے web-pool کے ساتھ (10.10.10.10، 10.10.10.11 پورٹ 80 پر)۔ بیرونی نیٹ ورک: 172.16.1.0/24۔BIG-IP VE pichlay lesson ke web-pool ke sath (10.10.10.10, 10.10.10.11 port 80 par). External network: 172.16.1.0/24.BIG-IP VE with the web-pool from the previous lesson (10.10.10.10, 10.10.10.11 on port 80). External network: 172.16.1.0/24.
اقداماتStepsSteps
Step 1
172.16.1.100:80 پر ایک Standard ورچوئل سرور بنائیں اور اسے web-pool سے جوڑ دیں۔ VIP وہی ایک عوامی ایڈریس ہے جو کلائنٹس استعمال کرتے ہیں۔172.16.1.100:80 par ek Standard virtual server banayen aur ise web-pool se jor dein. VIP wohi ek awami address hai jo clients istemal karte hain.Create a Standard virtual server at 172.16.1.100:80 and attach it to web-pool. The VIP is the single public address clients use.
tmsh create ltm virtual web-vip destination 172.16.1.100:80 pool web-pool profiles add { tcp http }🖱️ Local Traffic > Virtual Servers > CreateLocal Traffic > Virtual Servers > CreateLocal Traffic > Virtual Servers > Create
Step 2
تصدیق کریں کہ ورچوئل سرور بن گیا — destination، پورٹ اور attached pool چیک کریں۔Tasdeeq karein ke virtual server ban gaya — destination, port aur attached pool check karein.Verify the virtual server was created — check the destination, port, and attached pool.
tmsh list ltm virtual web-vip
Step 3
پروفائلز برتاؤ کو ٹھیک کرتی ہیں: TCP پروفائل کلائنٹ اور سرور کنکشنز کو بہتر بناتا ہے، اور HTTP پروفائل HTTP کے لحاظ سے خاص ہینڈلنگ دیتا ہے۔Profiles bartao ko theek karti hain: TCP profile client aur server connections ko behtar banata hai, aur HTTP profile HTTP ke lehaz se khaas handling deta hai.Profiles fine-tune behavior: the TCP profile optimizes the client and server connections, and the HTTP profile adds HTTP-aware handling.
Step 4
ایک custom HTTP پروفائل بنائیں اور اسے ورچوئل سرور سے جوڑ دیں۔Ek custom HTTP profile banayen aur ise virtual server se jor dein.Create a custom HTTP profile and attach it to the virtual server.
tmsh create ltm profile http my-http default { }
tmsh modify ltm virtual web-vip profiles replace-all-with { tcp http my-http }🖱️ Local Traffic > Profiles > Services > HTTP > CreateLocal Traffic > Profiles > Services > HTTP > CreateLocal Traffic > Profiles > Services > HTTP > Create
Step 5
ورچوئل سرور کے اسٹیٹسٹکس دیکھیں — ٹیسٹ کرنے پر کنکشن کی تعداد بڑھتی ہوئی نظر آنی چاہیے۔Virtual server ke statistics dekhen — test karne par connection ki tadad barhti hui nazar aani chahiye.Show the virtual server statistics — you should see the connection count rise when you test.
tmsh show ltm virtual web-vip
Step 6
ٹیسٹ: کلائنٹ مشین سے VIP پر درخواست بھیجیں۔ ٹریفک آپ کے دونوں سرورز کے درمیان بٹ جائے گی۔Test: client machine se VIP par request bhejen. Traffic aap ke dono servers ke darmiyan bat jayegi.Test: request the VIP from a client machine. The traffic is load-balanced between your two servers.
curl http://172.16.1.100
تصدیقVerifyVerify
تصدیق: curl http://172.16.1.100 آپ کے سرورز میں سے ایک کا ویب پیج واپس دیتا ہے۔Tasdeeq: curl http://172.16.1.100 aap ke servers mein se ek ka web page wapas deta hai.Verify: curl http://172.16.1.100 returns a web page from one of your servers.
tmsh show ltm virtual web-vip
خرابی دور کرناTroubleshootingTroubleshooting
⚠️ VIP جواب نہیں دے رہاVIP jawab nahi de rahaVIP not responding
✅ چیک کریں کہ ورچوئل سرور enabled ہے، destination IP/port درست ہے، اور کلائنٹ سے روٹ صحیح ہے۔Check karein ke virtual server enabled hai, destination IP/port durust hai, aur client se route sahi hai.Check that the virtual server is enabled, the destination IP/port is correct, and the route from the client is correct.
⚠️ ٹریفک VIP تک پہنچ رہی ہے لیکن سرورز تک نہیںTraffic VIP tak pohnch rahi hai lekin servers tak nahiTraffic reaching the VIP but not the servers
✅ Attached pool چیک کریں — members down ہو سکتے ہیں۔ Pool کی حیثیت اور attached health monitor دیکھیں۔Attached pool check karein — members down ho sakte hain. Pool ki haisiyat aur attached health monitor dekhen.Check the attached pool — members may be down. Review pool status and the attached health monitor.
انٹرویو سوالاتInterview Q&AInterview Q&A
❓ ورچوئل سرورز کی اقسام کیا ہیں؟Virtual servers ki aqsaam kya hain?What are the types of virtual servers?
Standard عام TCP/UDP سروسز کے لیے استعمال ہوتا ہے؛ Performance (Layer 4) اس وقت جب پروٹوکول انسپیکشن کے بغیر تیز رفتاری چاہیے؛ Forwarding روٹنگ طرز کی ٹریفک کے لیے۔Standard aam TCP/UDP services ke liye istemal hota hai; Performance (Layer 4) us waqt jab protocol inspection ke baghair tez raftari chahiye; Forwarding routing tarz ki traffic ke liye.Standard is used for general TCP/UDP services; Performance (Layer 4) is used when speed is needed without protocol inspection; Forwarding is used for routing-style traffic.
❓ ورچوئل سرور میں پروفائلز کا کیا کردار ہے؟Virtual server mein profiles ka kya kirdar hai?What is the role of profiles in a virtual server?
TCP اور HTTP پروفائلز کلائنٹ اور سرور کے برتاؤ کو ٹھیک کرتی ہیں؛ SSL پروفائل انکرپشن کا بوجھ اتارتی ہے تاکہ سرورز پر یہ بوجھ نہ پڑے۔TCP aur HTTP profiles client aur server ke bartao ko theek karti hain; SSL profile encryption ka bojh utarti hai taake servers par yeh bhar na pare.TCP and HTTP profiles fine-tune client and server behavior; the SSL profile offloads encryption so the servers do not bear that load.