Cisco Router Basic Configuration: Complete Step-by-Step Guide

Cisco routers are widely used in enterprise networks to connect different networks, route IP traffic, and provide secure communication between devices. Before configuring advanced routing protocols, it is important to understand the basic Cisco IOS router configuration commands.

In this guide, we will learn Cisco router basic configuration step by step, including hostname configuration, enable secret, disabling DNS lookup, interface configuration, static routing, dynamic routing, RIP, EIGRP, and useful verification commands.

Note: The examples in this article are for learning and lab purposes. Always adapt interface names, IP addresses, passwords, and routing configuration to your actual network.

Cisco Router Basic Configuration

A newly initialized Cisco router has some default configuration. You can inspect the current configuration using:

Router# show running-config

Cisco’s documentation shows that interfaces may initially have no IP address and may be administratively shut down.


1. Enter Privileged EXEC Mode

First, enter privileged EXEC mode:

Router> enable
Router#

The enable command gives access to privileged router commands.


2. Enter Global Configuration Mode

Use:

Router# configure terminal
Router(config)#

You can also use the shorter form:

Router# conf t

Global configuration mode is where you configure the router’s hostname, passwords, interfaces, routing protocols, and other settings.


3. Configure the Router Hostname

A hostname makes it easier to identify the router.

Example:

Router(config)# hostname R1
R1(config)#

The prompt changes from Router to R1.

You can use meaningful names such as:

R1
CORE-R1
BRANCH-R1
HQ-ROUTER

Cisco documents the hostname command as the method for specifying the router’s name.


4. Configure an Enable Secret Password

Use:

R1(config)# enable secret Cisco@123

The enable secret command protects privileged EXEC mode with a password. Cisco’s documentation describes it as an encrypted password used to help prevent unauthorized access to the router.

For a real production network, use a strong, unique secret rather than the example above.


5. Disable DNS Lookup

When you accidentally type an incorrect command, a Cisco router may try to interpret the word as a hostname.

To disable this behavior:

R1(config)# no ip domain-lookup

This is especially useful in labs because it prevents the router from waiting while attempting DNS resolution. Cisco includes this command in its basic global-parameter configuration.


Configuring a Cisco Router Interface

One of the most important router configuration tasks is assigning an IP address to an interface.

For example, suppose we have:

Router R1
Interface: GigabitEthernet0/0
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0

Enter:

R1(config)# interface gigabitethernet 0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

Cisco’s documented basic procedure for a Gigabit Ethernet interface is to enter the interface, configure the IP address and mask, issue no shutdown, and exit interface configuration mode.

What does no shutdown do?

Cisco interfaces can be administratively shut down.

The command:

no shutdown

enables the interface.

You may see a message similar to:

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

Verify the Interface

After configuring the interface, use:

R1# show ip interface brief

Example:

Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0     192.168.1.1     YES manual up                    up
GigabitEthernet0/1     unassigned      YES unset  administratively down down

The most important part is:

Status: up
Protocol: up

This normally indicates that the interface is operational and has an active Layer 2 connection.


Save the Configuration

After completing your configuration, save it:

R1# copy running-config startup-config

You may see:

Destination filename [startup-config]?

Press Enter.

Another commonly used command is:

R1# write memory

Saving the configuration is important because the running configuration is stored in RAM, while the startup configuration is used when the router boots.


Configure Two Router Interfaces

Suppose we have the following topology:

PC1 ---- R1 ---- R2 ---- PC2

Example addressing:

R1 G0/0 = 192.168.1.1/24
R1 G0/1 = 10.0.0.1/30

R2 G0/0 = 10.0.0.2/30
R2 G0/1 = 192.168.2.1/24

R1 Configuration

R1(config)# interface gigabitethernet 0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface gigabitethernet 0/1
R1(config-if)# ip address 10.0.0.1 255.255.255.252
R1(config-if)# no shutdown
R1(config-if)# exit

R2 Configuration

R2(config)# interface gigabitethernet 0/0
R2(config-if)# ip address 10.0.0.2 255.255.255.252
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# interface gigabitethernet 0/1
R2(config-if)# ip address 192.168.2.1 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit

At this point, the routers know about their directly connected networks, but they still need routes to reach the remote LANs.


Static Routing in Cisco

A static route is manually configured by the network administrator.

Cisco defines static routes as fixed routing paths that are manually configured. If the topology changes, the administrator may need to modify the route.

The basic syntax is:

ip route destination-network subnet-mask next-hop

Example

R1 needs to reach:

192.168.2.0/24

through R2:

10.0.0.2

Configure R1:

