Purpose
Scope
VRRP provides information on the state of a router, not the routes processed and exchanged by that router. Each VRRP instance is limited, in scope, to a single subnet. It does not advertise IP routes beyond that subnet or affect the routing table in any way. VRRP can be used with Internet Protocol Version 4 (IPv4), as well as IPv6.
Useful links:
Expectations, Requirements
Note: VRRP can be configured only on physical interfaces or VLAN interfaces. You cannot configure VRRP on hardware-switch interfaces where multiple physical interfaces are combined into a hardware switch interface.
Configuration
Default VRRP Configuration :
# config system interfaceedit port2set vrrp-virtual-mac enableconfig vrrpedit 5set vrgrp 360 ...must be in the range of 1-65535set vrip 10.31.101.120set priority 255set adv-interval 1set start-time 3 ...maximum wait time between receiving advertisement messagesset preempt enable ...higher priority unit will replace the current master unitset vrdst x.x.x.x ...Monitor the route to a destination IPset status enableendend
Backup unit:
# config system interfaceedit port2set vrrp-virtual-mac enableconfig vrrpedit 5set vrgrp 360 ...must be in the range of 1-65535set vrip 10.31.101.120set priority 50set adv-interval 1set start-time 3 ...maximum wait time between receiving advertisement messagesset preempt enable ...higher priority unit will replace the current master unitset status enableendend
Troubleshooting
# get router info vrrpInterface: dmz, primary IP address: 0.0.0.0UseVMAC: 1, SoftSW: 0, BrPortIdx: 0, PromiscCount: 1HA mode: master (0:1)VRID: 5vrip: 10.10.10.111, priority: 100 (100,0), state: MASTERadv_interval: 1, preempt: 1, start_time: 3vrmac: 00:00:5e:00:01:03vrdst:vrgrp: 123# diagnose deb application vrrpd -1diag deb en[vrrp_vrt_adv_timer_func:1411]: dmz, vrid 3, vrip 10.10.10.111, (1343->1343)[vrrpd_loop:1952]: ret 0# diag sniffer packet any 'proto 112' 6 0 ainterfaces=[any]filters=[proto 112]2017-10-16 16:12:22.553779 dmz out 0.0.0.0 -> 224.0.0.18: ip-proto-112 20Sniffer packet capture output:Virtual Router Redundancy ProtocolVersion 2, Packet type 1 (Advertisement)0010 .... = VRRP protocol version: 2.... 0001 = VRRP packet type: Advertisement (1)Virtual Rtr ID: 5Priority: 100 (Default priority for a backup VRRP router)Addr Count: 1Auth Type: No Authentication (0)Adver Int: 1Checksum: 0x6681 [correct][Checksum Status: Good]IP Address: 10.10.10.111
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.