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. And see here for current known issues.

New Member

How to tell if static route is being used in IOS 12.1(13)?

In a 7206 I initially use the default route to get to host a.b.c.d. Now I want to change that to a static route; i.e. 'ip route a.b.c.d 255.255.255.255 w.x.y.z', where w.x.y.z is the address that default route points to. (I have a reason for doing this.) I can ping a.b.c.d, but how can I tell if the static route is being used and not the default route ? Is there an IOS command that will show me, like an ACL or something?

2 ACCEPTED SOLUTIONS

Accepted Solutions
New Member

Re: How to tell if static route is being used in IOS 12.1(13)?

The underlying principle here is that a more specific route will be preffered to a less specific route. Default route is used only when the router does not know about a particular network. In your case it sounds like it does, therefore, it uses a more specific route.

New Member

Re: How to tell if static route is being used in IOS 12.1(13)?

type "sh ip route a.b.c.d" ..... if you get .....

Router#sh ip route a.b.c.d

% Network not in table

Then the default route is being used.

regards

3 REPLIES
New Member

Re: How to tell if static route is being used in IOS 12.1(13)?

The underlying principle here is that a more specific route will be preffered to a less specific route. Default route is used only when the router does not know about a particular network. In your case it sounds like it does, therefore, it uses a more specific route.

New Member

Re: How to tell if static route is being used in IOS 12.1(13)?

TRACE XXX.XXX.XXX.XXX

New Member

Re: How to tell if static route is being used in IOS 12.1(13)?

type "sh ip route a.b.c.d" ..... if you get .....

Router#sh ip route a.b.c.d

% Network not in table

Then the default route is being used.

regards

100
Views
0
Helpful
3
Replies