Configuring Routers
I’ve got to program a router! What do I have to do
Router> Router>enable Router# Router#config t Config t is the place to be! Log on to the router
Name the router! Router(config)#hostname Lab-A Step One Lab-A
Password protect the Privilege Mode Step Two Lab-A(config)#enable secret class enable secret 5 $1$emBK$WxqLahy7YOAf0nifub Results in: PasswordCommands
Configure the Interfaces Step Three Lab-A(config)#interface serial0 Lab-A(config-if)# (Note prompt change)
Address the Interface(S0) Lab-A(config-if)#ip address Ip addressSubnet mask S0=
Clock ticks MUST be set between routers on the interface with the serial cable DCE end. Serial0 is where the DCE connects in our lab.
We use Serial0 Lab-A(config-if)#clock rate 56000
Address the next Interface (E0) Lab-A(config-if)#ip address Lab-A(config-if)#interface ethernet0 (This changes to program interface e0) S0= E0=
Control z Lab-A# Lab-A#show running-config
Like people, routers have to talk to one another!
Step Four Set up routing protocols
Routing Protocols: RIPRIPv2 IGRPEIGRP OSPF
Set up the routing protocol Lab-A(config)#router rip Lab-A(config-router)# version 2 Lab-A(config-router)#network Lab-A(config-router)#network (Note prompt change)
Note! You have to configure for EACH network (remember network # is the “wire” #) Each network is on a separate line Hit Control z to activate and return to: Lab-A#
Control Access Control and secure access from: CONSOLE VTY (telnet) AUX (modem)
Control Access Step Five Lab-A(config)#line console 0 Lab-A(config-line)#password cisco (Note prompt change) Lab-A(config-line)#login
Continue Lab-A(config)#line vty 0 4 Lab-A(config-line)#password cisco Lab-A(config-line)#login
Want to save time and move fast between routers? Step Six
Create a host file Lab-A(config)#ip host Lab-A Lab-A(config)#ip host Lab-B Lab-A(config)#ip host Lab-C Lab-A(config)#ip host Lab-D Lab-A(config)#control z
Turn on the interfaces: Lab-A(config)#interface s0 Lab-A(config-if)#no shutdown Lab-A(config-if)#interface e0 Lab-A(config-if)#no shutdown Step Seven
Check and save your configuration (Step 8) Router#show run (Check) Router#copy run start (S ave)
Let’s Review: Step 1 – name router Hostname xxxxx Step 2 – set “privilege” password and encode it Enable secret xxxxx Step 3 – configure interfaces Interface sX (or eX)
Step 4 – Set the routing protocols Router rip Step 5 – Set who and where access comes from Line console (vty) Step 6 – Create a host file Ip host xxx.xxx.xxx yyy.yyy.yyy Step 7 – Turn on interfaces Router(config-if)#no shutdown Let us review
Step 8:Check and Save your work! Check your config Router#show run Save your configuration from RAM to NVRAM Router#copy run start
You’re Through!