HSRP 的配置测试
作者:互联网
HSRP 下创建SLA,TRACK跟踪ICMP通畅性,降低优先级,释放active.对方由standby升级为active
接口下创建HSRP组
standby 1 ip 123.0.0.254 虚拟IP
standby 1 priority 100 优先级
standby 1 preempt 开始抢占
standby 1 track 1 decrement 30 触发降低优先级
ip sla 1 创建SLA
icmp-echo 34.34.34.4 检测ICMP
frequency 5 5秒间隔
ip sla schedule 1 life forever start-time now 现在启用SLA一直到永远
创建track
track 1 ip sla 1 reachability (交换机的指令)
track 1 rtr 1 reachability (路由器的指令)
上行目标路由:
创建ACL 拒绝ICMP,放行其他
ip access-list extended track
deny icmp any any
permit ip any any
挂在接口下
ip access-group track in
标签:standby,ip,配置,HSRP,track,测试,ICMP,any 来源: https://blog.51cto.com/u_354967/2856342