Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2025 11:22:31 +0200
From:      "Patrick M. Hausen" <pmh@hausen.com>
To:        Lexi Winter <ivy@FreeBSD.org>
Cc:        Kristof Provost <kp@FreeBSD.org>, Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>, Alexander Leidinger <Alexander@Leidinger.net>, A FreeBSD User <freebsd@walstatt-de.de>, rgrimes@freebsd.org, FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: CURRENT: can not add device to bridge: ifconfig: BRDGADD igb0: Invalid argument
Message-ID:  <C3DAAC11-7029-4964-BA19-AE7AB2D941DA@hausen.com>
In-Reply-To: <aCrxeWv2FmAdEMkB@ragweed.eden.le-fay.org>
References:  <20250518180658.2e58d55a@thor.sb211.local> <192c8e37-4a85-4916-9986-0a556333a527@plan-b.pwste.edu.pl> <20250518182404.3a760da9@thor.sb211.local> <1ca30cdfb783848eafce24b77f10c0a5@Leidinger.net> <310d460a-d372-47c8-8275-2908bb8417ad@plan-b.pwste.edu.pl> <7A4E0DDE-77F7-4CDC-8C52-BE938298E105@FreeBSD.org> <aCrxeWv2FmAdEMkB@ragweed.eden.le-fay.org>

index | next in thread | previous in thread | raw e-mail

Hi all,

> Am 19.05.2025 um 10:53 schrieb Lexi Winter <ivy@FreeBSD.org>:
> 
> the basic problem here is that putting IP addresses on a bridge member
> is a layering violation and it's just not reasonable (or even possible)
> to support this in a sensible way in bridge.  this is why most dedicated
> network devices (switches, routers, etc.) don't let you do this.

Adding to this, the fact that IP addresses on member interfaces are not
supported has been documented from day one of the introduction of if_bridge(4).

A couple of months ago I did check the commit times of the code and the
relevant handbook section because exactly this discussion came up again
in a different context.

https://docs.freebsd.org/en/books/handbook/advanced-networking/#network-bridging

> If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces

Kind regards,
Patrick

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C3DAAC11-7029-4964-BA19-AE7AB2D941DA>