1-9
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:
z
Virtual IP address is associated with virtual router 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.
z
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 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.
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.
Creating VRRP Group and Configuring Virtual IP Address
You need to configure a virtual IP address for a VRRP group when creating the VRRP group on an
interface. 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 created automatically 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.
It is not recommended to create VRRP groups on the VLAN interface of a super VLAN. Otherwise,
network performance may be affected.