cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7332
Views
25
Helpful
6
Replies

Tracking an IP route within a VRF

pbelletty
Level 1
Level 1

Hi Folks,

 

The command to track a route is 

 

track <track number> ip route <ip address> <mask> reachability

 

This assumes that the route is in the global routing table.

 

What if you want to track a route that is in a VRF. There does not appear to be a way of doing this as the above command is not vrf aware.

 

Any idea how this could be done?

 

Look forward to hearing from you.

 

Phil

1 Accepted Solution

Accepted Solutions

Hello

You can do this in the track command it self

 

example:
ip vrf stan
 rd 1:10

track 10 ip route 1.1.1.1/32 reachability
 ip vrf stan

res
Paul

sent from iphone


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

6 Replies 6

Hi

If you are using IP SLA it should be included into the VRF as well. 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Many thanks for the reply.

 

Unfortunately I am not using IP SLA as I do not wish to generate any additional traffic, I just want to monitor the existence of a route which I have already learnt via bgp.

 

Any other thoughts?

 

Regards,

Phil 

Hi

 

I think I have found the solution.

 

After entering the track command you can enter a sub command to specify the vrf eg..

 

track 99 ip route 10.10.10.10 255.255.255.255 reachability
ip vrf red
!

This is configurable in version 15.2.4

 

I'll give it a try in a live environment and let you know how I get on.

 

Phil

ok thank you.




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hello

You can do this in the track command it self

 

example:
ip vrf stan
 rd 1:10

track 10 ip route 1.1.1.1/32 reachability
 ip vrf stan

res
Paul

sent from iphone


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi All

 

Thanks for all the replies and your help in finding a solution.

 

Phil

Review Cisco Networking products for a $25 gift card