FPP VRRP enablement
FEATURE STATE: beta
VPP supports VRRP v3 RFC 5798. Using the afterCommand spec section of the VPPConfig object, it's possible to enable redundancy between VRRP peers.
To provide router redundancy, configure each VPP to be in the same virtual router (VR) group with the same ID. To avoid multicast flood within the network and the number of VRs is known, VRRP can be configured in the unicast mode. This documentation describes how to achieve this.
To allow the backup device to act as a full replicant for a master device, configure VRRP in the accept mode.
Caution
VRRP is a beta feature exposed as VPP CLI command configuration. In future FPP releases, it will be managed through a Custom Resource configuration.
Adjusting interface with virtual router address
Router redundancy expects Virtual Router Address to be assigned to the interface that exposes it on the VRRP master node.
The VRRP group is defined by a Virtual Router ID vr_id.
Perform the command only on the interface included in the VR group as master.
VRRP configuration on the interface
The VR configuration should include a dedicated interface in the particular VR group. Configure the group identifier (VR ID) on each VRRP peer. In the VPP configuration, VR ID is configured per interface:
VRRP can use either a unicast or a multicast mode. By default, multicast VRRP advertising is used. This mode is recommended for generic deployments.
Example: VR ID 1 with priority 250 and VR Address 10.10.0.15 on the interface memif0/100:
To enable VRRP in the unicast mode, an additional configuration parameter must be added:
For unicast, VRRP IP address of peer is required:
Example:
To start the VRRP protocol with configured VR Group on the given interface, add the following CLI:
Example:
VPPConfig configuration
The following example provides a afterCommands list of CLI calls to perform setup on VRRP master and backup.
The Virtual Router ID defines that VRRP Group should be the same for every VR.