824
no virtual-ip
Function
: Configures the VRRP dummy IP address
Parameters:
<
A.B.C.D
> is the IP address in decimal format.
Default
: Not configured by default.
Command mode
: VRRP protocol configuration mode
Usage Guide
: This command adds a dummy IP address to an existing Standby cluster.
The "no virtual-ip" command removes the dummy IP address from the specified Standby
cluster. Each Standby cluster can have only one dummy IP.
Example
: Setting the backup
dummy IP address to 10.1.1.1.
Switch(Config-Router-Vrrp)# virtual-ip 10.1.1.1
21.4 Example Of VRRP
As shown in the figure below, SwitchA and SwitchB are Layer 3 Ethernet Switches in
the same group and provide redundancy for each other.
SWITCHA
SWITCHB
Vlan 1
Vlan 1
Fig 21-1 VRRP Network Topology
Configuration of SwitchA:
SwitchA(config)#interface vlan 1
SwitchA (Config-If-Vlan1)# ip address 10.1.1.5 255.255.255.0
SwitchA (Config-If-Vlan1)#exit
SwitchA (config)#router vrrp 1
SwitchA(Config-Router-Vrrp)# virtual-ip 10.1.1.5
SwitchA(Config-Router-Vrrp)# interface vlan 1
SwitchA(Config-Router-Vrrp)# enable
Configuration of SwitchB:
SwitchB(config)#interface vlan 1
SwitchB (Config-if-Vlan1)# ip address 10.1.1.7 255.255.255.0
SwitchB (Config-if-Vlan1)#exit