address (VRRP)
To specify a primary and secondary IP address for VRRP, use the address primary command in VRRP interface configuration mode. To remove the primary and secondary IP addresses, use the no form of this command.
address ip-address [ primary | | secondary ]
no address ip-address [ primary | | secondary ]
Syntax Description
ip-address |
IP address used as VRRP primary. |
[primary | secondary] |
(Optional) Specifies the primary or secondary address for the VRRP group. |
Command Default
None
Command Modes
VRRP interface configuration (config-if-vrrp)
Command History
Release | Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.2.1v |
Command qualified for use in Cisco SD-WAN Manager CLI templates. |
Usage Guidelines
Use the address command to specify a primary and secondary virtual device for VRRP. The primary virtual device sends VRRP advertisements to other VRRP devices in the same group. The advertisements communicate the priority and state of the primary and secondary virtual device. The VRRP advertisements are encapsulated into either IPv4 or IPv6 packets (based on the VRRP group configuration) and sent to the appropriate multicast address assigned to the VRRP group.
The following example shows how to set the primary IP of VRRP group 3 to 10.50.4.3:
Device# config-transaction
Device(config)# int GigabitEthernet0/0/2
Device(config-if)# vrrp 3 address-family ipv4
Device(config-if-vrrp)# address 10.50.4.3 primary
Commands |
Description |
---|---|
vrrp address-family |
Creates a VRRP group and enters VRRP configuration mode. |