129
a mapping is adopted, the hosts in the internal network do not need to update the mapping between the
IP address and MAC address when the master changes.
•
Real MAC address of an interface
When an IP address owner exists in a VRRP group, if the virtual IP address is mapped to the virtual MAC
address, two MAC addresses are mapped to one IP address. To avoid this problem, map the virtual IP
address of the VRRP group to the real MAC address of an interface to forward the packets from a host to
the IP address owner.
Follow these steps to specify the type of MAC addresses mapped to virtual IP addresses:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Specify the type of MAC addresses
mapped to virtual IP addresses
vrrp method
{
real-mac
|
virtual-mac
}
Optional
Virtual MAC address by default
NOTE:
•
When VRRP works in load balancing mode, a virtual IP address is always mapped to a virtual MAC
address regardless of which type of MAC addresses are specified to be mapped to virtual IP addresses.
•
Specify the type of the MAC addresses mapped to the virtual IP addresses before creating a VRRP
group. Otherwise, you cannot change the type of the MAC addresses mapped to virtual IP addresses.
•
If VRRP groups with the same ID are created on multiple interfaces of a device, and the VRRP
advertisements of these VRRP groups are to be sent through QinQ networks, H3C recommends you to
map the real MAC addresses of the interfaces to the virtual IP addresses of these VRRP groups.
Otherwise, the VRRP advertisements of these VRRP groups cannot be sent successfully.
Creating a VRRP group and configuring virtual IP address
When creating a VRRP group on an interface, configure a virtual IP address for the VRRP group. If the
interface connects to multiple sub-networks, you can configure multiple virtual IP addresses for the VRRP
group to realize router backup on different sub-networks.
A VRRP group is automatically created when you specify the first virtual IP address for the VRRP group.
If you specify another virtual IP address for the VRRP group later, the virtual IP address is added to the
virtual IP address list of the VRRP group.
NOTE:
H3C does not recommend you to create VRRP groups on the VLAN interface of a super VLAN because
network performance might be adversely affected.
Configuration prerequisites
Before you create a VRRP group and configure a virtual IP address on an interface, configure an IP
address for the interface and ensure that it is in the same network segment as the virtual IP address to be
configured.
Configuration procedure
Follow these steps to create a VRRP group and configure a virtual IP address:
To do…
Use the command…
Remarks
Enter system view
system-view
—