Explanation/Reference:
Explanation:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
track object-number {interface interface-id{line-protocol | ip routing} | ip route ip-address/prefix-length
{metric threshold | reachability} | list {boolean {and | or}} | {threshold {weight | percentage}}} (Optional) Create a tracking list to track the configured state and enter tracking configuration mode.
The object-number range is from 1 to 500.

Enter interface interface-id to select an interface to track.

Enter line-protocol to track the interface line protocol state or enter ip routing to track the interface IP

routing state.
Enter ip route ip-address/prefix-length to track the state of an IP route.

Enter metric threshold to track the threshold metric or enter reachability to track if the route is

reachable.
The default up threshold is 254 and the default down threshold is 255. Enter list to track objects grouped in a list. Configure the list as described on the previous pages.

Note Repeat this step for each interface to be tracked.

References: