0% found this document useful (0 votes)
37 views3 pages

Exp 16

Download as doc, pdf, or txt
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 3

ESTABLISH A STATIC ROUTING BETWEEN TWO ROUTERS

AIM: To establish a static routing between two routers.

APPARATUS:
NetSim Software Version 12.0.18

PROCEDURE:

Step 1: Open Packet tracer, and build the topology


 Select Switches and Routers from Networking devices which is present at
bottom left of the packet tracer interface drop them on the workspace.
 Select PC from end devices which is present at bottom left of the packet
tracer interface drop them on the workspace.
 Select the appropriate connector from connections icon and connect the
devices as shown below.

Step 2: Assign IP addresses to PCs, Router


 To assign IP addresses to the PCs
a) Click on PC
b) Select Desktop option
c) Select IP configuration
d) Give the IP address , press enter the subnet mask will be
automatically assigned
e) Give the default gateway address(if the topology requires)

 Assign IP addresses Routers


a) R1(config)#interface g0/0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface g0/0/1
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#exit
b) R2(config)#interface g0/0/0
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface g0/0/1
R2(config-if)#ip address 20.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R2(config-if)#exit
Step 3: Adding static route
Static Routing between the routers, By default, Routers Know only directed
connected networks here Router 1 know only 10.0.0.0 and 20.0.0.0 it doesn't know
the 30.0.0.0 like this R2 doesn't know about 10.0.0.0.So We are going to add Static
route to this both router

 Syntax:  R1(config)#ip route Destination Network| Destination N/W SubnetMask |


Next Hop Address

In Router R1,Just give this command, In this case Destination is 30.0.0.0 and its
subnet mask is 255.0.0.0 next hop address is 20.0.0.2
a) R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
Step 4: Checking the connectivity using ping command
a) Open PC0
b) Select Desktop Option
c) Select command Prompt
Give the command as
Ping 30.0.0.1
RESULT:

You might also like