redistributing a static route that is installed by object tracking

Unanswered Question
Apr 19th, 2007
User Badges:

I am running RIP and currently redistributing only the default route using the "default-info originate" command. This router also has two "types" static routes. I use static routes using the simple ip route command and I also have static routes that are installed by an object tracking process. I would like to also distribute ONLY the static routes that are installed by object tracking. Is this possible?

Also, I see that there are two commands that look very similar but I can't tell the difference between them. What is the difference between "redistib route-map" and "redistri static route-map"?

Maybe these commands can help me do what I need?



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
walleyewiz Fri, 04/20/2007 - 08:31
User Badges:

See if this would work for you:

router rip

redistribute static route-map DENY_RIP_REDIST

ip route Null0 name REDIST_YES

ip route Null0 name REDIST_NO

ip prefix-list DENY_RIP_REDIST seq 5 deny

ip prefix-list DENY_RIP_REDIST seq 10 permit le 32

route-map DENY_RIP_REDIST permit 10

match ip address prefix-list DENY_RIP_REDIST



DIEGO ALONSO Fri, 04/20/2007 - 08:54
User Badges:

Sorry but I am noot clear on how the obj tracking installed routes are selected for redistribution. My router has two types of static routes:

ip route

ip route 1 track 1

The idea is to only redistribute the track routes when the tracked object is up.


walleyewiz Fri, 04/20/2007 - 09:16
User Badges:

ip prefix-list DENY_RIP_REDIST seq 5 deny

ip prefix-list DENY_RIP_REDIST seq 10 permit le 32

The first line in the prefix-list above would deny your static routes. All other routes are covered by the second line in the prefix-list.

So, when your tracked static route comes up, it will be redistributed.

DIEGO ALONSO Fri, 04/20/2007 - 10:23
User Badges:

So it seems that your approach doesn't really take into account if a route is a tracked route or not. What you are saying is to tag the static routes with a REDIST_YES or REDIST_NO tag and then use this tag in a route-map to determine if the route is to be redistributed. Is this correct?

walleyewiz Fri, 04/20/2007 - 10:39
User Badges:

Actually, the fact that the static route is inserted by tracking is immaterial--the only fact is whether the route is in the routing table or not. If it is there, either redist or not based on the route-map.

One more thing, the REDIST_YES or REDIST_NO was simply a name for illustrative purposes. These routes are not being tagged.


This Discussion