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/

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章