2236
C
146: IP
4-B
HAPTER
V
Example
VRRP C
C
ASED
ONFIGURATION
Use the
undo vrrp vrid
remove a virtual IP address from a standby group.
By default, no standby group is created.
Note that:
The system removes a standby group after you delete all the virtual IP addresses
■
in it.
The virtual IP address of the standby group cannot be 0.0.0.0,
■
255.255.255.255, loopback address, non A/B/C address and other illegal IP
addresses such as 0.0.0.1.
Only when the configured virtual IP address and the interface IP address belong
■
to the same segment and are legal host addresses can the standby group
operate normally. 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 that the interface IP address belongs to, the state of the standby
group is always initialize though you can perform the configuration
successfully, that is, VRRP does not take effect in this case.
# Create standby group 1 and set its virtual IP address to 10.10.10.10.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] vrrp vrid 1 virtual-ip 10.10.10.10
# Add virtual IP address 10.10.10.11 to standby group 1.
[Sysname-Ethernet0/2] vrrp vrid 1 virtual-ip 10.10.10.11
OMMANDS
virtual-router-id virtual-ip virtual-address command to