Wednesday, October 27, 2010

Basic Cisco Router Configuration

The basic CLI modes that we will be referring below are as following:


When you connect to the router it will enter into User EXEC mode

Router> ← User EXEC Mode


To Enter into Privileged EXEC mode

Router> enable (if password is enabled it prompt for password)

Router# ← Privileged EXEC mode


To Enter into Global Configuration mode

In Global Configuration Mode you configure parameters that affect the whole router device

Router# Config terminal

Router(config)# ← Global Configuration Mode


To Configure any Interface

Router(config)# Interface Serial1

Router(config-if)# ← Interface Configuration Mode


To Configure Line Interface

Router(config)# line vty 0

Router(config-line)# ← Line Configuration Mode


The first step is to secure your access to the router by configuring a global secret password and also passwords for Telnet or Console


Router# Config terminal

Here we will configure the Enable Secret password for Privileged EXEC Mode

Router(config)# enable secret "secretpassword"

Router(config)# end


Configuring password for the Telnet Lines (VTY lines) which will secure your access when connecting via Telnet

Router(config)# line vty 0 4

Router(config-line)# password "Telnetpassword"


Configuring Hostname for your device

Router(config)# hostname "Routername"

Routername(config)#