Boolean Object Tracking

Object Tracking
Object Tracking通过跟踪已定义对象的组合状态来工作,并与以下布尔函数一起使用:
AND – 它要求track列表中定义的所有对象都已UP。
OR——它要求至少有一个实例处于UP状态。

 

 

 

ip sla 1
icmp-echo 192.168.1.1 source-interface Vlan999
timeout 9000 <————- the time configured , in milliseconds, that the router waits for a response
frequency 15 <—————- sends probes every 15 seconds
track 1 ip sla 1 reachability
ip sla 2
icmp-echo 100.100.100.100  source-interface FastEthernet4
timeout 9000           <———–the time configured , in milliseconds, that the router waits for a response
frequency 15       <—————– sends probes every 15 seconds
ip sla schedule 2 life forever start-time now

track 2 ip sla 2 reachability
track 3 list boolean and
object 1           < ——————   track 1
object 2            <—————— track 2
interface Vlan1
ip address 192.168.0.2 255.255.255.0
standby 1 ip 192.168.0.1                   <———-   Virtual HSRP IP Address
standby 1 priority 150                        <———-   Configured priority
standby 1 preempt                             <———–  Preemption required to be enabled
standby 1 track 3 decrement 60      <———–  If the tracking list is down the priority decrements by 60, becomes 90 which is under 100, and the router switches to standby mode
Cisco@Networkstraining# show track 3
Track 3
List boolean and
Boolean AND is Up
1 changes, last change 1d10h
object 1 Up
object 2 Up
Tracked by:
HSRP Vlan1 1

https://www.networkstraining.com/configuring-high-availability-using-hsrp-and-boolean-object-tracking/

 

posted @ 2022-07-11 16:33  剪刀石头布Cheers  阅读(199)  评论(0编辑  收藏  举报