From nobody Thu Aug 28 06:55:28 2025 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cCBxD1Ff5z65SQr for ; Thu, 28 Aug 2025 06:55:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cCBxD0c2Xz3Cf2 for ; Thu, 28 Aug 2025 06:55:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756364128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4fd6IfMIhtwuCh3kKexUDLC7ekNzP8cyw1s98PInx6E=; b=ubspjeyeYRX/Z93fDZhg6RaRG6ZAfyrYfFD56zeFP9pBzoZYlkuUKHdy4PEB13/6B+T7PE q00DZCqZsNP0qIL7a9lCp+wyoxZcEbvMozvuq2B9QpUD8qPbsVOW3wkCA5Ron1qFPl6KtX 79fWtnwB4LdlDMW+It+NTa3dSQL0QojNvwHcFLcvTv9fQJMEbAuQ2S1rih4T5h41fYTjGX OE4tzuCt7rjYOhmH/Z4hZCK86jZ758Zgg9Ls3/mcXUVdAPUbckt8aau6dQL0g7S0HPwMyI gj/gythpZrEcJ4TBOYLUuRA7TxF8rnI0TUAuareF1BBWAk1kb0brwfamKwKliw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756364128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4fd6IfMIhtwuCh3kKexUDLC7ekNzP8cyw1s98PInx6E=; b=ShcVvh8HSJIH5Z8+4z4klfWNO/En35omFor8T59zfER5aqtVDhwpsAFm7057uvPDE8UqLE DX91t1MLkZUN8NUJKAxx+P5VmYMxmIRkn4ljYM9vc7wQEhcJsNfB2I9RfZ/ErBYjEUkuBL XJjxuuPFXVNddIxM6j2v5wkg6WYFS8LhHmAxstyiaPhoEKQ8OG5MDOAKExCk9VMm1lea/G raAf3zk+EW04j51udIN/bQ0z7wCQO9op785ITXbvplO3s26F8KZ8DiUBRzZVrXZIcPgprv 8Lc67Qq6pAGqeOumFZFxyV3LEMcRo/vaqSgYOHNGVmyBnAv0chfzzQDOIA7bmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756364128; a=rsa-sha256; cv=none; b=Fc5nx/ddAZhZ3N+DlAsNQ3cWmNOLNLEqEnwzWCMq3hk53Q3Kxs96277fk7W7YrA3bHdPNN FTOpteBX/AcLe3oAjwYxH3Porp+is1oNOqWJDlEWGMjm5cnull/xjYIyZnuU0Dv4DXMqBu +fHNu8rx1SZmClWmnwmIyR6E3fVWQ2vN6kXRun4q1Xhox+eVyRC2d9qy2bohctKC1IKGQh aRtTiu94RZSWqrJqW6KtGZ3vqNFdtsm+NyHPvQ+cPjzwFJOIqEMdRoHEP2uwfgaA63ycgK Vb2EGNY24MkrO5akNooB9jJ9ATDUauYfLoGPg7O0Ra/bj+XWdurQu5dF3lB6vA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cCBxC729xzyFv for ; Thu, 28 Aug 2025 06:55:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 57S6tR0H068656 for ; Thu, 28 Aug 2025 06:55:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57S6tR8w068655 for ports-bugs@FreeBSD.org; Thu, 28 Aug 2025 06:55:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 289142] vm-bhyve public bridge fails on 15-CURRENT unless net.link.bridge.member_ifaddrs=1 is set Date: Thu, 28 Aug 2025 06:55:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hpaluch@seznam.cz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289142 Bug ID: 289142 Summary: vm-bhyve public bridge fails on 15-CURRENT unless net.link.bridge.member_ifaddrs=3D1 is set Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: hpaluch@seznam.cz When using latest vm-bhyve on 15-CURRENT (tested 1500063, main-n279875-50efb5789d32) the default "public" bridge configuration (where= NIC has IP address, but bridge not) will fail with error: ifconfig vm-public addm em0 ifconfig: BRDGADD em0: Invalid argument (extended error Member interface may not have an IPv4 address configured) It is because bridge(4) introduced new restriction - excerpt from manual on https://man.freebsd.org/cgi/man.cgi?query=3Dbridge&apropos=3D0&sektion=3D0&= manpath=3DFreeBSD+15.0-CURRENT&arch=3Ddefault&format=3Dhtml To allow the host to communicate with bridge members, IP addresses sho= uld be assigned to the if_bridge interface itself, not to the bridge's mem= ber interfaces. Attempting to assign an IP address to a bridge member interface, or add a member interface with an assigned IP address to a bridge, will return an EINVAL (=E2=80=9CInvalid argument=E2=80=9D) err= or. For compatibility with older releases where this was permitted, setting the sysctl(8) variable net.link.bridge.member_ifaddrs to 1 will permit this configuration. This sysctl variable will be removed in FreeBSD 16.0. I use following simple patch to make public bridge to work again: diff -u usr/local/lib/vm-bhyve/vm-util.orig usr/local/lib/vm-bhyve/vm-util --- usr/local/lib/vm-bhyve/vm-util.orig 2025-08-28 08:34:52.476711000 +0200 +++ usr/local/lib/vm-bhyve/vm-util 2025-08-28 08:35:55.548087000 +0200 @@ -36,6 +36,10 @@ else util::load_module "if_tap" fi + + # 15-CURRENT does not allow adding members with IP address unles + # member_ifaddrs is set to 1: + sysctl net.link.bridge.member_ifaddrs=3D1 sysctl net.link.tap.up_on_open=3D1 >/dev/null 2>&1 WARNING! It did not help to add this sysctl to /etc/sysctl.conf (maybe it is set too late?). References https://cgit.freebsd.org/src/commit/?id=3D0a1294f6c610948d7447ae276df74a6d5= 269b62e Please note that manual says that this option will be removed in FreeBSD 16 entirely so we will need to find other way how to solvet that. Because reve= rse way (IP assigned to bridge only) does not allow using DHCP assigned IP to h= ost which is serious limitations - many shared networks does not support static= IP addresses for users Workstations. --=20 You are receiving this mail because: You are the assignee for the bug.=