Networking Router CMD
1. Initial Router Configuration (Cisco C8200-1N-4T)
To configure the Cisco C8200-1N-4T router initially, perform the following setup steps:
Step 1: Download the latest version of Putty for configuration.
Step 2: Connect the console wire to the device. Then navigate on Windows via: Windows + X →
Device Driver → Ports → COM3 (or the relevant connected port).
Step 3: Open Putty, select the serial connection line, and enter the command line interface.
Reference: For detailed guidance, you can visit the "Get started with Cisco network lessons"
website.
First-Time Login & Basic Commands
Sequence of initial IOS commands for device setup:
Step Command Description / Notes
1 enable Enter privileged EXEC mode
2 password Enter password if required
3 conf t Enter global configuration mode
(configure terminal)
4 hostname MyRouter Set the router device name to
'MyRouter'
5 enable secret 12345678910 Set an encrypted administrative
privilege password
6 line console 0 Enter console line configuration
mode
7 password 12345678910 Set the password for console
access
8 login Enable password checking on
login
9 exit Exit line configuration mode
10 write memory Save the current running
configuration to NVRAM
2. Interface State Management (Up / Down)
Guidelines for changing interface administrative status (e.g., using GigabitEthernet 0/0/1 as an
example):
Enabling an Interface (Bringing it UP)
Agar interface administratively down ha tou usko active (up) krne ke liye enable command use krein:
MyRouter# conf t
MyRouter(config)# interface GigabitEthernet 0/0/1
MyRouter(config-if)# no shutdown
MyRouter(config-if)# exit
Disabling an Interface (Administrative Down)
Aur agar working interface ko administratively down krne ke liye shutdown commands use krein:
MyRouter# conf t
MyRouter(config)# interface GigabitEthernet 0/0/1
MyRouter(config-if)# shutdown
MyRouter(config-if)# exit
3. IP Address Configuration & Verification
Verify status and assign IP addresses using the console connection and attached cable:
View current interface statuses and IPs briefly: show ip interface brief (Means jo interface up ha wo
use krenga).
Manual IP Assignment Structure:
en
show ip interface brief
conf t
interface GigabitEthernet 0/0/0
ip address [Link] [Link]
no shutdown
exit
end
write memory (or: copy running-config startup-config)
Note: Ab ethernet cable ke through command prompt (cmd) mein target IP address ko ping krke check
kr sakte hain. Ping automatically aur manually dono tareeqo se ho sakta ha.
4. Automated IP Ping Setup (DHCP) vs Manual
Method A: Automatically via DHCP Service
To dynamically serve IPs to a local LAN (excluding a specific gateway range):
conf t
ip dhcp excluded-address [Link] [Link]
ip dhcp pool LAN
network [Link] [Link]
default-router [Link] (ye wo wala IP address karna jis port par cisco
attached ha)
dns-server [Link]
exit
interface GigabitEthernet 0/0/1
ip address [Link] [Link]
no shutdown
end
Method B: Manually Configured Client IP
To manually adjust or verify endpoints IP settings on a Windows workstation:
Control Panel → Network and Sharing Center → Change adapter settings →
Ethernet → Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties →
Change IP options → OK
Cisco Router Command Line (CLI) Complete Cheat She
1. Mode Switch & Basic Setup Commands
Command Mode / Level Description
enable User EXEC Mode Privileged EXEC mode (admin access) mein enter
hone ke liye.
conf t (configure
Privileged EXEC Global Configuration mode mein jaane ke liye
terminal) (settings change karne ke liye).
hostname
Global Config Router ka naam badalne ke liye (e.g., hostname
<Name>
MyRouter).
exit Any Mode Kisi bhi current mode ya interface configuration se
ek step peeche aane ke liye.
Configuration
end Direct privileged EXEC mode (MyRouter#) mein
Modes
wapas aane ke liye.
2. Security & Password Configuration
Mode /
Command Description
Level
Mode /
Command Description
Level
enable secret Global
Main administrative (enable) mode par encrypted
<password> Config password lagane ke liye.
Global
line console 0 Console port ki settings aur password mode mein
Config enter hone ke liye.
password Line
Console access ke liye specific password set karne
<password> Config ke liye.
Line
login Login karte waqt router ko password check karne
Config ke liye active karna.
3. Interface & Manual IP Assignment
Mode /
Command Description
Level
interface Global
Kisi specific port (e.g., interface
<interface-id> Config
GigabitEthernet 0/0/0) par jaane ke liye.
ip address <IP> Interface
<Subnet> Config Port par manually IP address assign karne ke liye.
Interface
no shutdown Interface ko administratively UP (active) karne ke
Config liye.
Interface
shutdown Working interface ko administratively DOWN
Config (disable) karne ke liye.
4. Automated IP Configuration (DHCP Service)
Mode /
Command Description
Level
ip dhcp excluded- Global Wo IPs jo DHCP server baqi devices ko
address <Start> <End> Config automatically assign nahi karega (Reserve
range).
ip dhcp pool <Pool- Global
Automatic IP dene ke liye ek naya DHCP pool
Name> Config (network area) banane ke liye.
network <Network-ID> DHCP Pool
DHCP pool ke liye pure network ki range aur
<Subnet> Config subnet mask define karna.
default-router DHCP Pool
Connected port ya main gateway ka IP address
<Gateway-IP> Config assign karna.
DHCP Pool
dns-server <DNS-IP> Clients ke liye Domain Name Server (e.g.,
Config
[Link]) set karna.
5. Verification, Management & Maintenance
Command Mode / Level Description
show ip interface Privileged Tamam interfaces ka status (Up/Down) aur
brief EXEC unke IP addresses ko short summary mein
dekhna.
Privileged
ping <Target-IP> Kisi dusri device ya network interface ke sath
EXEC / CMD connectivity check karna.
Privileged
write memory Current running configuration ko permanent
EXEC NVRAM mein save karna.
copy running-config Privileged
write memory ka dosra tarika; temporary
startup-config EXEC
settings ko permanent save karna.
Command Mode / Level Description
Privileged
reload Router ko restart karne ke liye (Save karne ke
EXEC baad chalayein).
6. Advanced Diagnostics & Interface Troubleshooting
Mode /
Command Description
Level
show running- Privileged Router ki active configuration (RAM) dekhne ke liye jo
config EXEC abhi chal rahi hai.
show startup- Privileged
NVRAM mein saved permanent configuration
config EXEC dekhne ke liye.
Kisi specific port (e.g., GigabitEthernet
show interface Privileged
0/0/0) ki detail, speed, aur error packets dekhne ke
<interface-id> EXEC
liye.
Privileged Router ka hardware model, IOS version, uptime, aur
show version
EXEC register value check karne ke liye.
7. Routing & DHCP Monitoring
Mode /
Command Description
Level
Privileged Router ka Routing Table dekhne ke liye (connected aur
show ip route
EXEC learned networks ki list).
show ip dhcp Privileged
DHCP ke zariye clients ko mile hue automated IP
binding EXEC addresses aur unke MAC addresses ki list dekhna.
show ip dhcp Privileged DHCP pool ki utilization, total IPs, aur leased IPs ki
Mode /
Command Description
Level
pool EXEC statistical summary dekhna.
clear ip dhcp Privileged DHCP server se tamam automatically assigned IPs ka record
binding * EXEC clear/reset karne ke liye.
8. Diagnostic Tools (Connectivity Analysis)
Mode /
Command Description
Level
traceroute Privileged Kisi destination tak jaane wale mukammal raste
<Target-IP> EXEC (hops/routers) ko track karne ke liye.
Privileged IP addresses aur unke physical MAC addresses ka
show arp
EXEC mapping table (ARP Table) dekhne ke liye.
Privileged Remote session (Telnet/SSH) par router ke live system
terminal monitor
EXEC log messages ko screen par dekhne ke liye.