R3204P16-HP Load Balancing Module High Availability Configuration Guide-6PW101
25
Task Remarks
Configuring VF tracking
Optional
The VF tracking function is effective only when VRRP works in
the load balancing mode.
Configuring VRRP packet attributes Optional
Enabling the trap function of VRRP Optional
Configuring the association between virtual IP address and
MAC address
After the virtual IP address of a VRRP group is associated with a MAC address, the master takes the
configured MAC address as the source MAC address of the packets to be sent, so that the hosts in the
internal network can learn the association between the IP address and the MAC address and thus
forward the packets to be forwarded to the other network segments to the master.
There are two types of association between virtual IP address and MAC address:
• Virtual IP address is associated with virtual MAC address
By default, a MAC address is created for a VRRP group after the VRRP group is created, and the virtual
IP address is associated with the virtual MAC address. With such association adopted, the hosts in the
internal network do not need to update the association between IP address and MAC address when the
master changes.
• Virtual IP address is associated with real MAC address of the interface
If an IP address owner exists in a VRRP group and you associate the virtual IP address with the virtual
MAC address, two MAC addresses are associated with an IP address. In this case, you can associate the
virtual IP address of the VRRP group with the real MAC address, so that the packets from a host are
forwarded to the IP address owner according to the real MAC address.
Follow these steps to configure the association between MAC address and virtual IP address:
To do… Use the
command…
Remarks
Enter system view system-view —
Configure the association
between virtual IP address
and MAC address
vrrp method { real-mac |
virtual-mac }
Optional
The virtual MAC address is associated
with the virtual IP address by default.
NOTE:
• When VRRP works in the load balancin
g
mode, the association between the virtual IP address and the
MAC address can be configured but is not effective. In this mode, the virtual IP address is always
associated with the virtual MAC address.
• You should configure this function before creating a VRRP group. Otherwise, you cannot modify the
mapping between the virtual IP address and the MAC address.
Configuring VRRP working mode
VRRP works in one of the following two modes:
• Standard protocol mode—In a VRRP group, only the master forwards packets.