Day 5
Day 5
Day 5
Cisco IOS is the kernel of cisco routers and most switches. Cisco IOS is a proprietary
kernel that provides routing, switching, internetworking, and telecommunication
features.
Cisco IOS software is responsible for:
a. Carrying network protocol and functions
b. Connecting high speed traffic between devices
c. Adding security to control access and stop unauthorized network use.
d. Providing scalability for ease of network growth and redundancy
You can access cisco IOS through the console port of a router, from modem to aux
port, even through telnet and SSH.
First place to connect router is through its console port. Console port is usually an RJ-
45 connection located at the back of the router.
In-band Connection – Through the program telnet.
Out-of-band Connecion – Outside of the network.
CISCO Router
Cisco 2851
Types Of Memory
• ROM – ROM Stores 4 component – POST, BootStrap program, ROMMON and
minIOS.
• Flash Memory – Flash is a non-volatile memory. It’s like a hard disk of router and it
stores IOS images.
• RAM – Stores operational information like running configuration, ARP, routing etc.
Everything in RAM is erased, if router is rebooted or powered off. RAM is volatile
memory.
• NV-RAM – Is permanent memory and stores start-up configuration files.
Connection to Switches
Connection to Router
Entering CLI
• User Mode [Exec Mode
User mode is the first/normal mode post logging into router. This mode allows users to
execute only the basic or monitoring commands like ping, view configuration, etc.
• Privileged Mode
Privileged mode allows users to view, restart etc which is used for troubleshooting purpose.
In privileged mode you can run more commands including user mode command. It is
password protected mode that can be enabled. It is also known as master mode and
system mode or kernel mode.
• Global Configuration Mode
Allows you to change the device configuration like hostname, authentication, set IP etc.
From this mode you can also access submodes for example the interface mode. They
affect the running-configuration of the router.
– Interface Mode
In this mode only the configuration of Interface is done. Assigning IP address to an interface,
bringing up the interface are the common task done in this mode.
– Routing protocol configuration mode
Routing engine level within configuration mode like RIP, OSPF, IGRP etc
– Line configuration mode
Line command specifies which line or group of lines you want to configure by entering the
line configuration mode like console, vty, tty etc.
The user execution mode:
router>
Entering into privilege mode from user execution mode:
router>enable
router#
Exiting from privilege mode to user execution mode:
router#disable
router>
Entering in global configuration mode from privilege mode:
router#configure terminal
router(config)#
Exiting from global configuration mode to privilege mode:
router(config)#exit
router#
Entering into interface mode from global configuration mode. Here we have to
specify the router’s interface.
router(config)#interface fa0/0
router(config-if)#
Exiting from interface mode to global configuration mode.
router(config-if)#exit
router(config)#
Exiting from interface mode to privilege mode.
router(config-if)#end
router#
Basic CLI commands
Using Pipe - |
Pipe is output modifier. From the long list of output before it display you choose what you
want to focus. For e.g.
Serial Interface command
By default, cisco router serial interface are all DTE [Data Terminal Equipment] devices,
which means that you must configure an interface to provide clocking, if you need
to act like a DCE device. You would not provide clocking on production T1
connection because you would have CSU/DSU connected to your serial interface.
To check if router’s serial interface has a DCE [Data Communication Equipment] cable
connected
Router#Show controllers S0/0
Configuring Serial Interface
• If you type show Interface g0/0 and notice that port is administratively down, what
command would you execute to enable the interface?
• If you want to set the user mode password to router for the console port, what
command would you type?
• If you wanted to set the enable secret password to CISCO, what command would you
type?
• How would you set the name of the router to R001?
• Saving and Erasing router configuration?
• Setting up Hostname, Description, Banner and IP address?
• Which of the following connection method available to connect to a router is
considered out-of-band?
– Serial Port
– HTTP Port
– VTY Port
– Aux Port
• Which command will show you whether a DTE or a DCE cable is plugged to serial 0?
– Sh int s0
– Sh int serial 0
– Sh controller S0
– Sh serial 0 controller
• Which command will configure all the default VTY port on a router?
– Router# line vty 0 4
– Router(Conifg)#line vty 0 4
– Router(config-if)#line vty 0 4
– Router(Config)#line vty 0 4
Internal Component of CISCO Router
Component Description
BootStrap Stored in the microcode of the ROM, the bootstrap is used to bring a
router up during initialization.
POST[Power on Self- Stored in the microcode of the ROM. It is used to check the basic
Test] functionality of the router hardware and present interface.
Default Configuration register value = 0x2102 [ 0x2102 to 0x210F indicate load IOS from
Flash]
0x2142 value causes the router to ignore the start-up config. Used for password recovery.
Switch Boot Sequence
• When switch is powered On, switch loads a POST. POST checks CPU, DRAM and the
portion of the flash device that makes up the flash file system.
• Next, Switch loads the boot loader software. Boot loader performs low level CPU
initialization . CPU register which control where physical memory is mapped, the
quantity of memory and it’s speed.
• Next, it initialize the flash file system on the system.
• Finally, boot loader locates and load a default IOS into memory and hands control
of the switch over to the IOS.
Understanding Configuration Register
16 bits(2byte) of the configurtion register are read from 15 to 0, from left to right.
Default configuration on cisco router is 0x2102.
IFS allows you to work with directories just as you would work with command
prompt . Most commonly commands you use are:
Mkdir
Rmdir
Copy
Delete
Erase
Show
Cisco Discovery Protocol [CDP]
CDP is a cisco proprietary protocol to help administrator collect information about
both locally attached and remote devices. You can gather hardware and protocol
information about neighbor devices, which is useful for troubleshooting.
CDP timer is how often packets are transmitted out all active interface
CDP holdtime is the amount of time that device will hold packet received
from neighbor device.
Show CDP entry * - Command display the same
information as “Show CDP neighbors detail”
To turn off Cisco Discovery Protocol [CDP]
IP HOST Table:
A host table provides name resolution only on to the router that it was built upon.
Default TCP port number is 23. The command to build the host table on a router is
as follows:
IP HOST host_name ip_address