Introduction to Routing Configuration CNT 2510

From ITCwiki
Jump to navigation Jump to search

Router Modes

Router Output Mode How to enter this mode
Router> User mode When first entering the router press enter until greeted by the device
Router# Privileged mode (also known as EXEC-level mode) Type enable, press enter
Router(config)# Global Configuration Mode Type Configuration Terminal, press enter
Router(config-if)# Interface Mode Type Interface (interface type) (interface port) Ex; Fa0/0


Configuring a Cisco Router

Step 1.

First you need to be connected to a router on a console port 0 using a rollover cable. The other end is connected to COM1.

When you load hyperterminal you will have to set the device interface to COM1 to properly access the router.

Step 2.

How to configure a router

To configure the router you need to enter global configuration mode. When in global configuration mode you can change the router name set passwords, set MOTDs and turn off and on interface and serial devices. First we're going to show you how to enter global configuration mode. From user mode type the follwing commands,

Router> enable

Router# configure terminal

Router(config)#

Step 3.

Setting a router name

Once inside global configuration mode a router name should be configured. We are also turning off name resolution for unrecognized commands with the no ip domain-lookup command For this example we are chaning the routers name to Dante.

Router(config)# hostname Dante

Dante(config)# no ip domain-lookup

Dante(config)#

Dante(config)#

Step 4.

Device Security

Next passwords should be configured for the user EXEC mode, line console 0 and line vty 0 4. For this example we setting the user EXEC password to class and the line console 0 and line vty 0 4 passwords to cisco.

To set the user EXEC password you need to be in global configuration mode and type enable secret class, where class is the password desired. Then to set a password for the line console 0 and line vty 0 4 you need to enter line config. To do so you type line before console 0 or line vty 0 4 and you will enter config-line. Once in config-line you can type password cisco, or another password other than cisco if desired. Then type login. Make sure after you type the password type login to enable the password to be checked at login.

Dante(config)# enable secret class

Dante(config)# line console 0

Dante(config-line)# password cisco

Dante(config-line)# login

Dante(config-line)# line vty 0 4

Dante(config-line)# password cisco

Dante(config-line)# login

Dante(config-line)# exit

Dante(config)#

Step 5.

Configuring Interfaces

To properly connect between a router and another device the interfaces need to have an ip address and subnet mask set. The device also needs to be turned on with the no shutdown command. Below will be an example for a configuration for Fast Ethernet interface and Serial interface.


Dante(config)# interface fastethernet 0/0

Dante(config-if)# ip address 192.168.1.2 255.255.255.0

Dante(config-if)# no shutdown

Dante(config-if)# exit

When configuring the serial interface one end on the router needs to have a clock rate set and the DCE end plugged in. The other end of the serial cable is the DTE which connects to the other serial port on another router.

Dante(config)# interface serial 0/0/0

Dante(config-if)# ip address 192.168.1.3 255.255.255.0

Dante(config-if)# clock rate 64000

Dante(config-if)# no shutdown

Dante(config-if)# exit

Dante(config)#


Step 6.

Saving Configuration

The changes made to the router need to be saved to the NVRAM so when the router reloads or if it goes down it has all the settings saved to its startup config. To do this you need to be in user EXEC mode.

Dante(config)# ctrl+z

Dante# copy running-config startup-config

When prompted confirm you want to save the date over the startup-config.

You have now done basic router configuration! Congratulations !