اس لیب میں آپ سیکھیں گے کہ راؤٹر اور سوئچ پر پہلی دفعہ کیا کنفیگر کرتے ہیں۔ ہوسٹ نیم، پاس ورڈز، بینر اور بنیادی سیکیورٹی — یہ ہر ڈیوائس کا بنیادی سیٹ اپ ہے۔
Is lab mein aap seekhenge ke router aur switch par pehli dafa kya configure karte hain. Hostname, passwords, banner aur basic security — ye har device ka bunyadi setup hai.
In this lab, you'll learn what to configure first on a router and switch. Hostname, passwords, banner, and basic security — this is the basic setup for every device.
نیا راؤٹر یا سوئچ خریدنا بالکل نئے موبائل جیسا ہے۔ پہلے آپ اسے اپنا نام دیتے ہیں، پاس ورڈ لگاتے ہیں، اور اسکرین لاک آن کرتے ہیں۔ راؤٹر میں بھی پہلے ہوسٹ نیم سیٹ کرتے ہیں، پاس ورڈز لگاتے ہیں، اور بینر لگاتے ہیں تاکہ کوئی غلط بندہ اندر آئے تو وارننگ پڑھ لے۔ یہ بنیادی سیٹ اپ ہر ڈیوائس پر پہلا قدم ہوتا ہے۔
Naya router ya switch khareedna bilkul naye mobile jaisa hai. Pehle aap usay apna naam dete hain, password lagate hain, aur screen lock on karte hain. Router mein bhi pehle hostname set karte hain, passwords lagate hain, aur banner lagate hain taake koi ghalat banda andar aaye to warning parh le. Ye basic setup har device par pehla qadam hota hai.
Buying a new router or switch is just like buying a new phone. First you give it your name, set a password, and turn on the screen lock. On a router you also start by setting the hostname, adding passwords, and placing a banner so anyone unauthorized reads the warning. This basic setup is the first step on every device.

R1 راؤٹر کا G0/0 انٹرفیس PC1 سے اسٹریٹ کیبل سے کنیکٹڈ ہے۔ سوئچ SW1 ابھی صرف بنیادی سیٹ اپ کے لیے استعمال ہوگا۔ ڈیوائسز: 1x راؤٹر 2911 (R1)، 1x سوئچ 2960 (SW1)، 1x پی سی۔ PC1 پر IP 192.168.1.10، ماسک 255.255.255.0، گیٹ وے 192.168.1.1 سیٹ کرو۔ R1 کے G0/0 کو PC سے کنیکٹ کرو۔
R1 router ka G0/0 interface PC1 se straight cable se connected hai. Switch SW1 abhi sirf basic setup ke liye istemal hoga. Devices: 1x Router 2911 (R1), 1x Switch 2960 (SW1), 1x PC PC1 par IP 192.168.1.10, mask 255.255.255.0, gateway 192.168.1.1 set karo. R1 ke G0/0 ko PC se connect karo.
Router R1's G0/0 interface is connected to PC1 with a straight-through cable. Switch SW1 will only be used for basic setup for now. Devices: 1x Router 2911 (R1), 1x Switch 2960 (SW1), 1x PC. Set IP 192.168.1.10, mask 255.255.255.0, gateway 192.168.1.1 on PC1. Connect R1's G0/0 to the PC.
راؤٹر پر (R1)۔ پہلے پرولیجڈ موڈ میں جائیں، پھر کنفیگریشن موڈ۔
Router par (R1). Pehle privileged mode mein jayein, phir configuration mode.
On the router (R1). First enter privileged mode, then configuration mode.
enableconfigure terminalہوسٹ نیم ڈیوائس کا نام ہے — پرامپٹ میں نظر آتا ہے
Hostname device ka naam hai — prompt mein nazar aata hai
The hostname is the device's name — it shows in the prompt.
hostname R1پاس ورڈز (R1)۔ اب پاس ورڈز لگاتے ہیں۔ enable secret پرولیجڈ موڈ کا پاس ورڈ ہے
Passwords (R1). Ab passwords lagate hain. enable secret privileged mode ka password hai
Passwords (R1). Now we set passwords. The enable secret is the privileged mode password.
enable secret cisco123کنسول وہ ہے جب آپ کیبل سے سیدھا کنیکٹ ہوں، vty وہ ہے جب نیٹ ورک سے (telnet/SSH) کنیکٹ ہوں
Console woh hai jab aap cable se seedha connect hon, vty woh hai jab network se (telnet/SSH) connect hon
Console is when you connect directly with a cable; VTY is when you connect over the network (telnet/SSH).
line console 0password con123loginexitline vty 0 4password vty123loginexitپاس ورڈز انکرپٹ کرو اور بینر لگاؤ
Passwords encrypt karo aur banner lagao
Encrypt the passwords and set the banner.
service password-encryptionbanner motd #Authorized Access Only#ٹیسٹنگ: PC سے راؤٹر کو پنگ کرو: ping 192.168.1.1۔ جواب آنا چاہیے۔
Testing: PC se router ko ping karo: ping 192.168.1.1. Jawab aana chahiye.
Testing: ping the router from the PC: ping 192.168.1.1. You should get a reply.
پھر کنسول سے لاگ آؤٹ کر کے دوبارہ لاگ ان کرو — پاس ورڈ مانگنا چاہیے۔ enable لکھو تو enable secret کا پاس ورڈ مانگنا چاہیے۔
Phir console se logout kar ke dobara login karo — password maangna chahiye. enable likho to enable secret ka password maangna chahiye.
Then log out of the console and log in again — it should ask for a password. Type enable and it should ask for the enable secret password.
show running-config سے پوری کنفیگریشن دیکھو۔ show version سے ہوسٹ نیم اور اپ ٹائم کنفرم کرو۔
show running-config se poori configuration dekho. show version se hostname aur uptime confirm karo.
Check the full configuration with show running-config. Confirm the hostname and uptime with show version.
show running-configshow version