address

Syntax

address <IP-ADDR> [ primary | secondary ]

no address <IP-ADDR> [ primary | secondary ]

Description

Configures a primary or secondary IPv4 or IPv6 address for the VRRP group. To utilize secondary IP addresses in a VRRP group, you must first configure a primary IP address on the same group. A maximum of 16 IP addresses per IPv4 VRRP group and 8 IPv6 addresses per IPv6 VRRP group are supported.
NOTE:

Do not configure an IPv4 VRRP group using addresses from the /30, /31, and /32 subnets of the interface IP address.

NOTE:

16 Virtual IPs per IPv4 VR and 8 Virtual IPs per IPv6 VR are supported. At system level, 1024 VIPs for IPv4 VRs and 512 VIPs for IPv6 VRs are supported.

The no form of this command deletes a primary or secondary IPv4 or IPv6 address from the VRRP group.

Command context

config

Parameters

ip-address

Selects the IPv4 or IPv6 address.

primary

Configures a primary address.

secondary

Configures a secondary address.

Authority

Administrators or local user group members with execution rights for this command.

Examples

switch(config)# interface 1/1/1
switch(config-if)# vrrp 1 address-family ipv4
switch(config-if-vrrp)# address 10.0.0.1 primary


switch(config)# interface 1/1/1
switch(config-if)# vrrp 1 address-family ipv6
switch(config-if-vrrp)# address fe80::1 primary


switch(config)# interface 1/1/1
switch(config-if)# vrrp 1 address-family ipv4
switch(config-if-vrrp)# no address 10.0.0.1 primary


switch(config)# interface 1/1/1
switch(config-if)# vrrp 1 address-family ipv6
switch(config-if-vrrp)# no address fe80::1 primary