IOS: Static Route on Interface

IOS: Static Route on Interface

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
IOS: Static Route on Interface linkwood 12-14-2004
Posted by linkwood on December 14, 2004, 9:00 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
I've got a C2600 where I add a static route on the eth interface.
Why does this static route stay active even when the interface is down?

eg.
interface ethernet 0/0
ip address 192.168.1.1 255.255.255.0
ip route 192.168.100.0 255.255.255.0 192.168.1.10

usually static routes are inactive as soon as the next-hop is unreachable...

thnx


Pure Networks
Posted by Ben on December 14, 2004, 9:14 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
linkwood wrote:
> I've got a C2600 where I add a static route on the eth interface.
> Why does this static route stay active even when the interface is down?
>
> eg.
> interface ethernet 0/0
> ip address 192.168.1.1 255.255.255.0
> ip route 192.168.100.0 255.255.255.0 192.168.1.10
>
> usually static routes are inactive as soon as the next-hop is
> unreachable...
>
> thnx
Simplest answer is the next hop must still be reachable. Can you post a
show ip route?


Posted by Barry Margolin on December 15, 2004, 12:37 am
If you were  Registered and logged in, you could reply and use other advanced thread options

> I've got a C2600 where I add a static route on the eth interface.
> Why does this static route stay active even when the interface is down?
>
> eg.
> interface ethernet 0/0
> ip address 192.168.1.1 255.255.255.0
> ip route 192.168.100.0 255.255.255.0 192.168.1.10
>
> usually static routes are inactive as soon as the next-hop is unreachable...

Cisco performs recursive route lookup. So it will look in the routing
table to determine how to reach 192.168.1.10, in order to use that
static route.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


Posted by Johannes Resch on December 16, 2004, 8:24 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
On 2004-12-14 21:00, linkwood wrote:
> I've got a C2600 where I add a static route on the eth interface.
> Why does this static route stay active even when the interface is down?
>
> eg.
> interface ethernet 0/0
> ip address 192.168.1.1 255.255.255.0
> ip route 192.168.100.0 255.255.255.0 192.168.1.10
>
> usually static routes are inactive as soon as the next-hop is
> unreachable...

you need to include the interface in the static route to achieve this.

for your setup, it would be:

ip route 192.168.100.0 255.255.255.0 eth0/0 192.168.1.10

also, the route now has an admin distance of 0 (directly connected)
instead of 1 (default for static route).


HTH,
-jr


Similar ThreadsPosted
Need to route SMTP traffic through static interface (not default route) March 27, 2007, 5:19 pm
static route, next hop vs interface question. January 15, 2006, 6:17 pm
PIX 515E 7.01 static route in the same interface May 16, 2006, 11:20 am
Virtual Tunnel Interface Flapping - Route Redistribution: static->RIP->OSPF July 12, 2007, 2:44 pm
What is the default precedence: local-route, static-route, OSPF-route? August 4, 2008, 3:00 am
Can netwrok run static route and dynamic route the same time? December 1, 2005, 1:18 pm
how to set a Static route in an 837 March 7, 2005, 8:38 pm
static route October 3, 2005, 6:15 am
Static Route that won't go away September 8, 2006, 11:18 am
Which is better - static route or NAT? September 26, 2006, 3:30 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map