ip vrrp primary

Last Updated : Aug 28, 2026 |
Sets the primary address that is used as the source address of VRRP packets for the virtual router ID. Use no ip vrrp primary to restore the default primary address for the virtual router instance. By default, the primary address is selected automatically by the device.
Prolog information

Syntax

[no] ip vrrp vr_id primary ip_address

Parameters

Parameter
Description
Possible Values
Default Value
vr_id
The virtual router ID
1-255
ip_address
The primary IP address of the virtual router. This address should be one of the router addresses on the fabric.

User level

read-write

Context

interface:FastEthernet (L2-L3, L2), VLAN (L2-L3, L2)

Example

To specify the source IP address for virtual router 1 as 192.168.66.23:
Gxxx-001(if:Vlan 2)# ip vrrp 1 primary 192.168.66.23