
128
Task Remarks
Specifying the type of MAC addresses mapped to virtual IP addresses
Optional
When VRRP works in load
balancing mode, this
configuration is not effective.
Creating a VRRP group and configuring virtual IP address
Required
Configuring router priority, preemptive mode and tracking function
Optional
Optional
The VF tracking function is
effective only when VRRP works
in load balancing mode.
Configuring VRRP packet attributes
Optional
Enabling the trap function for VRRP
Optional
Configuring a VRRP working mode
VRRP can work in either of the following two modes:
•
Standard protocol mode—When VRRP works in this mode, only the master in a VRRP group is
responsible for forwarding packets.
•
Load balancing mode—When VRRP works in this mode, all the routers—master and backups—that
have the AVF in a VRRP group can forward packets, thus implementing load balancing.
After the VRRP working mode is specified on a router, all VRRP groups on the router work in the specified
working mode.
Follow these steps to configure a VRRP working mode:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure VRRP to work in
standard protocol mode
undo vrrp mode
Configure VRRP to work in load
balancing mode
vrrp mode load-balance
Required
Use either command.
By default, VRRP works in
standard protocol mode.
Specifying the type of MAC addresses mapped to virtual IP
addresses
After you specify the type of MAC addresses mapped to the virtual IP addresses of VRRP groups and
create a VRRP group, the master in the VRRP group uses the specified type of MAC address as the source
MAC address for sending packets and for answering ARP requests from hosts so that the hosts in the
internal network can learn the mapping between the IP address and the MAC address.
The following types of MAC addresses are available mapped to the virtual IP address of a VRRP group:
•
Virtual MAC address
By default, a virtual MAC address is automatically created for a VRRP group when the VRRP group is
created, and the virtual IP address of the VRRP group is mapped to the virtual MAC address. When such