It is currently Sun May 19, 2013 5:22 pm


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need some help in basic routing
PostPosted: Thu May 03, 2012 6:32 am 
Offline

Joined: Thu May 03, 2012 5:50 am
Posts: 2
Attachment:
diagram.JPG
diagram.JPG [ 23.88 KiB | Viewed 260 times ]


hi all,

i need some help regarding the simple lab as mentioned in attached diagram. i have connected 2 routers (with name router and router1) with each other through Fastethernet. routers have configured with 192.168.0.0/24 addresses and ports are opened.
Further more router is connected with ethernet switch with 2nd interface.ip of 2nd interface of router is 10.0.0.1/8. and a host (c1) is connect with loopback interface and having ip 10.0.0.2/8.

My problem is that through host i can ping router both ip addresses i.e 10.0.0.1 and 192.168.0.1 but i cant ping 192.168.0.2 the interface of router1. as this is a directly connected network which means host can ping that ip too (according to my knowledge).

kindly help me in this regards.

thanks

Ali




Top
 Profile  
 
 Post subject: Re: Need some help in basic routing
PostPosted: Thu May 03, 2012 9:06 am 
Offline

Joined: Mon Sep 19, 2011 6:19 am
Posts: 181
Location: Australia
You need to enable routing protocol between the two routers.

Once the packet goes from Router to Router1, Router1 DOES NOT know where to send the packet to, so you get 'Destination Unreacheable' message.

So you either enable a routing protocol between the routers or just put a static route in Router1 (i.e. ip route 10.0.0.0 0.255.255.255 192.168.0.1).

_________________
GNS3 video tutorials and how to's: http://www.youtube.com/GNS3Talk


Top
 Profile  
 
 Post subject: Re: Need some help in basic routing
PostPosted: Thu May 03, 2012 9:56 am 
Offline

Joined: Thu May 03, 2012 5:50 am
Posts: 2
thanks khaled for ur reply. but i have one question that i need to ask.

as 192.168.0.2 is on directly connected network so why we need to add static route?

further more if we take ip route on router it show 192.168.0.0 as directly connected network.


Top
 Profile  
 
 Post subject: Re: Need some help in basic routing
PostPosted: Thu May 03, 2012 12:19 pm 
Offline

Joined: Sun Apr 25, 2010 4:57 pm
Posts: 204
Question, Does this C1 is real NIC (MS loopback)?

If so, then Im afraid that your config will not work without NAT on router.


In real life, take Khaled solution, he is right.

in GNS little bit other way, because your PC doesnt know where is 192.168.0.0/24 network.
solution:
1. Implement NAT on router (this is better, Im using it on all topos with GNS)
2. add static route on PC for reaching 192.168.0.0/24 network.


Top
 Profile  
 
 Post subject: Re: Need some help in basic routing
PostPosted: Thu May 03, 2012 9:57 pm 
Offline

Joined: Mon Sep 19, 2011 6:19 am
Posts: 181
Location: Australia
sad_eyez wrote:
thanks khaled for ur reply. but i have one question that i need to ask.

as 192.168.0.2 is on directly connected network so why we need to add static route?

further more if we take ip route on router it show 192.168.0.0 as directly connected network.


Router1 can easily forward packets to the 192.168.0.0 network as it's directly connected to it.

The problem is, Router1 DOES NOT know about the 10.0.0.0 network!

Routers DO NOT necessarily forward packets back the same interface the packets on.

Router1 receives a packet with source 10.0.0.2 IP address, but since it doesn't have any information about the 10.0.0.0 network, it just discards/ignores it.

Hint: Routers check the routing table (show ip route) all the time to decide the best route. If the remote network isn't listed, they just drop the packets.

I hope this is helpful :)



_________________
GNS3 video tutorials and how to's: http://www.youtube.com/GNS3Talk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO