F3215-HP Load Balancing Module High Availability Configuration Guide-6PW101
21
Task Remarks
Configuring VF tracking
Optional.
This configuration applies to only VRRP load
balancing mode.
Configuring VRRP packet attributes Optional.
Enabling the trap function for VRRP Optional.
Configuring a VRRP working mode
A VRRP group operates in one of the following modes:
• Standard mode—Only the master can forward packets.
• Load balancing mode—All members that have an AVF can forward packets.
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.
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: