track
Hey guys,
I am a little confused on tracking a route. Say I HSRP and I have a route to a partner's network I want to track. So I create a tracked object correct? (see code) Since this is a static route, it should have a metric of one. if it has a metric of anything other than 1 (since there is only 1 route there) it would then go down. Correct?
When I run a show track it always shows as down even through it's perfectly pingable and in the routing table. I feel like I am fundamentally not getting this command. All the googling I have done with this command leads me to IP SLA, which is not what I am looking for.
Configured code
show track
I am a little confused on tracking a route. Say I HSRP and I have a route to a partner's network I want to track. So I create a tracked object correct? (see code) Since this is a static route, it should have a metric of one. if it has a metric of anything other than 1 (since there is only 1 route there) it would then go down. Correct?
When I run a show track it always shows as down even through it's perfectly pingable and in the routing table. I feel like I am fundamentally not getting this command. All the googling I have done with this command leads me to IP SLA, which is not what I am looking for.
Configured code
track 20 ip route 192.168.1.1 255.255.255.0 metric threshold threshold metric up 1 down 2 !
show track
Router#show track Track 20 IP route 192.168.1.1 255.255.255.0 metric threshold Metric threshold is Down (no route) 1 change, last change 00:01:43 Metric threshold down 1 up 0 First-hop interface is unknown
-Daniel
Comments
-
mochaaddict Member Posts: 42 ■■□□□□□□□□If you are tracking for HSRP, wouldn't you use HSRP command via the standby # track interface? And then change the decrement at the end of that?
-
pham0329 Member Posts: 556It's looking for 192.168.1.1 255.255.255.0 in your routing table. You need to change it to 192.168.1.0 255.255.255.0
If it's a static route, why don't you just use reachability rather than metric?