You are on page 1of 21

Module 3

Configuring a Router

1
Version 3.1
CLI Command Modes

2
Version 3.1
Basic Steps to Configure a Router

1. Configure hostname
2. Configure passwords
• Enable / enable secret
• Console
• Virtual terminal (vty)

3. Configure interfaces
4. Configure routing protocol
5. Configure hostname table
3
Version 3.1
Configuring the Router Hostname

Router#config t
Router(config)#hostname Router_A
Router_A(config)#exit
Router_A#

4
Version 3.1
Password Configuration
• Passwords are set for:
– privileged EXEC mode
• Enable password (not used if secret password is
set)
• Enable secret password (restricts going from user to
privileged)
– line passwords
• console interface
• VTY or virtual terminals

5
Version 3.1
Password Configuration
• Setting Passwords are set for:
– privileged EXEC mode
• Enable password
– Router(config)#enable password password
• Enable secret password
– Router(config)#enable secret password

6
Version 3.1
Password Configuration
• Setting Passwords are set for:
– line passwords
• console interface
– Router(config)#line console 0
– Router(config-line)#password password
– Router(config-line)#login
• VTY or virtual terminals
– Router(config)#line vty 0 4
– Router(config-line)#password password
– Router(config-line)#login

7
Version 3.1
Password Configuration
• Password Encryption may set
– The service password-encryption command may
be used to set passwords to not display in clear text
when viewing running configuration.
– Router(config)#line console 0
– Router(config-line)#password password
– Router(config-line)#login
– Router(config-line)#service password-
encryption
– Secret password is always encrypted even when the
command above is not used

8
Version 3.1
If no
password Password Configuration
is set for
virtual
terminal
sessions,
no one
can log
into the
router
using a
virtual
terminal
session

Can set 5
different
passwords
for the VTY
lines

9
Version 3.1
show commands
• show interfaces – stats on the router interfaces
• show controllers serial – hardware info re serial
interfaces
• show clock – Shows the time set in the router
• show hosts – Displays a cached list of host names and
addresses
• show users – Displays all users who are connected to
the router
• show history – history of commands
• show flash – info about flash memory and the IOS’s
stored there

10
Version 3.1
show commands
• show version – info about router and IOS running in
RAM
• show ARP – Displays the ARP table of the router
• show protocol – Displays the global and interface
specific status of any configured Layer 3 protocols
• show startup-configuration – Displays the saved
configuration located in NVRAM
• show running-configuration – Displays the
configuration currently running in RAM

11
Version 3.1
Configuring a serial interface

12
Version 3.1
Configuring a serial interface
Router#config t
Router(config)#interface serial 0/0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#clock rate 56000 (if DCE is connected)
Router(config-if)#no shutdown A router is by default
administratively down,
until it is brought up

A router is by default a DTE device – 2 routers are usually not


joined together – there is an intervening device that provides
the clocking between.
If there is no other device supplying a clock signal to the link,
then one must be configured on the router.
13
Version 3.1
Configuring a router

Both steps are used to remove an existing configuration


14
Version 3.1
Configuring an Ethernet interface
Ethernet
Router#config t
Router(config)#interface ethernet 0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#no shutdown

FastEthernet
Router#config t
Router(config)#interface fastethernet 0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#no shutdown
15
Version 3.1
Importance of Configuration Standards

• Helps reduce complexity


• Limits unplanned downtime
• Limits events that may impact network performance

16
Version 3.1
Interface Descriptions
Identifies important information as to what the interface
is connected to
Ft_Worth#config t
Ft_Worth(config)#interface serial 0
Ft_Worth(config-if)#description WAN link to San Antonio
Ft_Worth(config-if)#ip address 192.10.10.1 255.255.255.0
Ft_Worth(config-if)#no shutdown

17
Version 3.1
Login Banners

• They are seen by everyone (telnet, AUX port, console


port)
• Can convey message to all users
• Might want to include a warning not to access the
device
• Use a delimiting character before and after

Router#config t
Router(config)#banner motd # Authorized Users Only!!! #

18
Version 3.1
Host Name Resolution
•A global configuration command
•Router(config)# ip host name ip addresses
•Router(config)# ip host Dallas 192.168.1.23
192.168.2.57
•Matches static name with IP address
•Might think of it as a convenience – not necessary, but
convenient to use names instead of addresses
•Instead of using telnet 192.10.10.1 or ping 192.10.10.1, with a
host name resolution table just use ping NAME or telnet
NAME

19
Version 3.1
TFTP SERVER
• Used to save a copy of the configuration on a computer
• Router#copy running-config tftp
• Software has to be set up beforehand and running
• You will be prompted for information about IP address of
tftp server and the file name

20
Version 3.1
Saving Configuration Files

21
Version 3.1

You might also like