Presents practical configuration examples for static route tracking, illustrating typical deployments, troubleshooting scenarios, and best practices for efficient setup.
Configure Tracker
This example shows how to configure a single static route tracker:
config-transaction
!
endpoint-tracker tracker1
!
tracker-type static-route
endpoint-ip 10.1.1.1
threshold 100
multiplier 5
interval 20
exit
!
track tracker1 endpoint-tracker
!
ip route vrf 1 192.168.0.0 255.255.0.0 10.1.19.16 100 track name tracker1
This example shows how to configure a tracker with TCP port as endpoint:
config-transaction
!
endpoint-tracker tcp-10001
!
tracker-type static-route
endpoint-ip 10.0.0.1 tcp 10001
threshold 100
interval 10
multiplier 1
exit
!
track tcp-10001 endpoint-tracker
!
ip route vrf 1 192.168.0.0 255.255.0.0 10.1.19.16 100 track name tcp-10001
This example shows how to configure a tracker with UDP port as endpoint:
config-transaction
!
endpoint-tracker udp-10001
!
tracker-type static-route
endpoint-ip 10.0.0.1 udp 10001
threshold 100
interval 10
multiplier 1
exit
!
track udp-10001 endpoint-tracker
!
ip route vrf 1 192.168.0.0 255.255.0.0 10.1.19.16 100 track name udp-10001
Configure Tracker Groups
This example shows how to configure a tracker group with two trackers (two endpoints). You can create tracker groups to probe static routes.
config-transaction
!
endpoint-tracker tcp-10001
!
tracker-type static-route
endpoint-ip 10.1.1.1 tcp 10001
threshold 100
multiplier 5
interval 20
track tcp-10001 endpoint-tracker
!
endpoint-tracker udp-10002
!
tracker-type static-route
endpoint-ip 10.2.2.2 udp 10002
threshold 100
multiplier 5
interval 20
track udp-10002 endpoint-tracker
!
endpoint-tracker static-tracker-group
!
tracker-type tracker-group
tracker-elements tcp-10001 udp-10002
boolean and
track static-tracker-group endpoint-tracker
!
ip route vrf 1 192.168.0.0 255.255.0.0 10.1.19.16 100 track name static-tracker-group
You must configure an administrative distance when you are configuring through CLI templates.
Use the ip route command to bind the tracker or tracker group with a static route and to configure a backup route for administrative distance when it is higher than the default value of 1.
You can apply only one tracker to an endpoint.