R3303-HP HSR6800 Routers High Availability Configuration Guide

150
After the VRRP working mode is specified on a router, all VRRP groups on the router operate in the
specified working mode.
To configure the VRRP working mode:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure the VRRP
working mode.
Configure VRRP to operate in
standard mode:
undo vrrp mode
Configure VRRP to operate in
load balancing mode:
vrrp mode load-balance
Use either command.
By default, VRRP operates in standard
mode.
Specifying the type of MAC addresses mapped to virtual IP
addresses
You can configure VRRP in standard mode to map real or virtual MAC addresses to the virtual IP
addresses of VRRP groups, so the master in a VRRP group uses the specified type of MAC address as the
source MAC address for sending packets and answering ARP requests.
Virtual MAC to virtual IP mapping—By default, a virtual MAC address is automatically assigned
when a VRRP group is created, and the virtual IP address of the VRRP group is mapped to the virtual
MAC address. In this mapping approach, the hosts do not need to update the gateway IP and MAC
mapping entry when the master changes.
Real MAC address of an interface—If a VRRP group has an IP address owner, configure real MAC
to virtual IP mapping to avoid the problem of one IP address mapped to two MAC addresses (the
real and the virtual). In this approach, the virtual IP address of the VRRP group is mapped to the real
MAC address of the IP address owner, and all packets from hosts are forwarded to the IP address
owner.
If VRRP groups with the same ID are created on multiple interfaces, and the VRRP advertisements of these
VRRP groups are to be sent across a QinQ network, HP recommends that you use real MAC to virtual IP
mapping to guarantee successful transmission of the VRRP advertisements.
When VRRP operates in load balancing mode, the address mapping setting does not take effect, and
virtual IP addresses are always mapped to virtual MAC addresses.
Specify the type of the MAC addresses mapped to the virtual IP addresses before creating a VRRP group.
You cannot change the address mapping setting after a VRRP group is created.
To specify the type of MAC addresses mapped to virtual IP addresses:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Specify the type of MAC
addresses mapped to virtual
IP addresses.
vrrp method { real-mac |
virtual-mac }
Optional.
Virtual MAC address by default.