Enabling IPv4 VRRP preempt-mode

You can configure VRRP to preempt the existing router. If a new VRRP router is added to the network with a higher priority than the existing routers, then the new router becomes the master. If preempt-mode is disabled, then the new router does not become a master, it transitions to master only when the current master is down, that is when it does not receive any advertisement packets from the current master. By default, preempt-mode is enabled.

Procedure

  1. Enter Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]} or interface vlan <1–4059>

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Enter the following command:

    ip vrrp <vrid> preempt-mode enable

  3. Use the following command to set the preempt-mode to its default value:

    default ip vrrp <vrid> preempt-mode

  4. Use the following command to disable the preempt-mode:

    no ip vrrp <vrid> preempt-mode enable

Example

Switch:1> enable
Switch:1# configure terminal
Switch:1(config)# interface gigabitethernet 1/2

Enabling preempt-mode on interface 1/2:

Switch:1(config-if)# ip vrrp 1 preempt-mode enable

Variable definitions

Use the data in the following table to use the ip vrrp <vrid> command.

Variable

Value

preempt-mode enable

Enables preempt-mode for VRRPv3 for IPv4.

default ip vrrp <vrid> preempt-mode

Sets the default preempt-mode value for VRRPv3 for IPv4.

no ip vrrp <vrid> preempt-mode enable

Disables preempt-mode for VRRPv3 for IPv4.