DGS-6604
m
vrrp ip
CLI Reference Guide
937
vrrp ip
To enable the Virtual Router Redundancy Protocol (VRRP) on an interface and
identify the IP address of the virtual router, use the
vrrp ip
command.
To disable VRRP on the interface and remove the IP address of the virtual router,
use the no form of this command.
vrrp VRID ip
IP-ADDRESS
no vrrp VRID
Default
Disabled
Command Mode
Interface configuration
Usage Guideline
The
vrrp ip
command activates VRRP on the configured interface. The IP
address specified in the VRRP configuration is used as the address for the virtual
router.
A master will be elected in a group of virtual routers which have the same virtual
router identifier for forwarding the packets from the host that sends to this virtual
router.
Examples
The following example shows how to enable VRRP on vlan1. The virtual router
identifier is 7, and 10.1.1.1 is the IP address of the virtual router.
The following example shows how to remove the IP address of the virtual router
and disable the VRRP on the interface.
Syntax Description
VRID
Specifies the virtual router identifier, which is the number that identifies the virtual
router.
Range is from 1 to 255.
IP-ADDRESS
Specifies the IP address of the virtual router.
Switch(config)#interface vlan1
Switch(config-if)#vrrp 7 ip 10.1.1.1
Switch(config)#interface vlan1
Switch(config-if)#no vrrp 7