Chapter 4 IOS
Chapter 4 IOS
IOS -(Internetwork
Operating System)
Cisco IOS:
Just like a computer a switch or router requires an operating system to support the
hardware. Cisco IOS is the operating system that you will find on the switches and routers
and some other devices like wireless access points.
When you work with Cisco routers and switches you will do most of the configuration using
the CLI (Command Line Interface).
We need:
1- a switch
2- console cable.
3- an application to connect to serial ports
Determining Which Cables to Use When Wiring Devices Together
As soon as you power on the switch this is what it will do:
1. Check the hardware.
2. Locate the Cisco IOS image & load it to the RAM.
3. Locate and apply configuration (if available).
Once the switch is done you finally get to see this message:
Press RETURN to get started!
If the switch does not have a configuration, you'll see the following:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
If you type yes and press enter it will walk you through a wizard where you can configure
some basic settings.
Note:
we'll configure everything ourselves, so we will choose no.
RAM:
Random Access Memory, also called dynamic RAM (DRAM)
6
NVRAM:
Non-Volatile RAM
7
Flash:
8
ROM
Read-Only Memory
9
Interfaces
Types of interfaces:
Ethernet
Fast Ethernet
Serial
Loopback
Console
Aux
10
IOS File System Overview
11
Overview of Router Modes:
12
Router Modes
13
User Mode Commands
14
Privileged Mode Commands
NOTE:
There are
many more
commands
available in
privileged
mode.
15
CLI Command Modes
All command-line interface (CLI) configuration changes to a Cisco router are made from the
global configuration mode. Other more specific modes are entered depending upon the
configuration change that is required.
The following command moves the router into global configuration mode
When specific configuration modes are entered, the router prompt changes to indicate the
current configuration mode.
Typing exit from one of these specific configuration modes will return the router to global
configuration mode. Pressing Ctrl-Z returns the router to all the way back privileged EXEC
mode.
16
Configuring a Router’s Name
A router should be given a unique name as one of the first configuration tasks.
This task is accomplished in global configuration mode using the following commands:
Router(config)#hostname Tokyo
Tokyo(config)#
As soon as the Enter key is pressed, the prompt changes from the default host name
(Router) to the newly configured host name (which is Tokyo in the example above).
17
Configuring a Console Password
Passwords are also used to control access to privileged EXEC mode so that only authorized
users may make changes to the configuration file.
The following commands are used to set an optional but recommended password on the
console line:
Router(config)#line console 0
Router(config-line)#password <password>
Router(config-line)#login
18
Configuring Interfaces
Router#config t
Router(config)#interface serial 0/1
Router(config-if)#ip address 200.100.50.75 255.255.255.240
Router(config-if)#clock rate 56000 (required for serial DCE
only)
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int f0/0
Router(config-if)#ip address 150.100.50.25 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#
On older routers, Serial 0/1 would be just Serial 1 and f0/0 would be e0.
19
s = serial e = Ethernet f = fast Ethernet
Home work 3