cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3152
Views
0
Helpful
12
Replies

Static route with same target network but different next hops

Blvesteel
Level 1
Level 1

Good day,

I am trying to use Static route for 2 separate network with the same subnet (see attached image). However when i applied the config(see below), the ping from pc to the center router is inconsistent. I know the router is confused and tries to deliver the traffic to both the next hops indicated. How can i have 100 percent ping with just

 

-static route

-def route going to center router

-not changing the LAN IP

 

And just in case, does the solution involves the right type of static-recursive, direct, fully specified?

 

The config is below,

//////////////////////////////R2/////////////////////////////

!
interface FastEthernet0/0
description Gateway of LAN
ip address 10.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
description Link to R1(center router)
ip address 192.168.1.2 255.255.255.0
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
ip flow-export version 9

////////////////////////////////R1/////////////////////////

interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
description link to R2(left router)
ip address 192.168.1.1 255.255.255.0
clock rate 2000000
!
interface Serial3/0
description link to R3(right router)
ip address 192.168.2.1 255.255.255.0
clock rate 2000000
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
ip route 10.1.1.0 255.255.255.0 192.168.1.2
ip route 10.1.1.0 255.255.255.0 192.168.2.2
!
ip flow-export version 9
!

//////////////////////////////////R3/////////////////////////////////////////

!
interface FastEthernet0/0
description gateway of LAN
ip address 10.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
description Link to R1(center router)
ip address 192.168.2.2 255.255.255.0
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.2.1
!
ip flow-export version 9
!

 

 

 

Thank you in advanced

1 Accepted Solution

Accepted Solutions

Hello

instructed by whom?

 

The way your topology is setup default static routing won’t work unless the person who has instructed you means to  apply static routes just for eachend host and not the subnet if that’s the case then it would work

 

The host routes would be like-

 

ip route 10.0.0.10 255.255.255.255 192.168.1.1

 

Ip route 10.0.0.20 255.255.255.255 192.168.2.1 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

12 Replies 12

a.alekseev
Level 7
Level 7
create host static route

Hi, both the hosts have same IP

What are you trying to do?

Actually this is just a part of a bigger network, however i am having trouble regarding this problem. Also, i am not allowed to add nat or dynamic routing protocol to the network. Just static

you can create NAT instead the Static Route on R1

Hi yeharold, if i can only use NAT, it would work but i am strictly instructed to just use static route

Hello

you have a network which is discontinuous (10.0.0.0/24) separated by a transit router

 

So unless you apply some nat translation you will still experience your issue with the two default statics unless you reconfigure one side with a different network range


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Thanks Paul, but i am instructed to just only use static route.

Hello

instructed by whom?

 

The way your topology is setup default static routing won’t work unless the person who has instructed you means to  apply static routes just for eachend host and not the subnet if that’s the case then it would work

 

The host routes would be like-

 

ip route 10.0.0.10 255.255.255.255 192.168.1.1

 

Ip route 10.0.0.20 255.255.255.255 192.168.2.1 

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

I also would like to know who instructed you on this and like to know what they are trying to accomplish. If we look carefully at the diagram it really is more than discontiguous network. Both hosts in the diagram have exactly the same IP address of 10.1.1.100. You can not have two hosts in two different parts of the network use exactly the same IP address. What appears to be in the instructions can not be accomplished - not even with nat or anything like that. 

 

HTH

 

Rick

HTH

Rick

Noted sir. Thanks for the advice sir richard, i guess i would just apply the solution suggested by paul. Maybe rhat would work

Thank you, maybe that will do. initially, the users on both network have rhe same ip. It is like, they are exactly the same network connected to a router using static route. But maybe i could change the host ip and apply the static route. Thank you very muchhhhhhh.👏👏👏👏👏
Review Cisco Networking for a $25 gift card