User Manual - Configuration Guide (Volume 3)

Chapter 2

Versatile Routing Platform

Configuration of HSRP

2.4.2An 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 normally, once its interface that connects Internet fails, Router B will take over its work. And this can be 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 configurations of authorization word and timer are added (they aren’t a must in this application, though.)

II. Networking diagram

It’s the same as the networking diagram in “HSRP single hot standby group configuration”.

zConfigure 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

zConfigure Router B:

!Start HSRP function and set it to be in No. 1 HSRP standby 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 group. 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

2-8

Page 65
Image 65
Huawei v200r001 user manual An example for setting Hsrp to monitor a specified interface