Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Static Route issue

I'm looking for a solution.

I have two static routes,

ip route 192.168.0.0 255.255.255.0 10.10.30.254

and

ip route 192.168.0.0 255.255.255.0 1.1.1.254 200

My issue is this, if the primary WAN interface fails my static route with admin of 1 will stay in place and never dial the backup connection thru the ISDN dialer inteface.

What can I do so that if the primary WAN route of ip route 192.168.0.0 255.255.255.0 10.10.30.254 fails, and I want the second route to kick in for backup connectivity?

I'm limited on IOS unfortunately, IOS is c2600-i-mz_121-6.BIN

2 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Super Bronze

Re: Static Route issue

Try using

ip route 192.168.0.0 255.255.255.0 [interface name]

The route will only be installed if the interface is up/up.

Bronze

Re: Static Route issue

Hi

when you use IP address as default gateway it will take default metric 1 , but when you use serial indiface ( metrix 0 )as gateway it will flow the traffic when interface is up and opernational

i hope this will solve your problem , please rate this post.

-Minu

7 REPLIES
Hall of Fame Super Bronze

Re: Static Route issue

Try using

ip route 192.168.0.0 255.255.255.0 [interface name]

The route will only be installed if the interface is up/up.

Bronze

Re: Static Route issue

Hi

when you use IP address as default gateway it will take default metric 1 , but when you use serial indiface ( metrix 0 )as gateway it will flow the traffic when interface is up and opernational

i hope this will solve your problem , please rate this post.

-Minu

Hall of Fame Super Silver

Re: Static Route issue

Minu

I believe that you are suggesting that a static route using a next hop will have an Administrative Distance of 1 but a static route using a serial interface will have Administrative Distance of 0. This is commonly believed but it is not true. Both static routes will have Administrative Distance of 1.

I suspect that the issue is that in the original post that the static route is pointing to a next hop address reachable over a LAN interface. In this case there are many situations where the address becomes unreachable but the outbound interface is still up up and therefore the static route remains in the routing table and the floating static route is never activated.

Cisco has supplied a solution for this issue with a feature called Reliable Static Routes with Obect Tracking. Unfortunately that is available in recent versions of IOS but the original post indicates that they are limited to an older version of IOS. I am not aware of a solution to this in the older IOS.

HTH

Rick

Silver

Re: Static Route issue

Could you advise what WAN interface are you using ? If it is not a LAN interface then there should no issue to let the interfac down.

If the interface will not down even the link down and you cannot use object tracking feature. You may enable dynamic routing protocol in the WAN link only. If the WAN down, the routing table of the 192.168.0.0/24 will disappear and the floating static route appear in the routing table.

Hope this helps.

New Member

Re: Static Route issue

Please check the routing table to see

if there is a route entry for 10.10.30.254(next-hop).

eg, if 10.10.0.0/16 exists in the routing table, the first static route will never go down.

HGL

Silver

Re: Static Route issue

If 10.10.30.254 is not the remote host IP. Please configure the static route to point to the remote next-hop IP.

Hope this helps.

New Member

Re: Static Route issue

More details,

The WAN interface is frame relay with point to point subinterface. I did as the first post suggested to route out the interface vs the next hop. I shut down the subinterface and the routing table in fact had removed the static route and ISDN backup router with admin of 254 kicked in and worked. So I see this as a valid solution unless some other solution exists that I am not aware of. Thanks for all your posts.

118
Views
0
Helpful
7
Replies