| Author |
Message |
linkwood
Guest
|
Posted:
Wed Dec 15, 2004 1:00 am Post subject:
IOS: Static Route on Interface |
|
|
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 |
|
| Back to top |
|
 |
Ben
Guest
|
Posted:
Wed Dec 15, 2004 2:14 am Post subject:
Re: IOS: Static Route on Interface |
|
|
linkwood wrote:
| Quote: | 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? |
|
| Back to top |
|
 |
Barry Margolin
Guest
|
Posted:
Wed Dec 15, 2004 10:37 am Post subject:
Re: IOS: Static Route on Interface |
|
|
In article <cpngnh$db0$1@news.hispeed.ch>,
linkwood <linkwood@hotmail.com> wrote:
| Quote: | 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 *** |
|
| Back to top |
|
 |
Johannes Resch
Guest
|
Posted:
Fri Dec 17, 2004 12:24 am Post subject:
Re: IOS: Static Route on Interface |
|
|
On 2004-12-14 21:00, linkwood wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
|
|
|
|