R1(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2

R2 needs to reach:

192.168.1.0/24

through R1:

R2(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1

Cisco’s documented static-route syntax follows the ip route prefix mask next-hop format.


Verify Static Routes

Use:

R1# show ip route

A static route is identified by:

S

Example:

S    192.168.2.0/24 [1/0] via 10.0.0.2

The S means Static.

You can also test connectivity:

R1# ping 10.0.0.2

and:

R1# ping 192.168.2.1

Dynamic Routing

Instead of manually configuring every route, routers can use dynamic routing protocols to learn routes automatically.

Cisco’s documentation discusses dynamic routing using protocols such as RIP and EIGRP.

Common routing protocols include:

ProtocolTypeTypical Use
RIPDistance VectorSmall/legacy networks
EIGRPAdvanced distance vectorCisco environments
OSPFLink StateEnterprise networks
BGPPath VectorInternet/large networks

Configure RIP

Cisco IOS supports RIP configuration using commands such as:

router rip
version 2
network <network>
no auto-summary

For example:

R1(config)# router rip
R1(config-router)# version 2
R1(config-router)# network 192.168.1.0
R1(config-router)# network 10.0.0.0
R1(config-router)# no auto-summary
R1(config-router)# end

Cisco’s guide documents the RIP configuration sequence as entering RIP configuration mode, selecting the RIP version, specifying networks, optionally disabling automatic summarization, and exiting configuration mode.


Verify RIP

Use:

R1# show ip route

RIP-learned routes are marked with:

R

Example:

R    192.168.2.0/24 [120/1] via 10.0.0.2

Cisco’s documentation notes that RIP routes appear with the R code in show ip route.

You can also use:

R1# show ip protocols

Configure EIGRP

EIGRP configuration starts with:

router eigrp <AS-number>

Example:

R1(config)# router eigrp 100
R1(config-router)# network 192.168.1.0
R1(config-router)# network 10.0.0.0
R1(config-router)# end

The autonomous-system number identifies the EIGRP routing process.

Cisco’s example uses:

router eigrp 109

followed by network statements for the directly connected networks.


Useful Cisco Router Verification Commands

After configuring a router, verification is extremely important.

1. Show Running Configuration

show running-config

Displays the current configuration stored in RAM.

2. Show Startup Configuration

show startup-config

Displays the saved configuration.

3. Show Interfaces

show interfaces

Displays detailed interface information.

4. Show IP Interfaces Brief

show ip interface brief

One of the most useful commands for quickly checking interface IP addresses and status.

5. Show IP Route

show ip route

Displays the router’s routing table.

6. Ping

ping 192.168.1.1

Tests IP connectivity.

7. Traceroute

traceroute 192.168.2.1

Helps identify the path packets take toward a destination.


Complete Basic Cisco Router Configuration Example

Here is a simple configuration you can practice in Cisco Packet Tracer:

enable
configure terminal

hostname R1

enable secret Cisco@123

no ip domain-lookup

interface gigabitethernet 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit

interface gigabitethernet 0/1
ip address 10.0.0.1 255.255.255.252
no shutdown
exit

ip route 192.168.2.0 255.255.255.0 10.0.0.2

end

copy running-config startup-config

Then verify:

show ip interface brief
show ip route
show running-config
ping 10.0.0.2

Cisco Router Configuration Checklist

Before considering your basic router configuration complete, check:

  • Hostname configured
  • Enable secret configured
  • DNS lookup disabled if appropriate for the lab
  • Interface IP addresses configured
  • Interfaces enabled with no shutdown
  • Connectivity tested with ping
  • Routing configured
  • Routing table verified
  • Running configuration checked
  • Configuration saved

Final Thoughts

Learning Cisco router configuration is one of the most important steps for anyone preparing for CCNA, network administrator, IT support, or network engineering roles.

Start with the fundamentals:

CLI → Hostname → Password → Interface → IP Address → no shutdown → Routing → Verification → Save Configuration

Once you understand these commands, you can move on to VLANs, inter-VLAN routing, OSPF, EIGRP, ACLs, NAT, DHCP, SSH, and other enterprise networking technologies.

Official Cisco Reference

For the complete Cisco 3900, 2900, and 1900 Series Software Configuration Guide, refer to the official Cisco documentation:

Cisco Basic Router Configuration Guide

Source: Cisco Systems — Cisco 3900 Series, 2900 Series, and 1900 Series Software Configuration Guide. The referenced guide covers basic configuration, interfaces, static routes, dynamic routes, RIP, EIGRP, and configuration verification.

Leave a Reply

Your email address will not be published. Required fields are marked *