4 - Router and IOS Basics
4 - Router and IOS Basics
COMP10023 2
Perform POST and Load Bootstrap
Program
The bootstrap program locates the Cisco IOS software and loads it into
RAM. Cisco IOS files can be located in one of three places: flash memory, a
TFTP server, or another location indicated in the startup configuration file.
By default, the Cisco IOS software loads from flash memory. The
configuration settings must be changed to load from one of the other
locations.
COMP10023 4
Locate and Execute the Startup
Configuration
After the Cisco IOS software is loaded, the bootstrap program searches for
the startup configuration file in NVRAM. This file contains the previously
saved configuration commands and parameters, including interface
addresses, routing information, passwords, and other configuration
parameters.
COMP10023 5
Initial startup of Cisco routers
Note: If the startup configuration file does not exist in NVRAM, the
router may search for a TFTP server.
If the router detects that it has an active link to another configured
router, it sends a broadcast searching for a configuration file across
the active link. This condition will cause the router to pause, but you
will eventually see a console message like the following one:
<router pauses here while it broadcasts for a configuration file across an active link>
COMP10023 6
Initial startup of Cisco routers
When booting a router that does not contain a startup configuration
file, you will see the following question after the IOS has been
loaded:
Would you like to enter the initial configuration dialog? [yes/no]:
Setup mode will not be used in this course to configure the router.
When prompted to enter setup mode, always answer no. If you
answer yes and enter setup mode, you can press Ctrl-C at any time
to terminate the setup process.
You can also enter the setup mode by typing in the command setup
When setup mode is not used, the IOS creates a default running-
config. The default running-config is a basic configuration file that
includes the router interfaces, management interfaces, and certain
default information. The default running-config does not contain any
interface addresses, routing information, passwords, or other
specific configuration information..
COMP10023 7
Config Files
The startup configuration file is the saved configuration file that sets the
properties of the device each time the device is powered up. This file is
stored in non-volatile RAM (NVRAM), meaning that it is saved even
when power to the device is turned off.
When a Cisco router is first powered up, it loads the Cisco IOS software
to working memory, or RAM. Next, the startup configuration file is
copied from NVRAM to RAM. When the startup configuration file is
loaded into RAM, the file becomes the initial running configuration. This
file is NOT saved when power to the device is turned off.
COMP10023 8
Location of the Cisco IOS
IOS stored in Flash
Non-volatile storage – not lost when power is lost
Can be changed or overwritten as needed
Can be used to store multiple versions of IOS
IOS copied from flash to volatile RAM
Quantity of flash and RAM memory determines IOS that can be
used
COMP10023 9
Router user interface
COMP10023 10
Out-of-band Management
Out-of-band management
requires a computer to be directly
connected to the console port or
auxiliary port (AUX) of the
network device being configured.
Does not require the local
network connections on the
device to be active.
Used to initially configure a
network device.
Also useful when the network
connectivity is not functioning
correctly and the device cannot
be reached over the network.
Requires a terminal emulation
client installed on the PC.
COMP10023 11
In-band Management
Used to monitor and make
configuration changes to a
network device over a network
connection.
For a computer to connect to the
device and perform in-band
management tasks, at least one
network interface on the device
must be connected to the network
and be operational.
Either Telnet, HTTP (using
SDM/CPP) or SSH can be used
to access a Cisco device.
A web browser or a Telnet/SSH
client program can be used to
monitor the network device or
make configuration changes.
COMP10023 12
Navigating the IOS
COMP10023 13
Navigating the IOS
COMP10023 15
Operation of Cisco IOS Software
Operating Environment Prompt Usage
The Cisco IOS devices have three distinct operating environments or modes:
• ROM monitor
• Boot ROM
• Cisco IOS
The show flash command is used to verify that the system has sufficient memory
to load a new Cisco IOS image.
COMP10023 16
Establishing a Terminal Session
Router
Console port
Terminal or a
PC with
Rollover cable
terminal
emulation
software
COMP10023 17
Establishing a Terminal Session
with Terraterm Pro
Important: A console
connection is not the
same as a network
connection!
COMP10023 18
Logging into the router – more
later User Access Verification
Password:
Router> User-Mode Prompt
Navigating
Router> enable
between Password:
modes Router# Privileged-Mode Prompt
Router# disable
Router>
Router> exit
Line
Router
COMP10023 19
Keyboard help in the router CLI
COMP10023 20
Keyboard help in the router CLI
Router#
Router#cl?
clear clock
Router#clock
% Incomplete command.
Router#clock ?
set Set the time and date
Router#clock set This example is showing how to
% Incomplete command.
Router#clock set ? use the ? (help) with the IOS CLI.
hh:mm:ss Current Time
Router#clock set 08:47 ?
hh:mm:ss This would work the same with any
Router#clock set 08:47:00 command that you are using.
% Incomplete command.
Router#clock set 08:47:00 ?
<1-31> Day of the month
MONTH Month of the year
Router#clock set 08:47:00 30 03
^
% Invalid input detected at '^' marker.
Router#clock set 08:47:00 30 March
% Incomplete command.
Router#clock set 08:47:00 30 March ?
<1993-2035> Year
Router#clock set 08:47:00 30 March 2015
Router#
COMP10023 21
Enhanced editing commands
Command Description
COMP10023 22
Router command history
Command Description
Router> terminal history size number-of-lines Sets the command history buffer size*
COMP10023 23
Troubleshooting command line
errors
COMP10023 24
Filter Command Output
Filtering commands can be used to display specific sections of
output. To enable the filtering command, enter a pipe (|) character
after the show command and then enter a filtering parameter and a
filtering expression.
COMP10023 25
Resource material for PowerPoints
from:
Rick Graziani
Todd Lammle
COMP10023 26