vrrp address

Adds an IP address to the associate list for this VRRP session.

Syntax

vrrp address vrid ip-address [enable | disable]
no vrrp address vrid ip-address [enable | disable]

Parameters

vrid Specifies a unique Virtual Router ID (VRID) associated with this routing interface.
ip-address Specifies the virtual router IP address to associate with the router.
enable | disable Enables or disables the IP address for the VRRP session. If not specified, the default is enable.
  • enable - Address is active in the virtual address list that is being managed by the VRRP router.
  • disable - Address is not active in the virtual address list. A disabled address is not backed up by a VRRP router.

Defaults

If neither enable or disable are specified, the configuration defaults to enable.

Mode

Interface configuration mode.

Usage

If the virtual router IP address is the same as the interface (VLAN) address owned by a VRRP router, then the router owning the address becomes the master. The master sends an advertisement to all other VRRP routers declaring its status and assumes responsibility for forwarding packets associated with its virtual router ID (VRID).

If the virtual router IP address is not owned by any of the VRRP routers, then the routers compare their priorities and the higher priority owner becomes the master. If priority values are the same, then the VRRP router with the higher IP address is selected master. For details on using the vrrp priority command, refer to vrrp priority.

A virtual router IP address can be either an address configured on the routing interface or an address that falls within the range of any networks configured on the routing interface.

Up to 128 IPv4 and 64 IPv6 IP addresses are supported per interface.

The “no” form of this command clears the VRRP address configuration.

Example

This example adds the 20.20.20.1 IP address to the VRRP 1 instance:

System(rw)->configure
System(rw)-config)->interface vlan 20
System(rw)-config-intf-vlan.0.20)->vrrp create 1 v2-ipv4
System(rw)-config-intf-vlan.0.20)->vrrp address 1 20.20.20.1
System(rw)-config-intf-vlan.0.20)->