Configure and verify tracking objects
Exam: Cisco 300-101 - CCNP Implementing Cisco IP Routing (ROUTE v2.0)
- Tracking objects
- Tracking different entities (for example, interfaces, IPSLA results)
Object tracking allows you to track objects on a device for their state change and take different configuration actions when the state of the object changes. The tracked object is periodically polled for its state change. The state of the object can be up or down. The examples of the objects that can be tracked are:
- IP routing state: You can track whether the interface is configured with IPv6 or IPv4 address configurations and whether routing is enabled and active on the interface or not.
- Interface Line protocol state: You can track whether the line protocol state of an interface is up or down.
- IP route reachability: You can track whether an IPv4 or IPv6 route exists and is reachable from a local device.
You can create tracked objects and use the same tracking objects for multiple clients to modify the client behavior when the client object changes. Each tracked object can be identified with a unique identifier that can be used by clients to take different actions when the state of the object changes.
Tracking Different Entities
You can track multiple objects using a list that can be created by combining objects with Boolean and / or logic.
Tracking Interface Line protocol state
Enter global configuration mode
RouterR1# configure
Enters track configuration mode withtrack<track-name> command. Specify the name of the tracking object, as shown below.
RouterR1(config)# track mytrackobject
Specify the type of the tracking object as line protocol of an interface to enter into configuration mode.
RouterR1(config-track)# type line-protocol state
Configure the interface withinterface<type> <interface-path-id> command. The interface path id identifies whether the interface is physical or virtual.
You can useshow interfacecommand, if required to find out the interfaces configured on the router.
RouterR1(config-track-line-prot)#interface atm 0/2/0/0.1
Configure the wait time for polling the object to check its state usingdelay{up<seconds> |down<seconds > command. When you specify the delay, the system waits for the specified number of seconds before polling the interface for its state
RouterR1(config-track)# delay up 10
Associate a service-ipsec interface with the tracked interface (ATM in this case) so that when the state of the interface goes up/down the state of the service-ipsec interface follows it. The service-ipsec interface can range between 1-65535.
Use syntax:interface{service-gre< numeric-name> |service-ipsec<numeric-name> }
RouterR1(config-track)# interface service-ipsec 23
Associate a track object with the IP Sec or GRE interface usingline-protocol track<object-name. Now when the state of the tracking object will change the state of the IP sec interface will also change.
RouterR1(config-if)# line-protocol track mytestipsectrack
Commit the changes and exit
RouterR1(config-track)# commit
Tracking IP Route Reachability
The IP route reachability tracking allows you to configure the routing process to notify the tracking process when the route state changes due to a routing update. This helps in finding out whether a route reachable or not in. The situation may arise when a host or a network has gone down on a remote site. In such a case, the routing protocols notify the router and the routing table is updated accordingly.
Enter global configuration mode
RouterR1# configure
Enters track configuration mode withtrack<track-name> command. Specify the name of the tracking object, as shown below.
RouterR1(config)# track mytrackobject
Configure the VPN routing and forwarding (VRF) table to notify when the state of the route changes and routing table updated.
RouterR1(config-track)# type route reachability vrf internet
Configure the IP route to be tracked. You can configure vrf using vrf-table-name command or configure IP-prefix that consists network and subnet mask using IP-prefix/mask command
RouterR1(config-track-route)# vrf vrf-table-4
or
RouterR1(config-track-route)# route ipv4 10.50.8.10/16
Configure the wait time for polling the object to check its state usingdelay{up<seconds> |down<seconds > command . When you specify the delay, the system waits for the specified number of seconds before polling the interface for its state
RouterR1(config-track)# delay up 10
Associate a service-ipsec interface with the trackked interface (ATM in this case) so that when the state of the interface goes up/down the state of the service-ipsec interface follows it. The service-ipsec interface can range between 1-65535.
Use syntax:interface{service-gre< numeric-name> |service-ipsec<numeric-name> }
RouterR1(config-track)# interface service-ipsec 23
Associate a track object with the IP Sec or GRE interface usingline-protocol track<object-name. Now when the state of the tracking object will change the state of the IP sec interface will also change.
RouterR1(config-if)# line-protocol track mytestipsectrack
Commit the changes and exit
RouterR1(config-track)# commit
Tracking the Reachability of an IP SLAs IP Host
Through tracking you can track the reachability of an IP SLAs IP host. The following example shows that code that you can use to track the reachability of an IP SLAs IP host
Enter global configuration mode
RouterR1# configure
Enters track configuration mode withtrack<track-name> command. Specify the name of the tracking object, as shown below.
RouterR1(config)# track mytrackobject
Enter into tracking configuration mode and then specify the IP SLAs IP host for which you want to track the reachability usingtrack<object-number> ip sla <operation-number>reachability
Router(config)# track 2 ip sla 4 reachability
Configure the wait time for polling the object to check its state usingdelay{up<seconds> |down<seconds > command. When you specify the delay, the system waits for the specified number of seconds before polling the interface for its state
RouterR1(config-track)# delay up 10
Commit the changes and exit
RouterR1(config-track)# commit
Verify Tracking
To verify tracking, you can use the following commands.
- Useshowtrack<object-number> command to view the tracking information of the object(s)
- Useshow track<object-number>interfacecommand to view the tracking information of the interface
- Useshow track<object-number> {ip|ipv6}routecommand to view the tracking information of the IPv4 or IPv6 route-based objects
Example Question
Which of the following objects would you track to find out whether routing is enabled and active on an interface or not?
- Interface Line protocol state
- IP route reachability
- IP routing state
- None of these
Answer 3
IP routing state allows you to track whether the interface is configured with IPv6 or IPv4 address configurations and whether routing is enabled and active on the interface or not.
Related IT Guides
- Configure and verify device management
- Configure and Verify eBGP (IPv4 and IPv6 address families)
- Configure and Verify OSPF for IPv6
- Configure and verify policy-based routing
- Configure and verify switch administration
- Explain Frame Relay
- Explain TCP operations
- Identify Cisco Express Forwarding concepts
- Identify IPv6 addressing and subnetting
- Identify, configure, and verify IPv4 addressing and subnetting