Purpose
Command or Action
•
Use the
commit
command to save the configuration
changes to the running configuration file and remain
within the configuration session.
Configuration Examples for Configuring Object Tracking
Tracking Whether the Interface Is Up or Down: Example
track connection100
type list boolean and
object object3 not
delay up 10
!
interface service-ipsec 23
line-protocol track connection100
!
Tracking the Line Protocol State of an Interface: Example
In this example, traffic arrives from interface service-ipsec1 and exits through interface GigabitEthernet
0/0/0/3:
track IPSec1
type line-protocol state
interface gigabitethernet0/0/0/3
!
interface service-ipsec 1
ipv4 address 70.0.0.1 255.255.255.0
profile vrf1_profile_ipsec
line-protocol track IPSec1
tunnel source 80.0.0.1
tunnel destination 80.0.0.2
service-location preferred-active 0/0/1
!
Displaying the Line Protocol State of an Interface: Example
This example displays the output from the
show track
command after performing the previous example:
RP/0/RP0/CPU0:router#
show run track
Track IPSec1
Interface GigabitEthernet0_0_0_3 line-protocol
!
Line protocol is UP
1 change, last change 10:37:32 UTC Thu Sep 20 2007
Tracked by:
service-ipsec1
!
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
55
Implementing Object Tracking
Configuration Examples for Configuring Object Tracking