Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floating Static Routes

Status
Not open for further replies.

markrailton

IS-IT--Management
Nov 3, 2009
4
ZA
Hi all,

new to the forums but i could really use some guidance,

i got a floating static route issue, i have setup a basic sim to test this basically i have 2 pc's each in their own network.

pc0 = 192.168.0.1 /24 pc1 = 172.16.2.1 /24 , with 2 routers.

router0 config:
#########################
Router0#sho run
!
version 12.4
!
hostname Router
!
interface FastEthernet0/0
ip address 172.16.2.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.0.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1/0
ip address 4.4.4.1 255.255.255.252
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 200
ip route 0.0.0.0 0.0.0.0 Serial0/1/0
!
#######################
Router1 config:

Router#sho run
!
version 12.4
!
hostname Router
!
interface FastEthernet0/1
ip address 172.16.2.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/1/0
ip address 4.4.4.2 255.255.255.252
clock rate 128000
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/1/0
ip route 0.0.0.0 0.0.0.0 172.16.2.3 200
!
#####################

when i traceroute from the pc 172.16.2.1 to 192.168.0.1, it takes the default route "ip route 0.0.0.0 0.0.0.0 172.16.2.3 200" even tho the other default routes AD is lower.

any suggestions, im still new to this and currently studying towards CCNA.


Thanks in advance


 
are these two different AS? what routing protocal are you using? just static?

paste sh ip route for both routers
 
Post what the topology looks like.

/

tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
Use the actual peer's IP address instead of the interface and your routing should work as expected.

BEFORE
Code:
interface Serial0/1/0
  ip address 4.4.4.2 255.255.255.252
ip route 0.0.0.0 0.0.0.0 Serial0/1/0
ip route 0.0.0.0 0.0.0.0 172.16.2.3 200

AFTER
Code:
interface Serial0/1/0
  ip address 4.4.4.2 255.255.255.252
ip route 0.0.0.0 0.0.0.0 4.4.4.1
ip route 0.0.0.0 0.0.0.0 172.16.2.3 200
 
hi guys,

didnt work out for me, but i've uploaded a picture of the layout,


all this is static routes no AS no dynamic routing basic basic basic static routes.

in the configs all routes are mentioned. but even with the high AD on the 1 route its still prefered.


in the picture the line with the red dots mean its down which im simulating a line failure so when i trace from pc 0 to pc 1 i get timeouts even tho the serial line on router 1 is available.

im completely stumped, only thing i can think of is that the router is just forwarding the router onto 172.16.2.3 as pc 1 sits on the same subnet so the router just forwards onto it and because i shutdown the f0/0 int on router0 it just doesnt reach it.


hope i given enough information !


Thanks a million
 
Hello
What's happening is normal PC1 is directly connected 172.16.2.0/24,so it's going to pass the traffic through the switch to Router0.
Your network design isn't correct for testing floating static routes.Get a RJ45 UTP crossover cable and connect the two 1841's FastEthernet0/1 interfaces.Then move the switch behind Router1,using the FastEthernet0/0,plug the PC1 into the switch.Create another subnet for this LAN (you need a total of 4 subnets).
Also a default route isn't very clean in this design.It's more Cisco to use a static route with the subnets you want to reach.Like the below.

ip route 192.168.0.0 255.255.255.0 4.4.4.1
ip route 192.168.0.0 255.255.255.0 172.16.2.3 200

In case you don't have a cross-over cable let me know,so I can show you a work around, by creating a VLAN on the switch.
Please feel free to ask if you have any doubts.

Regards





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top