Duplicates IP packets when using CARP and ECMP routes.

From: Arnaud Houdelette-Langlois <arnaud.houdelette_at_normandie-univ.fr>
Date: Sat, 29 Apr 2023 10:01:38 UTC
Hi.

We got a freebsd router with both ospf/bpg and multipath routes (ECMP) 
(using the new bird2 with netlink) .

The router got an interface with carp enabled on it (gateway for admin 
vlan).

Packets received on the carp address gets routed on all known routes 
towards destination. Thus, the destination host receives duplicates ip 
packets. (which disrupts most udp based protocols)

Using a simple alias instead of carp solve the problem. Is this a known 
problem, or should I fill a PR ?

-- 
Arnaud Houdelette-Langlois
Administrateur des infrastructures systèmes et réseaux
Normandie Université
+33 2 31 56 69 54