Anda di halaman 1dari 5

INSTITUTE OF INFORMATION TECHNOLOGY

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO


ADVANCED COMPUTER NETWORKS
(1ST Term, Final Year) LAB EXPERIMET # 4
______________________________________________________________________
__

To see router configuration of system hardware and software


&
To Perform Static Routing
This Lab comprises of two parts.
Part A: To see router configuration of system hardware and software
Part B: To Perform Static Routing

LAB # 4A
PERFORMANCE OBJECTIVE
To becoming familiar with the following :
1- Router modes
2- router configuration of system hardware and software .
EQUIPMENT

PC
Router with console
RJ-45 TO DB-9 adapter
RJ-45 TO RJ 45 rollover cable

DISCUSSION & CONFIGRATION :

1-

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>

INSTITUTE OF INFORMATION TECHNOLOGY


MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
ADVANCED COMPUTER NETWORKS
(1ST Term, Final Year) LAB EXPERIMET # 4
______________________________________________________________________
__
Global Configuration Mode
Router(config)#
ROUTER STATUS COMMANDS
1-

IOS version in DRAM

Router# show version

2-

Programs loaded in DRAM

Router#sh processes CPU


sh protocols

3-

Dynamic Configuration
information

Router# sh running-config

Routing table in DRAM

Router# sh ip route

Processor and I/O


memory usage

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

10

Displays the IOS version, ROM


version, uptime, IOS filename,
amount of main memory, amount
of flash memory and installed
interfaces.
A very helpful
command to say the least. Note
that it can be executed in user
mode.
Shows interface status and the
protocols enabled on each
interface.

Show version

Displays a list of all processes


running on the router. The only

Show process

11

12

Show protocols

INSTITUTE OF INFORMATION TECHNOLOGY


MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
ADVANCED COMPUTER NETWORKS
(1ST Term, Final Year) LAB EXPERIMET # 4
______________________________________________________________________
__
highlight here is the CPU
utilization for five minutes is
displayed at the top right of the
list.
13
14

15

displays memory information


Displays a list of global and
interface buffers.
Helpful for
understanding
the
buffer
architecture but definitely nothing
you will change.
displays flash memory contents

Show mem
Show buffers

Show flash

LAB # 4B
Part B:To Perform Static Routing
PERFORMANCE OBJECTIVE
To become familiar with static router
EQUIPMENT

Two PC
Two Router with console
Two RJ-45 TO DB-9 adapter
Two RJ-45 TO RJ 45 rollover cable
DISCUSSION & CONFIGRATION

The process in which Administrator manually adding routes in


Routers table.
No overhead on Router CPU
No bandwidth usage between routers
Security
ip route, destination N/W, mask, next hop address, AD,
permanent.

Configuration of static router :

INSTITUTE OF INFORMATION TECHNOLOGY


MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
ADVANCED COMPUTER NETWORKS
(1ST Term, Final Year) LAB EXPERIMET # 4
______________________________________________________________________
__

Log into the router and enter privileged mode.


Type "show ip route". Note that two directly connected routes are shown.
Type "copy run start" to make sure that your configuration is saved. ("Copy run start"
is the abbreviated version of "copy running-config startup-config". Either commands
can be used on a router).
.Enter configuration mode to enter routing information. (Type "configure terminal" or
the abbreviated version "config t". Either command can be used on a router).
To add a route, you must specify the destination network and the port that traffic must
use to reach the remote network. To reach 192.168.10.0 traffic must flow through the
serial port 210.16.54.1.
Type "ip route 192.168.10.0 255.255.255.0 210.16.54.1". This command establishes an
IP route to network 192.168.10.0 with a 24 bit net-mask through port 210.16.54.1
Type "ip route 192.168.50.0 255.255.255.0 210.16.54.1". This command establishes an
IP route to network 192.168.50.0 with a 24 bit net-mask through port 210.16.54.1
Type "Ctrl-z" to exit from config mode.
Type "show ip route". Note that the two static routes are shown in addition to the two
direct routes. If you do not see both static routes, repeat this lesson from the beginning.
We will now look at how to remove static routes:
Enter config mode. (Type "configure terminal" or "config t")
To undo a command, like setting a route, we need to type the same command, with the
word NO in front of it:

INSTITUTE OF INFORMATION TECHNOLOGY


MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY, JAMSHORO
ADVANCED COMPUTER NETWORKS
(1ST Term, Final Year) LAB EXPERIMET # 4
______________________________________________________________________
__
Type "no ip route 192.168.10.0 255.255.255.0 210.16.54.1". This command removes
the route to network 192.168.10.0
Type "no ip route 192.168.50.0 255.255.255.0 210.16.54.1". This command removes
the route to network 192.168.50.0
Type "Ctrl-z" to exit from config mode.
Type "show ip route". Note that the two static routes are now gone, and only directly
connected routes remain