Basic Cisco Router Configuration Step By Step – Getting Started With Cisco Networking

By | June 22, 2013

Hi Friends, Here SPT proudly presents Cisco networking tutorials. I planned to start from the basic Cisco router configuration commands to the advanced configuration setup. Before going to got the Cisco configurations I recommend to get some basic ideas about I.P Address and Subnet mask. In my previous article I did a complete study about Class A IP Address with Subnet mask. Once you gain the basics of I.P address let us get in to Router configurations. More over there are many simulation software available for simulating Network typologies. GNS3 (Graphical Network Simulator) and Cisco Packet tracer are some examples of such Network Simulators. For beginners it is best to start with Cisco Packet tracer because it requires ZERO initial setup configuration!. GNS3 is for more advanced users where we use actual Cisco IOS. Time being start with Packet Tracer, later on we go for GNS3 in detail.

First of all I would like to say Cisco networking is very simple and easy as more than you think…! The Free available Simulation Tool lets you to realize complex networks and scenarios. To start a Cisco lab you need have the following tools.

  • Packet Tracer Software from the following link.

[wpdm_file id=1]

Once you ready with the above said tools lets start our Configuration

In this article I’m gonna to show you

  • What is Routing? Why we need Routing?
  • Three modes in Cisco router configuration
  • Assigning IP Address to a Fast Ethernet Port
  • How to Set Password to Cisco router
  • How to Set Console password

What is Routing? Why we need Routing?

Basically an individual router has an idea about networks attached to it directly. But it doesn’t know about the networks devices that are attached to neighboring router. I will show you with an example.
Listen to the following figure;

Why we need Routing

We have 2 networks (Network 1 and Network 2). Router R1 tied with 2 networks hence it knows two networks 10.0.0.0 and 12.0.0.0 but it doesn’t know anything about 11.0.0.0 network.

Similarly R2 knows about 11.0.0.0 and 12.0.0.0 networks, but It has no idea about existence of 10.0.0.0 network.

Routing is the process by which we are configuring R1 to communicate with Network 2 (11.0.0.0) and R2 to Network 1 (10.0.0.0).

A routing protocol shares this information first among immediate neighbors, and then throughout the network. This way, routers gain awareness of the topology of the network.

This Cisco router configuration tutorial definitely will help you to explore the amazing world of Cisco. Here I’m also explaining with the help of Cisco router configuration simulator Packet Tracer.

Different method to configure Cisco router

There are three methods to configure a Cisco router.

  1. Console
  2. Telnet
  3. Auxiliary

Above these Console used for initial configuration only, rest we can do via Telnet.

How Configuration of Cisco router

Now lets see how to connect Putty with Cisco router via console. This is for practical use only. For Packet Tracer simulation you may skip this section.

Step 1:
Connect console cable at the console port of the router and the other end to your computer or laptop. You need serial port to do this.
Step 2:
Run Putty Select Serial and click Open

Step 3:

It will give you command line interface for configuring the router. Now start configuring!

Configuration- Example

The basic configuration commands are given below also I explained each command in detail.

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
R1# %SYS-5-CONFIG_I: Configured from console by console
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down

R1#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown R1(config-if)
# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up R1# %SYS-5-CONFIG_I: Configured from console by console

Realization of Each code

The 3 different modes in Cisco router are User Execution Mode, Privilege Mode and Configuration Mode

The important commands used in the configurations are discussed here.

#hostname R1
Assigning a name to our Router (Here I assigned the name as R1). We must be in Configuration Mode in order to run this command.
#show ip interface brief
To show available interfaces in the Router with IP address, Here I have 2 fast ethernet ports without IP. Run this command from Privilege Mode only.
#interface fastEthernet 0/0
Entering to the interface configuration, here we can manage the interface FastEthernet 0/0 such as assign IP address, enable/ disable etc.
#ip address 10.0.0.1 255.0.0.0
Assigning the 10.0.0.1 IP Address to fastEthernet 0/0 port along with 255.0.0.0 subnet mask.
#no shutdown
Enable the fastEthernet 0/0 port
After, run the following command from the Privilege mode (hit Cntrl+Z to go privilege mode)
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.0.0.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
R1#
Verify the status of FastEthernet 0/0 Port
Above said are the basic configuration steps in Cisco router, Now let’s see some more commands that you should know.

How to Set Password to Cisco router

This will be useful while unauthenticated users try to access the Router, it protects the router configuration window by a password.

R1>enable
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#enable password 123
R1(config)#
R1(config)#enable secret 123
R1(config)# exit
R1>enable Password:

How to Set Console password

While accessing Router with Console cable it is better to set a console password to prevent miss use of router

R1(config)#line console 0
R1(config-line)#password 123
R1(config-line)#login

How to Set Telnet password

Console configuration used rarely (Probably initial time only), instead ‘Telnet’ is employed. Telnet lets you to configure remotely! Usually Network Administrator set Telnet password to protect unwanted remote access.

R1(config)#line vty 0 4
R1(config-line)#password 123
R1(config-line)#login

Wait for our next article to get more about Cisco Router…! We will discuss Basic Routing Protocols in upcoming articles.

One thought on “Basic Cisco Router Configuration Step By Step – Getting Started With Cisco Networking

Leave a Reply

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