Skip to main content
adimailig
Staff & Editor
Staff & Editor
Nov 14, 2023 12:02 PM UTC

Technical Tip: VRRP version 2 priority behavior when virtual IP is the same as interface IP

  • Oct 13, 2026 8:35 AM UTC
  • 0 replies
  • 1279 views
  • Translate All

Description

This article describes how, as per RFC standards, the VRRP priority of the device is set to 255 (highest) if the Virtual IP and Interface IP are the same.

If the Virtual IP and Interface IP are the same, the interface becomes the primary virtual router for the group. Pre-emption being disabled does not take effect in this case, as the priority for the FortiGate is always 255. This FortiGate will always take over as the primary unit even with pre-empt disabled.

Priority set on the FortiGate is overridden in this situation.

Scope

FortiGate, VRRP.

Solution

Illustration:

  1. The Virtual IP is the same as the Interface IP here:


FW1 # show sys interface VLAN1500 
config system interface
    edit "VLAN1500"
        set vdom "root"
        set ip 10.10.15.1 255.255.255.0
        set allowaccess ping
        set device-identification enable
            config vrrp
                edit 1
                    set vrgrp 360
                    set vrip 10.10.15.1
                    set priority 90
                next
            end
                set role lan
                set snmp-index 19
                set interface "fortilink"
                set vlanid 1500
            next
        end


FW1 # get route info vrrp 
Interface: VLAN1500, primary IP address: 10.10.15.1
UseVMAC: 0, SoftSW: 0, BrPortIdx: 0, PromiscCount: 0
HA mode: primary (0:0:2) VRRP master number: 1
VRID: 1 verion: 2
vrip: 10.10.15.1, priority: 255 (255,0), state: MASTER
adv_interval: 1, preempt: 1, ignore_dft: 0 start_time: 3
master_adv_interval: 100, accept: 1
vrmac: 50:00:00:01:00:01
vrdst:
vrgrp: 360

 

  1. The Virtual IP is NOT the same as the Interface IP here:


FW1 # show sys interface VLAN1500 
config system interface
    edit "VLAN1500"
        set vdom "root"
        set ip 10.10.15.1 255.255.255.0
        set allowaccess ping
        set device-identification enable
            config vrrp
                edit 1
                    set vrgrp 360
                    set vrip 10.10.15.3
                    set priority 90
                next
            end
                set role lan
                set snmp-index 19
                set interface "fortilink"
                set vlanid 1500
            next
        end


FW1 # get router info vrrp
Interface: VLAN1500, primary IP address: 10.10.15.1
UseVMAC: 0, SoftSW: 0, BrPortIdx: 0, PromiscCount: 0
HA mode: primary (0:0:2) VRRP master number: 0
VRID: 1 verion: 2
vrip: 10.10.15.3, priority: 90 (90,0), state: BACKUP
adv_interval: 1, preempt: 1, ignore_dft: 0 start_time: 3
master_adv_interval: 100, accept: 1
vrmac: 50:00:00:01:00:01
vrdst:
vrgrp: 360

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024