R3204P16-HP Load Balancing Module High Availability Configuration Guide-6PW101
31
Enabling the trap function of VRRP
After the trap function is enabled for a VRRP module, the VRRP module will generate traps with severity
level errors to report its key events. The generated traps will be sent to the information center of the LB
module, where you can configure whether to output the trap information and the output destination. For
more information about information center configuration, see System Management Configuration
Guide.
Follow these steps to enable the trap function of VRRP:
To do… Use the command…
Remarks
Enter system view system-view —
Enable the trap function of
VRRP
snmp-agent trap enable vrrp
[ authfailure | newmaster ]
Optional
Enabled by default.
Displaying and maintaining VRRP
To do… Use the command…
Remarks
Display VRRP group status
display vrrp [ verbose ] [ interface interface-type
interface-number [ vrid virtual-router-id ] ]
Available in any view
Display VRRP group
statistics
display vrrp statistics [ interface interface-type
interface-number [ vrid virtual-router-id ] ]
Available in any view
Clear VRRP group statistics
reset vrrp statistics [ interface interface-type
interface-number [ vrid virtual-router-id ] ]
Available in user view
VRRP configuration examples
This section provides the following configuration examples:
• Single VRRP group configuration example
• VRRP interface tracking configuration example
• Multiple VRRP groups configuration example
• VRRP load balancing mode configuration example
Single VRRP group configuration example
1. Network requirements
• Host A needs to access Host B on the Internet, using 202.38.160.111/24 as its default gateway.
• LB A and LB B belong to VRRP group 1 with the virtual IP address of 202.38.160.111/24.
• If LB A operates normally, packets sent from Host A to Host B are forwarded by LB A; if LB A fails,
packets sent from Host A to Host B are forwarded by LB B.