
130
To do…
Use the command…
Remarks
Enter the specified VLAN interface
view or Layer 3 Ethernet interface
view
interface
interface-type
interface-number
—
Create a VRRP group and
configure a virtual IP address for
the VRRP group
vrrp vrid
virtual-router-id
virtual-ip
virtual-address
Required
VRRP group is not created by
default.
NOTE:
•
When VRRP works in standard protocol mode, the virtual IP address of a VRRP group can be either an
unused IP address on the segment where the VRRP group resides or the IP address of an interface on a
router in the VRRP group. In the latter case, the router is called the IP address owner.
•
When a router is the IP address owner in a VRRP group, H3C recommends you not to use the IP address
of the interface—virtual IP address of the VRRP group—to establish a neighbor relationship with the
adjacent router, that is, not to use the
network
command to enable OSPF on the interface. For more
information about
network
command, see the
Layer 3—IP Routing Command Reference.
•
When VRRP works in load balancing mode, the virtual IP address of a VRRP group cannot be the same
as the IP address of any interface in the VRRP group. In other words, in load balancing mode, the VRRP
group does not have an IP address owner.
•
A VRRP group is removed after you remove all the virtual IP addresses configured for it. In addition,
configurations on that VRRP group do not take effect any longer.
•
Removal of the VRRP group on the IP address owner causes IP address collision. To solve the collision,
modify the IP address of the interface on the IP address owner first and then remove the VRRP group
from the interface.
•
The virtual IP address of a VRRP group cannot be 0.0.0.0, 255.255.255.255, loopback addresses, non
class A/B/C addresses or other illegal IP addresses such as 0.0.0.1.
•
A VRRP group operates normally only when the configured virtual IP address and the interface IP
address belong to the same segment and are legal host addresses. If the configured virtual IP address
and the interface IP address do not belong to the same network segment, or the configured IP address
is the network address or network broadcast address of the network segment to which the interface IP
address belongs, the state of the VRRP group is always
initialize
though you can perform the
configuration successfully. In this case, VRRP does not take effect.
Configuring router priority, preemptive mode and tracking
function
Configuration prerequisites
Before you configure router priority, preemptive mode and tracking function, create a VRRP group on an
interface and configure a virtual IP address for it.
Configuration procedure
The router priority, preemptive mode, and track function can determine which router in the VRRP group
serves as the master.
Follow these steps to configure router priority, preemptive mode and the tracking function: