Project

General

Profile

Actions

Bug #14586

closed

Adding an IP Alias VIP using a unicast CARP VIP as its parent changes the CARP VIP to multicast at the OS level

Added by James George 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
CARP
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Release Notes:
Default
Affected Plus Version:
21.05.1
Affected Architecture:

Description

Adding IP Alias to a unicast CARP VIP results in the CARP VIP being reconfigured to multicast. Reapplying (i.e. saving) the unicast CARP VIP sets it back to unicast, however, whenever the IP Alias is saved or the instance is rebooted, the associated unicast CARP VIP becomse multicast again.

This breaks unicast CARP.

A bug exists in /etc/inc/interfaces.inc function interface_ipalias_configure() in that it does not check for ucast/mcast as interface_carp_configure() does. The resultant command executed (e.g ifconfig mce0 inet 172.20.0.76/26 alias vhid 70) is missing the "peer" statement, this causes a change in the underlying CARP VIP configuration.

The attached patch rectified this by adding a ucast/mcast check and a "peer <address>" or "mcast" statement.


Files

interfaces.inc.patch (1.23 KB) interfaces.inc.patch Patch to correct interface_ipalias_configure() in interfaces.inc James George, 07/18/2023 05:30 AM
interfaces_inc_new.patch (1.05 KB) interfaces_inc_new.patch James George, 08/15/2023 03:16 AM
Actions

Also available in: Atom PDF