# Cisco Router Basic Configuration – Step by Step Guide

Listen to this Post

A well-configured network is the backbone of IT infrastructure. Here’s a structured approach to setting up a Cisco router efficiently:

✅ 1. Basic Device Setup

🔹 `enable` – Enter privileged EXEC mode

🔹 `configure terminal` – Enter global config mode

🔹 `hostname ` – Set device hostname

🔹 `copy running-config startup-config` – Save current config

🔹 `erase startup-config` – Erase saved config

✅ 2. Interface Configuration

🔹 `interface ` – Select interface

🔹 `ip address ` – Assign IP

🔹 `no shutdown` – Enable interface

🔹 `show ip interface brief` – View interface status

✅ 3. VLAN Configuration

🔹 `vlan ` – Create VLAN

🔹 `switchport mode access` – Assign VLAN to port

🔹 `show vlan brief` – Verify VLANs

✅ 4. Trunk Configuration

🔹 `switchport mode trunk` – Enable trunking

🔹 `switchport trunk allowed vlan ` – Define VLANs

✅ 5. Routing

🔹 `ip route ` – Static route

🔹 `router ospf ` – Enable OSPF

🔹 `show ip route` – View routing table

✅ 6. Access Control Lists (ACLs)

🔹 `access-list <1-99> permit` – Standard ACL
🔹 `access-list <100-199> permit tcp eq ` – Extended ACL

🔹 `show access-lists` – View ACLs

✅ 7. Switch Port Security

🔹 `switchport port-security` – Enable security

🔹 `switchport port-security maximum ` – Limit MAC addresses
🔹 `switchport port-security violation {shutdown | restrict | protect}` – Define violation mode
🔹 `show port-security interface ` – Verify security

✅ 8. Troubleshooting Commands

🔹 `ping ` – Check connectivity

🔹 `traceroute ` – Trace network path

🔹 `show cdp neighbors` – View connected Cisco devices

🔹 `show ip arp` – View ARP table

🔹 `show version` – Check hardware & IOS

You Should Know:

Practical Cisco Router Configuration Example

1. Setting Hostname & Saving Config:

Router> enable 
Router# configure terminal 
Router(config)# hostname BR1 
BR1(config)# exit 
BR1# copy running-config startup-config 

2. Configuring an Interface (GigabitEthernet0/0):

BR1(config)# interface GigabitEthernet0/0 
BR1(config-if)# ip address 192.168.1.1 255.255.255.0 
BR1(config-if)# no shutdown 
BR1(config-if)# end 
BR1# show ip interface brief 

3. Creating VLANs & Assigning Ports:

BR1(config)# vlan 10 
BR1(config-vlan)# name Sales 
BR1(config)# interface FastEthernet0/1 
BR1(config-if)# switchport mode access 
BR1(config-if)# switchport access vlan 10 

4. Static Routing Example:

BR1(config)# ip route 10.0.0.0 255.0.0.0 192.168.1.2 
BR1# show ip route 

5. Basic ACL for Security:

BR1(config)# access-list 100 permit tcp 192.168.1.0 0.0.0.255 any eq 80 
BR1(config)# access-list 100 deny ip any any 
BR1(config)# interface GigabitEthernet0/0 
BR1(config-if)# ip access-group 100 in 

6. Port Security Implementation:

BR1(config)# interface FastEthernet0/2 
BR1(config-if)# switchport port-security 
BR1(config-if)# switchport port-security maximum 2 
BR1(config-if)# switchport port-security violation shutdown 

7. OSPF Routing Configuration:

BR1(config)# router ospf 1 
BR1(config-router)# network 192.168.1.0 0.0.0.255 area 0 
BR1(config-router)# end 
BR1# show ip ospf neighbor 

What Undercode Say:

Mastering Cisco router configurations is essential for network administrators. The provided commands cover fundamental setups, security, and troubleshooting. Always verify configurations using `show` commands before finalizing. For advanced setups, explore dynamic routing protocols like OSPF and BGP.

Expected Output:

A fully configured Cisco router with VLANs, ACLs, and port security, ensuring a secure and efficient network.

Relevant URLs:

References:

Reported By: Murad Hossain – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image