Introduction To Cisco Routers
Introduction To Cisco Routers
Configuration
Basics
Nishal Goburdhan
Router Components
Router Components
Router Components
Config-Register
System Startup
Overview
Startup confguration
Router>
Router#
External Configuration
Sources
Console
Auxiliary port
Telnet/SSH access
TFTP Server
Modem access
Virtual terminals
e.g. CiscoWorks
Address Assignments
SWITCH
.1 .2
B
196.200.220.32/28
.3
C
196.200.220.48/28
.5
196.200.220.80/28
.7
G
196.200.220.112/2
8
I
196.200.220.144/2
8
.9
196.200.220.0/28
196.200.220.16/28
.4
D
196.200.220.64/28
.6
F
196.200.220.96/28
.8
H
196.200.220.128/2
8
.10
J
196.200.220.160/2
8
Router#configure terminal
Router#(config)hostname RouterA
RouterA#(config)line console 0
RouterA#(config-line)password cisco
RouterA#(config-line)login
Configure interfaces
Global:
enable secret e2@fnog
Interface:
interface ethernet 0/0
ip address n.n.n.n m.m.m.m
Router:
router ospf 1
network n.n.n.n w.w.w.w area 0
Line:
line vty 0 4
Global Configuration
hostname e2-@fnog
enable secret tracke2
service password-encryption
logging facility local0
logging n.n.n.n
Global Configuration
The NO Command
Interface Configuration
ethernet0 or eth0 or e0
Serial0/0 or ser0/0 or s0/0
Interface Configuration
Description
router(config-if)#description ethernet
link to admin building router
Global Configuration
Commands
Looking at the
Configuration
Interactive Configuration
router#?
router#show ?
router#show ip ?
connect
This is different:
hostel-rtr#conf ?
memory
network
overwrite-network
terminal
<cr>
address
Command history
Line editing
Look at your
running configuration
Console
port
Router#write erase
Router#reload
Using ACLs
Standard
Extended
ACL Syntax
Examples:
To specify a host:
196.200.220.1 0.0.0.0
196.200.220.8 196.200.220.15 (would be a /29)
Block size is 8, and wildcard is always one number less
than the block size
Cisco access list then becomes 196.200.220.8 0.0.0.7
196.200.220.0 0.0.0.255
Examples:
196.200.220.0 0.0.3.255
ACL Example
Router(config)#access-list <accesslist-number> {permit|deny} {test
conditions}
Router(config)#int eth0/0
Router(config-if)#{protocol} accessgroup <access-list-number>
e.g check for IP subnets 196.200.220.80
to 196.200.220.95
196.200.220.80 0.0.0.15
ACL Example
0=check or match
1=ignore
0.0.0.0 255.255.255.255
or abbreviate the expression using the keyword any
196.200.220.8 0.0.0.0
or abbreviate the wildcard using the IP address
preceded by the keyword host
Standard IP ACLs
Permit only my network
196.200.220.1
196.200.220.81
Non 196.200.220.0
E0
S0
s0
e0
196.200.220.82
Extended IP ACLs:
Deny FTP access through Interface E1
196.200.220.10
196.200.220.225
Non 196.200.220.0
E0
S0
e1
196.200.220.226
Prefix Lists
Prefix Lists
Prefix lists have an implicit deny at the
end of them, like access control lists
Are quicker to process than regular access
control lists
If you do have IOS 12.0 or later, it is
STRONGLY RECOMMENDED to use prefix
lists rather than access lists for route
filtering and manipulation
config t
ip prefix-list list-name {seq seqvalue} {permit|deny} network/len {ge
ge-value} {le le-value}
Password recovery
Upload new IOS into router with NO IOS
installed
Selecting a boot source and default boot
filename
Set console terminal baud rate to upload new
IOS quicker
Load operating software from ROM
Enable booting from a TFTP server
Ctrl-Break
<Enter>, then ~# OR
Ctrl-], then Break or Ctrl-C
Ctrl-A F
Disaster Recovery:
How to Recover a Lost
Disaster Recovery:
How to Recover a Lost
Disaster Recovery:
How to Recover a Lost
Type Ctrl-C to exit Setup mode
Password
Router>enable
Router#conf m OR copy start run (only!!!)
Router#show running OR write terminal
Router#conf t
Router(config)enable secret forgotten
Router(config)int e0/0
Router(config-if)no shut
Router(config)config-register 0x2102
Router(config)Ctrl-Z or end
Router#copy run start OR write memory
Router#reload
Cisco Router
Configuration
Basics
Questions?