其中,<group-number>
是VRG的编号,<delay-seconds>
是指定的抢占延迟时间(以秒为单位),<reload-seconds>
是指定的重新加载延迟时间(以秒为单位),<password>
是指定的MD5认证密码。
启用以下命令启用HSRP:
RouterA(config-if)# standby <group-number> priority <priority-value>
RouterA(config-if)# standby <group-number> preempt
RouterA(config-if)# standby <group-number> authentication md5 key-string <password>
RouterA(config-if)# standby <group-number> track <interface> <threshold>
RouterA(config-if)# standby <group-number> timers <hello-time> <hold-time>
RouterA(config-if)# standby <group-number> ip <virtual-ip-address>
RouterA(config-if)# standby <group-number> name <group-name>