ip vrrp primary

Last Updated : Nov 06, 2012 |

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.

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