User Manual - Configuration Guide (Volume 3)
Versatile Routing Platform Chapter 2
Configuration of HSRP
2-8
2.4.2 An example for setting HSRP to monitor a specified interface
I. Networking requirements
As shown in the above diagram, even if Router A can still work norm ally, once its
interface that connects Internet fails, Router B will take over its work. And this can b e
achieved by configuring a monitoring interface.
Normally, Router A shall fulfil the tasks of the gateway. Once the WAN interface Serial 0
of Router A becomes disabled, the priority of Router A will be reduced by 30, which is
lower than that of Router B. Therefore Router B preempts to become the active router
and starts working as the gateway. Once interface Serial 0 of Router A recovers,
Router A can go on with the work of the gateway as an active router.
In this example, the number of the hot standby group is 1, and configur ations of
authorization word and timer are added (they aren’t a must in this applic ation, though.)
II. Networking diagram
It’s the same as the networking diagram in “HSRP single hot standby group
configuration”.
z Configure Router A:
! Start HSRP function and set it to be in No. 1 HSRP hot standby group, its virtual IP
address is 202.38.160.111.
Quidway(config-if-Ethernet0)# standby 1 ip 202.38.160.111
! Set this router to work in preemption mode in No. 1 HSRP hot standby group.
Quidway(config-if-Ethernet0)# standby 1 preempt
! Set this router to have a priority of 120 in No. 1 HSRP hot standby group.
Quidway(config-if-Ethernet0)# standby 1 priority 120
! Set the authentication word of No. 1 HSRP hot standby group to be “quidway”.
Quidway(config-if-Ethernet0)# standby 1 authentication quidway
! Set hello-time of No. 1 HSRP hot standby group to 5 seconds, and hold-time to 15
seconds.
Quidway(config-if-Ethernet0)# standby 1 timers 5 15
! Set the priority of this router to reduce by 30 once HSRP monitoring interface Serial 0
turns disabled.
Quidway(config-if-Ethernet0)# standby 1 track serial0 30
z Configure Router B:
! Start HSRP function and set it to be in No. 1 HSRP standb y group, its virtual IP
address being 202.38.160.111.
Quidway(config-if-Ethernet0)# standby 1 ip 202.38.160.111
! Set this router to be in the preemption mode in No. 1 HSRP hot standby grou p.
Quidway(config-if-Ethernet0)# standby 1 preempt
! Set the authentication word of No. 1 HSRP hot standby group to be “quidway”.
Quidway(config-if-Ethernet0)# standby 1 authentication quidway