Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

originating default route conditional on link status

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

Re: originating default route conditional on link status

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.

Gold

Re: originating default route conditional on link status

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

127
Views
0
Helpful
2
Replies
CreatePlease to create content