HSRP中track的用法

track 1 ip route 10.1.21.128 255.255.0.0 metric threshold
threshold metric up 1 down 2
track 10 ip route 10.2.21.128 255.255.255.0 metric threshold
threshold metric up 63 down 64
!
interface Vlan10
ip address 10.2.1.1 255.255.255.0
standby 10 ip 10.2.1.254
standby 10 priority 200
standby 10 preempt
standby 10 track 1 decrement 60
!
命令的解释是定义两个track组,组号分别为1和10,用来跟踪10.1.21.128 255.255.0.0和10.2.21.128255.255.255.0这条路由的度量值,
在track 1中,度量值1以下的即可达,2以上的不可达
在track 10中,度量值63以下的即可达,64以上的不可达
只要路由不可达,priority的值即下降60.

通过sh ip route 10.1.21.128 255.255.0.0和sh ip route 10.2.21.128 255.255.255.0即可排查出哪个track被应用

你可能感兴趣的:(interface,Address)