Re: epair(4)

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Sat, 17 May 2025 19:05:18 UTC
Am 2025-05-17 07:15, schrieb Konstantin Belousov:
> On Fri, May 16, 2025 at 10:38:58PM +0200, Kristof Provost wrote:
>> As Lexi pointed out in another e-mail: users should assign addresses 
>> to the bridge, never to bridge member interfaces.
>> 
> 
> Could you, please, also explain why this is the requirement, besides 
> stating
> that the configuration is invalid?
> 
> Let me give some context there: for me, such config appears when I set 
> up
> normal host, with the usual setting of IP address on a physical 
> interface.
> Then some time later, realizing that I want to run a bhyve there as 
> well,
> I need to add a bridge.  But for situation where the host is remote and
> even without console access, it means to either keep the invalid config
> if IP address on interface, or blindly do the sensitive config update
> without a way to test it before reboot.

for ZFS based systems:
  - create new BE
  - mount new BE
  - edit rc.conf
  - unmount new BE
  - bectl activate -t new_BE
  - reboot
  - it it doesn't work, do a remote reboot (if you don't have that, add a 
rc.local with a "(sleep <suitable_time>; shutdown -r now)&")

That's how I did it some years ago after noticing that the IP shall be 
on the bridge.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF