Router Basics
Router Basics
CONSOLE
PORT
INTERFACES
ROUTER
AUXILARY
PORT
TFTP
SERVER
NETWORK
MANAGEMENT
STATION
DRAM
Console
Auxiliary
NVRAM
FLASH
ROM
INTERFACE
FLASH MEMORY :
Depending on the platform, Flash memory is available
in the following forms:
1. Internal Flash memory : often contains the system
image. Some platforms have two or more banks of
Flash memory on one single in-line memory modules
(SIMM). If the SIMM has two banks, it is sometimes
referred to as dual-bank Flash memory. The banks
can be partitioned into separate logical devices.
NVRAM
Nonvolatile random-access memory (NVRAM) stores
the following information:
1. Startup configuration file for every platform.
2. The software configuration register, which is used
to determine which image to use when booting
the router.
EPROM / ROM
It sometimes contains the following :
ROM Monitor, which provides a user interface when
the router cannot find a valid image.
The boot loader/helper software (also called the
boot image), which helps the router boot when it
cannot find a valid Cisco IOS image in Flash
memory.
DRAM :
Dynamic random-access memory contains two types
of memory:
1. Primary, main, or processor memory, which is
reserved for the CPU to execute Cisco IOS
software and to hold the running configuration
and routing tables.
2. Shared, packet, or I/O memory, which buffers
data transmitted or received by the router's
network interfaces.
Router Modes
User EXEC Mode
Limited Examination of router and remote access
Router>
Privileged EXEC Mode
Detailed examination of Router, Debugging and testing.
File manipulation, Remote access.
Router#
ROM Monitor Mode
Used if the operating system dos not exist in Flash or
the boot sequence was interrupted during startup
> or romon>
Initialising a Router
POST
Enter ROM
Monitor Mode
Load From
ROM
Load IOS
Subset
Run RXBoot
image
Load IOS
subset
Check
conf reg
Read
NVRAM
Load from
TFTP Server
Load from
flash
Load IOS
Dynamic Configuration
information
Router# sh running-config
Router# sh ip route
Router# sh mem
back-up configuration
file in NVRAM
Router# sh startup-config
Operating Systems
Router# sh flash
interfaces
Router# sh interfaces
Stack usage of
processes
Router# sh stacks
Break Sequence
Hyperterm Win 2000
Ctrl-Break
Hyperterm Win98/95
Ctrl-F6-Break
Hyperterm Win NT
Break-F5
Shift-F5
Break Sequence(Cont..)
VT100 Emulation
F16
Minicom
Linux
Ctrl-a f
PCPLUS
DOS
Alt-b
10
11
12
Copy the new software image from the TFTP server to the
router server using the procedure below:
Router# copy tftp flash
When prompted, enter the IP address of the TFTP server as
Address or name of remote
host [255.255.255.255]? 164.100.21.131
Source file name? c2600-io3s56i-mz.121-6
Destination file name? c2600-io3s56i-mz.121-6
Erase flash device before writing? [confirm] yes/no
Router#reload
*Mar 1 00:30:49.972: %SYS-5-CONFIG_I:
Configured from console by console
System configuration has been modified. Save?
[yes/no]: no Proceed with reload? [confirm] yes
13
14
Serial
interface configuration (cont..)
S
encapsulation
Router# conf t
Router(Config)# int serial0
Router(Config-if)# encapsulation ppp / hdlc /sdlc
hdlc - serial hdlc synchronous(cisco)
ppp - point-to-point protocol
sdlc - SDLC
Router(Config-if)# bandwidth <in kilobits>
15
line vty 0 4
password zigma2k
login
!
banner login ^C
*******************************************
This is NIC - HQ New Delhi
*******************************************
^C
banner motd ^C
==========================================
Un-authorised access is prohibited
==========================================
^C
16
Static IP Routing :
If dynamic default information is not being passed to the
router, candidates for the default route may be specified with
the ip default-network subcommand. In this usage, ip
default-network takes a nonconnected network as an
argument. If this network appears in the routing table from any
source (dynamic or static), then it is flagged as a candidate
default route and is subject to being chosen as the default
route for the router. Multiple ip default-network commands
may be given. All candidate default routes, both static
(that is, flagged by ip default-network) and dynamic,
appear in the routing table preceded by an asterisk.
17
Ip default-gateway 164.100.191.166
This specifies default gateway if not routing IP
ip route 10.0.0.0 131.108.3.4 110
ip route 10.0.0.0 131.108.3.8 120
This implies that packets for network 10.0.0.0 will
be routed to the router at 131.108.3.4. if dynamic
information about network 10.0.0.0 is not available.
If you specify an administrative distance, you are
flagging a static route that may be overridden by
dynamic information
18