User Manual - Configuration Guide (Volume 3)

Chapter 2

Versatile Routing Platform

Configuration of HSRP

xx-xx-xx-xx-xx indicates the first 5 bytes of other virtual MAC addresses, the last byte being the hot standby group’s number. The setting is valid for all HSRP hot standby groups on the configured Ethernet interface.

2.3 Monitoring and Maintaining HSRP

After the configuration, the following commands can be used to turn on the debug switch of HSRP or display relevant information of HSRP so as to monitor and maintain HSRP.

Table LC-2-9Monitoring and maintenance of HSRP

Operation

Command

 

 

Debug HSRP(in the mode of privileged users)

debug standby

Display relevant information of HSRP (in any configuration mode)

show standby

zShow relevant HSRP information Quidway# show standby

Ethernet0 Group Number :

1

 

 

State

: Init

 

Hot Standby

IP

: 103.1.1.5

Priority

:

100

Preempt : no

Hold Time

:

10

Hello Time: 3

Use Virtual

Mac Address

: 00-e0-fc-00-5f-01

The above information includes the standby group that the interface belongs to, state, virtual IP address, priority, preemption, hold-time, hello-time, and virtual MAC address.

Note:

As output of the debugging information affects router’s running efficiency, please don’t turn on the debug switch unless necessary; and please turn it off after debugging.

2.4 Typical Configurations of HSRP

2.4.1 An example for single hot standby group configuration

I. Networking requirements

As shown in the following diagram, hosts A and B take the hot standby group, which consists of Routers A and B, as its default gateway (i.e., specify virtual IP address 202.38.160.111 as its gateway IP address), and they access host C on Internet through this gateway. Normally, it is Router A that fulfils the tasks of the gateway as an active router, if Router A switches off or breaks down, Router B will take over its tasks.

Specific parameters of HSRP hot standby group: standby group number is 0, virtual IP address is 202.38.160.111. Router A is an active router with a priority of 120, and its HSRP is set as preemption so that it can go on with the gateway’s task as an active router after it restores. Router B is a backup router, set as preempted without a priority (i.e., its priority has a default value of 100).

2-6

Page 63
Image 63
Huawei v200r001 user manual Monitoring and Maintaining Hsrp, Typical Configurations of Hsrp