Configuration guidelines, Configuration procedure, Required.) – H3C Technologies H3C S12500-X Series Switches User Manual
Page 52: Optional.), Function
44
Creating a VRRP group and assigning a virtual IP address
A VRRP group can operate correctly after you create it and assign at least one virtual IP address to it. You
can configure multiple virtual IP addresses for the VRRP group on an interface that connects to multiple
subnets for router backup on different subnets.
Configuration guidelines
•
When VRRP is operating in standard mode, the virtual IP address of a VRRP group can be either an
unused IP address on the subnet where the VRRP group resides or the IP address of an interface on
a router in the VRRP group.
•
When a router is the IP address owner in a VRRP group, do not configure the network command on
the interface to use the IP address of the interface, or the virtual IP address of the VRRP group, to
establish a neighbor relationship with the adjacent router. For more information about the network
command, see Layer 3—IP Routing Command Reference.
•
If you create an IPv4 VRRP group but do not assign any virtual IP address for it, the VRRP group stays
in inactive state and does not function.
•
Removal of the VRRP group on the IP address owner causes IP address collision. To avoid the
collision, change the IP address of the interface on the IP address owner before you remove the
VRRP group from the interface.
•
The virtual IP addresses of an IPv4 VRRP group and the IP address of the downlink interface of the
VRRP group must be in the same subnet. Otherwise, the hosts in the subnet cannot access external
networks.
Configuration procedure
To create a VRRP group and assign a virtual IP address:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type interface-number N/A
3.
Create a VRRP group
and assign a virtual IP
address.
vrrp vrid virtual-router-id virtual-ip
virtual-address
By default, no VRRP group exists.
Configuring the router priority, preemptive mode, and tracking
function
The router priority determines which router in the VRRP group serves as the master. The preemptive mode
enables a backup to take over as the master when it detects that it has a higher priority than the current
master. The tracking function decreases the router priority or enables the backup to take over as the
master when the state of the monitored track entry transits to Negative.
Configuration guidelines
•
The running priority of an IP address owner is always 255, and you do not need to configure it. An
IP address owner always operates in preemptive mode.
•
If you associate a track entry with a VRRP group on an IP address owner, the association does not
take effect until the router is not an IP address owner.
- H3C S5560 Series Switches H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S9800 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C S6300 Series Switches H3C S5820V2 Series Switches H3C S5830 Series Switches H3C S5830V2 Series Switches H3C S3600V2 Series Switches