506
Command mode: Global Mode
Usage Guide: This command is used to create or delete the virtual router. The virtual
router is identified by the sequence numbers. Users have to create the virtual
router before they configure the virtual router parameters.
Example: Configure the virtual router with sequence number 10.
Switch(config)# router vrrp 10
17.2.2.2 virtual-ip
Command: virtual-ip <A.B.C.D> {master| backup}
no virtual-ip
Function: Configure VRRP virtual IP address.
Parameter: <A.B.C.D> is virtual IP address in dotted decimal format.
Command mode: VRRP Mode
Usage Guide: This command is used to configure the virtual IP address for standby group;
the “no virtual-ip” command deletes the virtual IP address for standby group. In
one standby group, there is only one virtual IP address. The virtual IP address
has two attributes: master and backup. If the virtual IP address is set to master,
it has to be the same as the IP address of a router interface in the group.
Accordingly, its VRRP priority is 255 (auto) and the relevant interface is the
master router in the standby group; if the virtual IP address is set to backup, it
can’t be the same as any IP address of the routers in the standby group. The
virtual IP address and the interface IP addresses should be in the same subnet.
Example: Set backup virtual IP address to 10.1.1.1
Switch(Config-Router-Vrrp)# virtual-ip 10.1.1.1 backup
17.2.2.3 interface
Command: interface{IFNAME | Vlan <ID>}
no interface
Function: Configure the VRRP interface.
Parameter: interface{IFNAME | Vlan <ID>} is the interface name.
Command mode: VRRP Mode
Usage Guide: This command is used to add the layer 3 interface to the existing standby
group; the “no interface” removes the layer 3 interfaces in the specified standby
group.
Example: Configure the VRRP interface to interface vlan 1