cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
324
Views
0
Helpful
2
Replies

originating default route conditional on link status

elanbeer
Level 1
Level 1

Does anyone know of a way for a router to originate a default route only if a specific interface link status is up. In other words, if E0 is up, then the router will send a default route to its E1 interface. If however E0 goes down, the router stops advertising itself to be the default router via its E1 interface.

2 Replies 2

Erick Bergquist
Level 6
Level 6

What routing protocol are you using?

I haven't tried this but something along these lines should work.

If you redistribute the default route into the protocol you use with a route-map with a "match interface e0" then the default route should only be redistributed if e0 is up.

You can also do conditional defaults in ospf using a route map after the default information originate command. Or you could point the static at the interface you are trying to track.

Some new tracking stuff is coming into ios that will (I hope) make this sort of thing easier, and EIGRP should be getting the defualt information originate command at some point, I think.

Russ