IOS: Static Route on Interface
DComTalk.com Forum Index DComTalk.com
Discussion of VoIP, VPN, Video Conferencen, DSL and other data commucations.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web dcomtalk.com
IOS: Static Route on Interface

 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Cisco
Author Message
linkwood
Guest





Posted: Wed Dec 15, 2004 1:00 am    Post subject: IOS: Static Route on Interface Reply with 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
Back to top
Ben
Guest





Posted: Wed Dec 15, 2004 2:14 am    Post subject: Re: IOS: Static Route on Interface Reply with quote

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 Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Cisco All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Solutions: Telephone Systems Electronics Satellite TV Tech & Gadgets
Powered by phpBB