vrrp

This command provides for automatic assignment of available routers to participating hosts. This increases the availability and reliability of routing paths through automatic default gateway selections on a LAN.

The protocol achieves this by creating virtual routers, comprised of master and backup routers. VRRP routers use multicast to notify its presence in the LAN (never forwarding outside of the LAN).

VRRP is based on RFC 2338, 3768.

Syntax

IPv4:

vrrp <VRID> ip <ip address>
vrrp <VRID> ip <ip address> secondary
vrrp <VRID> priority <priority>
vrrp <VRID> preempt
vrrp <VRID> timers advertise <time in seconds>

IPv6:

vrrp <VRID> ipv6 ip <ip address>
vrrp <VRID> ipv6 ip <ip address> secondary
vrrp <VRID> ipv6 priority <priority>
vrrp <VRID> ipv6 preempt
vrrp <VRID> ipv6 timers advertise <time in seconds>

Command

Description

ip

Sets the primary IP address for the VRID.

secondary

Sets secondary IP address for the VRID.

priority

Sets the priority for VRID. The range is 1-254.

preempt

Sets preemption for lower priority Master.

timers advertise

Sets interval timer for advertising the Master VRID

Default

NA

Command Mode

Privileged User

Note

To delete an IPv6 VRRP: no vrrp <VRID> ipv6
The device uses VRRPv2 for IPv4, and VRRPv3 for IPv6.

Example

The following is an example of how this command can be used.

# configure data
(config-data)# interface VLAN 1
(conf-if-VLAN 1)# vrrp 1 ip 10.100.1
(conf-if-VLAN 1)#  vrrp 1 prioity 200