Routing: Engr. Neriza V. Bustillo, Mpa, Mit
Routing: Engr. Neriza V. Bustillo, Mpa, Mit
Flash
Permanent
Keeps
Holds
POST, boot
instructions, basic IOS
contents
Holds IOS image
NVRAM
RAM
Keeps
Volatile
contents
Holds startup
configuration file
Holds
runnning config,
tables, queues etc
+ password
End
Router prompts
User EXEC mode
Router>
Router#
Router(config)#
Router(config-if)#
and others
EXEC modes
You
Configuration modes
Start
? To get help
?
Shortened commands
Router#show
running-config
Router#show run
Router#sh ru
It needs enough letters of each word to
be unambiguous. (Tab key shows whole
word)
Router#s ru
% Ambiguous command: s
set
% Incomplete command
Switch#clock set 19:50:00 25 6
% Invalid input detected at ^ marker
Router#show runming-config
% Invalid input detected at ^ marker
Keyboard shortcuts
Tab
Show commands
Show
? To get a list
Many different show commands to give
information about every aspect of the
router and its operation
We use some of the most common.
Show interfaces
Gives
Save configuration
Router#copy running-config startupconfig
Router#copy run start (shortened)
Router#wr (Old fashioned, short for
write, but it works and is safe.)
Beware! A typing error in the copy
command can delete the operating
system. If you get an odd message about
Flash hands off call for help.
Hostname
Router>enable
Router#config
t
Router(config)#hostname Paris
Paris(config)#
Configure a suitable hostname so that
you know which router you are
managing and so that you can identify it
in network documentation.
Console password
Paris(config)#line
con 0
Paris(config-line)#password cisco
Paris(config-line)#login
Paris(config-line)#exit
Restricts access via the console
Use cisco as the password in labs.
Use a proper strong password on
production networks
vty 0 4
Paris(config-line)#password cisco
Paris(config-line)#login
Paris(config-line)#exit
Allows and restricts access via 5 vty
lines
Use cisco as the password in labs.
Use a proper strong, different password
on production networks
secret class
The password class is needed when you
type enable to enter privileged exec mode
This password is encrypted
Paris(config)#enable password cisco
Not encrypted, used on older routers
If you configure both, then only the enable
secret is used.
motd # No
unauthorised access #
# is a delimiter to show where the
message starts and ends.
Any character can be used as long as it
does not appear in the message.
The message should make it clear that
unauthorised access is forbidden.
Reload
Shuts
again.
If the configuration has changed then
you are prompted to save it.
The running configuration in RAM is lost.
The startup configuration from NVRAM is
(usually) loaded into RAM on startup.
serial 0/0
Paris(config-if)#ip address
192.168.4.1 255.255.255.0
(Paris(config-if)#clock rate 64000)
Paris(config-if)#no shutdown
Paris(config-if)#exit
Description
Paris(config)#interface fa0/0
Paris(config-if)#description Connects
to Paris central switch
Can include circuit and contact
information
Not needed for the operation of the router
Valuable for documentation as it is
included in the configuration listing
Default gateway
Each PC is configured with an IP address
and a default gateway.
The default gateway is the IP address of
a router port on the same network as the
PC.
It is the routers job to handle messages
to other networks.
Each router port is on a different network
and has a different IP address
Hops
A
172.16.2.2
Give the next hop address
R1(config)#ip route 172.16.1.0 255.255.255.0
Serial 0/0
Or give the exit interface
ip route 192.168.2.0
255.255.255.0 serial 0/0
Give the same command again with no
in front.
Most commands can be reversed like
this.
Directly connected
The
Other networks
Routes