BGP redistribution into OSPF using reachability route-maps

Unanswered Question
Jun 26th, 2009
User Badges:

I am redistributing BGP routes into OSPF. I have a route-map tied to the redistribution. I would like to only redistribute particular routes from BGP into OSPF based on IP reachability. I have configured tracking using "track 1 rtr etc" (IP SLA would be the alternative) and the "rtr 1 etc" command.

I am attempting to use the "set ip next-hop verify-availability 10 track 1" route-map command however this doesn't seem like the appropriate route-map command. A "match ip next-hop verify-availability" style command would make more sense but does not exist.

I only want the routes specified in the prefix-list to be redistributed if "" is available and otherwise NOT redistribute the routes.

I have been able to find no examples which utilise "set ip next-hop verify-availability" with redistribution. Most examples use it with static routes or route-maps tied directly to interfaces etc.

Route-map below:

route-map OSPF-REDIST-ADVERTISMENT permit 10

match ip address prefix-list EBGP-SITE-ROUTES

set ip next-hop verify-availability 10 track 1

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Giuseppe Larosa Fri, 06/26/2009 - 05:19
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

Hello Scott,

>> "set ip next-hop verify-availability 10 track 1"

This command can be used in a route map used for PBR not in a redistribution context.

In redistribution context you can use

match ip next-hop access-list#


match ip route-source access-list#

where you can check the BGP next hop attribute of the BGP routes or the source of the advertisements.

if BGP removes the routes they will be removed from OSPF domain.

In other words you have dynamic routing protocol running object tracking is thought for making static routes aware of indirect failures not involving the state of the outgoing interface.

Or you can see this as a missing feature

Hope to help


scott.stapleton Sun, 06/28/2009 - 17:50
User Badges:

Thanks for the info Giuseppe. Can you or anyone else suggest how I may accomplish this.


This Discussion