Enhanced Object Tracking – Boolean Operator

August 21, 2008 at 5:38 pm | Posted in IOS services | Leave a comment

Object tracking can support boolean operators (and / or), to enable us to create a complex tracking object for a complex tracking task.

Scenario example:

Configure the router in such a way that if 12.0.0.1 is not reachable, AND route 123.0.0.0/8 is lost, the router should change HSRP status from active to standby.

Configuration:

R1#
ip sla monitor 50
type pathEcho protocol ipIcmpEcho 12.0.0.2 source-ipaddr 12.0.0.1
timeout 200
frequency 3
ip sla monitor schedule 50 start-time now

track 50 rtr 50

track 100 ip route 123.0.0.0 255.0.0.0 reachability

track 200 list boolean or
object 50
object 100

interface FastEthernet0/0
ip address 10.1.0.21 255.255.0.0
speed 100
full-duplex
standby 1 ip 10.1.0.1
standby 1 priority 110
standby 1 preempt
standby 1 track 200 decrement 50

Verification

R1#sh ip sla monitor operational-state 50
Entry number: 50
Modification time: 16:20:11.891 UTC Thu Aug 21 2008
Number of Octets Used by this Entry: 53816
Number of operations attempted: 11
Number of operations skipped: 0
Current seconds left in Life: 3567
Operational state of entry: Active
Last time this entry was reset: Never
Connection loss occurred: FALSE
Timeout occurred: FALSE
Over thresholds occurred: FALSE
Latest RTT (milliseconds): 120
Latest operation start time: 16:20:41.915 UTC Thu Aug 21 2008
Latest operation return code: OK

R1#sh track 50
Track 50
Response Time Reporter 50 state
State is Up
1 change, last change 00:00:14
Latest operation return code: OK
Latest RTT (millisecs) 68

R1#sh track 100
Track 100
IP route 123.0.0.0 255.0.0.0 reachability
Reachability is Down (no route)
1 change, last change 00:00:15
First-hop interface is unknown

R1#sh track 200
Track 200
List boolean or
Boolean OR is Up
2 changes, last change 00:00:37
object 50 Up
object 100 Down

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: