day 1 introduction to ios and cisco routers
DESCRIPTION
TRANSCRIPT
![Page 1: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/1.jpg)
INTRODUCTION TO IOS
AND CISCO ROUTERS By
Anil Kumar Vishwakarma
MCA,MCTS,CCNA
![Page 2: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/2.jpg)
CISCO ROUTER IOS
oThe Cisco IOS (Internetwork Operating System) was
created to deliver network services and enable networked
applications. It runs on most Cisco routers.
oSome of the important things that the Cisco router IOS
software is responsible for include
o Carrying network protocols and functions.
o Connecting high-speed traffic between devices.
o Adding security to control access and stop unauthorized
network use.
o Supplying network reliability for connecting to network
resources.
![Page 3: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/3.jpg)
CISCO ROUTER
Router uses to connect: -
Subnet with another Subnet (By LAN
Interface).
LAN with another LAN (By WAN Interface).
LAN with WAN (By WAN Interface).
WAN with another WAN (By WAN Interface).
Router Consist of External Components
(Interfaces) and Internal Components
![Page 4: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/4.jpg)
![Page 5: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/5.jpg)
INTERNAL COMPONENT
![Page 6: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/6.jpg)
CONNECTING TO A CISCO ROUTER
You can connect to a Cisco router to configure
it, verify its configuration, and check statistics.
There are Three ways to do that: -
Console Session.
Auxiliary Session.
Telnet Session can’t use this method after router has
taken valid IP address.
![Page 7: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/7.jpg)
COMPUTER CONSOLE CONNECTION
![Page 8: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/8.jpg)
MODEM CONNECTION
![Page 9: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/9.jpg)
BRINGING UP A ROUTER
When you first bring up a router, it will
takes this Boot Sequence: -
Perform POST (Power On Self Test) which is small program stored in ROM to check router components.
Load IOS image from Flash memory and decompress it into RAM.
Display the information from POST.
Running Valid Configuration (Startup Conf).
If no configuration router will go into Setup mode.
![Page 10: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/10.jpg)
MEMORY ARCHITECTURE
![Page 11: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/11.jpg)
MEMORY TYPES
RAM Used to store working tables as well as
running IOS image
ROM Stores a bootable IOS image that provides
basic functionality as well as a barebones interface called the ROM Monitor (ROMMON)
Flash Memory Stores the full function IOS image and is the
default location for IOS at boot
NVRAM Stores startup configuration file
![Page 12: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/12.jpg)
MEMORY TYPES
RAM
(Working Memory)
Flash
(IOS)
ROM
(Basic IOS)
NVRAM
(Startup Config)
![Page 13: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/13.jpg)
CONFIGURATION AND IOS
IMAGES
![Page 14: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/14.jpg)
CONFIGURATION FILE
The configuration is a text file that contains configuration commands that are executed at startup
When the router boots a copy of the config in NVRAM (startup-config) is executed to establish the initial configuration
Configuration commands entered while the router is running are entered into the temporary configuration stored in RAM (running-config)
![Page 15: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/15.jpg)
SAVING A CONFIGURATION
RAM
(Running-Config)
NVRAM
(Startup-Config)
Copy running-config startup-config
Copy startup-config running-config
Merged
Replaces
![Page 16: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/16.jpg)
SYNTAX OF THE COPY COMMAND
Copy From-Location To-Location
Where:
From- and To-Location - {tftp|running-config|startup-config}
tftp – a trivial ftp server located somewhere on the network
![Page 17: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/17.jpg)
ENTERING THE CONFIGURATION
Setup Mode If no configuration exists when the router
boots, it enters setup mode Router hasn‟t been configured before
Someone used the „Erase Startup-Config‟ then rebooted
NVRAM was damaged
Setup mode is a question and answer process that can be used to create basic configurations
Command Line Interface (CLI) Configuration commands entered at command
prompt then saved to NVRAM
![Page 18: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/18.jpg)
SETUP MODE
Setup Mode allows configuration of: Interface summary
Router hostname
Passwords
SNMP
Various network protocols DECnet, Appletalk, IP, IPX
Routing protocols
Interfaces
When finished setup mode gives the user the option of copying the configuration to NVRAM and RAM
![Page 19: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/19.jpg)
VIEWING CONFIGURATIONS
Show {running-config|startup-config}
![Page 20: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/20.jpg)
THE CLI AND GETTING HELP
![Page 21: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/21.jpg)
COMMAND LINE INTERFACE
Most Cisco devices use a command line
interface
Commands can be entered and edited
before they are executed by hitting the
enter key
Commands can be abbreviated as long as
they are not ambiguous
e.g. Show Interface => sh int
![Page 22: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/22.jpg)
COMMAND LINE INTERFACE
If a command has an error the command will be repeated
and a “^” will mark the location of the error
access-list 110 permit host 1.1.1.1
^
%Invalid input detected at „^‟ marker.
![Page 23: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/23.jpg)
COMMAND HISTORY
Up and Down arrows scroll through command history
Also ctrl+p (up) and ctrl+n (down)
Command history commands Show history – shows commands in history
Show terminal – shows terminal configurations and terminal history size (default = 10)
Terminal history size – changes history buffer size up to a max of 256
![Page 24: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/24.jpg)
GETTING HELP
Typing ? at any point will cause IOS to show
what options exist at that point
Just ? on a line will list all commands available in
that mode
Typing one letter followed by ? will show all
commands that begin with the letter
Adding ? after a command will show what arguments
are available for the command
![Page 25: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/25.jpg)
CONNECTING TO THE ROUTER
![Page 26: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/26.jpg)
CONNECTING TO THE ROUTER
Console Connect directly to console port and use a terminal
program like Windows Hyperterminal or Linux‟s Minicom
AUX The auxiliary port is port you can attach a modem to
Can also be used as a backup connection dial on demand circuit
TTY Can use Telnet to connect to TTY once router has
been configured initially
Most routers have 5 TTY connections
![Page 27: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/27.jpg)
IOS MODES
![Page 28: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/28.jpg)
IOS MODES
User Mode
Router>
Privileged (Enable) Mode
Router#
disable enable
Telnet Aux Console
![Page 29: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/29.jpg)
IOS CONFIGURATION MODES
Configuration Mode
Router(config)#
Privileged Mode
Router#
Config terminal
(config t)
Interface Configuration Mode
Router(config-if)#
Interface <interface>
(interface ethernet 0)
Router Configuration Mode
Router(config-router)#
Router <protocol>
(Router rip)
![Page 30: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/30.jpg)
ROUTER INTERFACES
![Page 31: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/31.jpg)
INTERFACES
LANs Ethernet (Ethernet 0, E0, E1, etc.)
FastEthernet (FastEthernet 0, F0, F1, etc.)
Token Ring (TokenRing 0, TO0, TO1, etc.)
WANs Serial 0, S0, S1, etc.
![Page 32: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/32.jpg)
INTERFACES ON EXPANSION CARDS
Interfaces on add in expansion cards include the slot number followed by a slash then the interface number
The first FastEthernet interface on a card in the first slot would be FastEthernet 0/0
On 7500 series routers three values are required (slot/port-adapter/port) so it would be FastEthernet 0/0/0 for example
![Page 33: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/33.jpg)
LOOPBACK INTERFACES
Loopback interfaces are internal interfaces and
treated like other interfaces
Loopback interfaces are never shutdown
Loopback interfaces are useful when you need an
interface that will never go down
![Page 34: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/34.jpg)
INTERFACE CONFIGURATION MODE
Use the Interface command in configuration or
interface configuration mode to enter
configuration mode
Router(config)#interface e0
Router(config-if)#interface Lo0
Router(config)#interface s0/1
![Page 35: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/35.jpg)
BRINGING UP AN INTERFACE
By default, all interfaces (except loopback
interfaces) are in administrative shutdown mode
To activate the interface use the no shutdown
command in the interface configuration mode
![Page 36: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/36.jpg)
ASSIGNING AN IP ADDRESS
IP addresses are assigned in interface
configuration mode
Router#config t
Router(config)#interface s0
Router(config-if)#ip address 129.130.32.1 255.255.224.0
Router(config-if)#no shutdown
Router(config-if)#exit
![Page 37: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/37.jpg)
SETTING THE CLOCK RATE
On serial connections the DCE must set a clock rate to synchronize communication In the lab the 2501 that is a router is a DCE
because the cable attached is a DCE cable so the clock rate must be set on this router
The 2501 that is a Frame Relay switch is also a DCE but you do not configure this one
Router(config)#int s0
Router(config-if)#clockrate 2000000
![Page 38: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/38.jpg)
SETTING THE SERIAL
ENCAPSULATION
We‟ll discuss this in more detail later in the
semester but the data link layer protocol must be
set for the Frame Relay link using the
encapsulation command
Router(config)#interface s0
Router(config-if)#encapsulation frame-relay
![Page 39: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/39.jpg)
PASSWORDS
![Page 40: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/40.jpg)
PRIVILEGED MODE PASSWORDS
Enable password
Enable password <password>
Enable password is shown in clear text
Not used if enable secret password is set
Enable secret password
Enable secret <password>
Enable secret password is encrypted
![Page 41: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/41.jpg)
USER MODE PASSWORDS
Console Line console 0 Login Password <password>
Auxiliary Line aux 0 Login Password <password>
Telnet Line vty 0 4 Login Password <password>
Enter configuration mode
Require login
Set password
Most routers have 5 telnet
lines. This command sets
all five.
![Page 42: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/42.jpg)
ENCRYPTING PASSWORDS
User mode passwords are normally stored in the configuration file in clear text
To encrypt them use the following sequence of commands
service password-encryption line console 0 login password <password> no service password-encryption
![Page 43: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/43.jpg)
IOS COMMANDS TO KNOW
Enable/disable Enable secret/password
Config
Editing commands
Show history
Show terminal
Terminal history size
Line How to require login and set password for
console, vty and aux
![Page 44: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/44.jpg)
IOS COMMANDS TO KNOW
Service password-encryption
Banner
Interface Shutdown
Know the interfaces commands for ethernet, fast ethernet, serial, token ring and loopback
Description
Hostname
Show running/startup-config
Copy <running-config/startup-config,tftp> <running-config/startup-config,tftp>
![Page 45: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/45.jpg)
IOS COMMANDS TO KNOW
Show interface
Show controllers
Clock rate
Ip address
Show Version
Show flash
![Page 46: Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS](https://reader034.vdocuments.net/reader034/viewer/2022050720/547c4f8fb4af9fda158b50d1/html5/thumbnails/46.jpg)
Thank You