HOW TO CONFIGURE STATIC ROUTING USING THREE ROUTERS IN CISCO PACKET TRACER .

In this post i will show you how to configure static routing using three routers in cisco packet tracer .

In this lab , i have taken three routers and one end device (laptop or pc) for each ROUTER.

Configuring static routing using three routers

I have placed  dual serial ports ( wan interface cards ) in all three routers . I ‘ll show you how to do that .

Router > Physical > WIC-2T      

Now just click on that card and hold > drag into that empty slot in routers. But before doing that do remember to switch off the router . Then switch on the router  after placing wan interface cards .

routers

Now connect all routers with Serial DCE cable . This wire is available in connection section .  serial cable connection

Now we will assign ip

R1 Router CONFIGURATION .

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 4.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int se0/0/1
Router(config-if)#ip add 3.0.0.1 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#
Router(config-if)#exit
Router(config)#int se0/0/0
Router(config-if)#ip add 2.0.0.2 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#exit

 

R2 CONFIGURATION

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 5.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int se0/0/0
Router(config-if)#ip add 3.0.0.2 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

Router(config)#int se0/0/1
Router(config-if)#ip add 6.0.0.2 255.0.0.0
Router(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router(config-if)#exit

 

R3 CONFIGURATION

Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 1.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int se0/0/0
Router(config-if)#ip add 2.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

Router(config)#int se0/0/1
Router(config-if)#ip add 6.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

Router(config-if)#exit
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

 

 

Now comes how to do static routing in these cisco routers or how static routing works . In below picture i will make it simple to understand how it works . Ok ! i’m at R1 router and i see three known networks to R1 router and three unknown . And now in static routing we will connect to unknown network by telling router from which path to move thats static routing .

static routing in cisco routers

  • To tell R1 to connect with 5.0.0.0 (unknown network) i will configure it to move from 3.0.0.2 port .

STATIC ROUTING USING THREE ROUTERS IN CISCO PACKET TRACER

 

  • To tell R1 about 1.0.0.0 network i will configure it to go through 2.0.0.1 . ANd for 6.0.0.0 network , you can configure it go through 2.0.0.1 or 2.0.0.2 , both are possible and equal time taker .

static routing three routers cisco packet tracer

STATIC ROUTING IN CISCO ROUTERS

  • Now lets see how . Below you will find all the commands used to configure static routing in all three routers .

R1

Router(config)#ip route 5.0.0.0 255.0.0.0 3.0.0.2
Router(config)#ip route 1.0.0.0 255.0.0.0 2.0.0.1
Router(config)#ip route 6.0.0.0 255.0.0.0 2.0.0.1

R2

Router(config)#ip route 4.0.0.0 255.0.0.0 3.0.0.1
Router(config)#ip route 2.0.0.0 255.0.0.0 3.0.0.1
Router(config)#ip route 1.0.0.0 255.0.0.0 6.0.0.1
Router(config)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R3

Router(config)#ip route 5.0.0.0 255.0.0.0 6.0.0.2
Router(config)#ip route 3.0.0.0 255.0.0.0 6.0.0.2
Router(config)#ip route 4.0.0.0 255.0.0.0 2.0.0.2
Router(config)#

IN static routing , just type    iproute        unknown network( which you want to connect it with )              subnet mask of that ip  and then from which port you want to send package .

  • Then go to laptops or pc and provide ip address , subnet mask and default gateway .

static routing three routers cisco packet tracer

static routing three routers cisco packet tracer

static routing three routers cisco packet tracer

  • Try to ping with other laptop’s ip address.
  • At first try you might loss some package but try again and connection will be made .

 

PC>ping 4.0.0.2

Pinging 4.0.0.2 with 32 bytes of data:

Request timed out.
Reply from 4.0.0.2: bytes=32 time=10ms TTL=126
Reply from 4.0.0.2: bytes=32 time=1ms TTL=126
Reply from 4.0.0.2: bytes=32 time=3ms TTL=126

Ping statistics for 4.0.0.2:
 Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
 Minimum = 1ms, Maximum = 10ms, Average = 4ms

PC>ping 4.0.0.2

Pinging 4.0.0.2 with 32 bytes of data:

Reply from 4.0.0.2: bytes=32 time=16ms TTL=126
Reply from 4.0.0.2: bytes=32 time=2ms TTL=126
Reply from 4.0.0.2: bytes=32 time=3ms TTL=126
Reply from 4.0.0.2: bytes=32 time=18ms TTL=126

Ping statistics for 4.0.0.2:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 2ms, Maximum = 18ms, Average = 9ms

 

  • Now i’m using 4.0.0.2 laptop and trying to see if i send package to 1.0.0.2 laptop from which path it will go to connect 1.0.0.0 network .I have configured it go through 2.0.0.1
  • Tracert is a used command to check from which all point package move to reach that network .
  • As you see , it moves from 2.0.0.1 that means what we configured static routing is working correctly .

 

PC>tracert 1.0.0.2

Tracing route to 1.0.0.2 over a maximum of 30 hops:

1 9 ms 1 ms 0 ms 4.0.0.1
 2 1 ms 0 ms 7 ms 2.0.0.1
 3 0 ms 1 ms 1 ms 1.0.0.2

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s