Is there a reason metallb does not announce on L2 by adding the IP address to the kernel?

4 views
Skip to first unread message

Philip Couling

unread,
Dec 23, 2025, 6:29:53 AM (6 days ago) Dec 23
to metallb-users
I'm curious about the design of metallb in implementing L2 protocols for itself.  What I'm wondering is why it didn't advertise the address by adding and removing the addresses on the host.

I'm asking because I'm interested in implementing an alternative announcer which does just that and I'm wondering if there's a known reason why this is a very bad idea.

From what I can understand this approach would:
  • help visibility: 
    • showing sys-admins directly which IPs a node thinks it has responsibility for (shown through the "ip address" command)
    • responding to ICMP requests allowing services to be pinged
  • help avoid collisions where metallb doesn't have sole ownership of the CIDR range:
    • DHCP servers can ping addresses prior to allocating (RFC 2131 section 3.1)
    • Leveraging the kernel's implementation of IPv6 Duplicate Address Detection (DAD)
So I'm really interested to understand if there was a reason for not implementing it this way?

Reply all
Reply to author
Forward
0 new messages