From nobody Sat May 07 16:24:47 2022 X-Original-To: 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 C7F251ACB415 for ; Sat, 7 May 2022 16:24:47 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KwXp73xNhz4X8w for ; Sat, 7 May 2022 16:24:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 5CFE413FD0 for ; Sat, 7 May 2022 16:24:47 +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 247GOlUb019632 for ; Sat, 7 May 2022 16:24:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 247GOlP2019631 for bugs@FreeBSD.org; Sat, 7 May 2022 16:24:47 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: bugs@FreeBSD.org Subject: [Bug 263847] netgraph ng_bridge: can't ge an IP using DHCP when creating a vlan using an interface in the bridge Date: Sat, 07 May 2022 16:24:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: benoitc@enki-multimedia.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651940687; 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=8/pMYCHqf9+vo66YtfgS5gSraFb/pcxBKH/1RBNla40=; b=JyshhLtNmA/+vf5FtdAowrdAJTJ0RumkJS18vjggLA+ZB4cGcQyOXJQME/2AWMwjqIqxhb onKHgF44RIaNwT44OuBjyOUybIlsuXuRHHv2dc8WF4nxWIUzdRg/3uYAG9OYEGkX6+H2lc WViacrWWCe+/J/dr8lssRzBwNHOzeoTT/xdimQLNNErVwixkbZ+W9drgSe+Tlm+/ySeOkB hniboH3V7vq3iyho+iXRi9p8Pv+s0vafXeBTwXcD5RWdNwQL4zQTwMr//yFbLJ6bYmV4EN D8HMImuzI5kSCNV5GXhjH0lRmjg/dIX56WrBxPcn7G3EIP5b5cUIYBd417JkPQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651940687; a=rsa-sha256; cv=none; b=bkJ9JF+1Tajph89v5Uz7SgixtUwZFq020JcJwvtIV4lHb7Ym/wDkb+9h4iYidyzuwznP1k gP9ht2UcySi20UMtLWL0YTU3kEBpXgtckAF6S97VvwXl730APa3HbTZM8PCDZgRG98Nngq 123pzHRM3Bx9CPXXo/SYyhRTKHXQBCF9nABLMRWxQpHi0CN3ksqRP56G0lrdvCDJJcfIl7 7HpYvaS/s8eaMxjs3CxFfT4U8Xf9+e/08H4yJdY5VvrjPpZW40/WULMWq98z/v6KmE0Lqx Fl7Y97IxNwEKQ9Wzlb4o71pgglT0FGAWpb4Y3eG9SHchrfOl+TR1v2x4LZZFKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263847 Bug ID: 263847 Summary: netgraph ng_bridge: can't ge an IP using DHCP when creating a vlan using an interface in the bridge Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: benoitc@enki-multimedia.eu I am using a bridge `bridge0` that will contain a native nic interface ixl3= and add a tap interface in it: ``` ifconfig bridge0 create ifconfig bridge0 addm ixl3 addm tap0 ifconfig bridge0 bridge0: flags=3D8843 metric 0 mtu = 1500 ether 58:9c:fc:10:e7:20 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: ixl3 flags=3D143 ifmaxaddr 0 port 6 priority 128 path cost 2000 member: tap1 flags=3D143 ifmaxaddr 0 port 12 priority 128 path cost 2000000 member: tap0 flags=3D143 ifmaxaddr 0 port 11 priority 128 path cost 2000000 groups: bridge vm-switch viid-73f50@ nd6 options=3D1 ``` When I create a bhyve vm `test` with a network interface on this bridge, it= is able to access to the vlan101: ``` root@test:~ # ifconfig vtnet1 up root@test:~ # dhclient vtnet1.101 DHCPDISCOVER on vtnet1.101 to 255.255.255.255 port 67 interval 4 DHCPOFFER from 10.101.1.1 DHCPREQUEST on vtnet1.101 to 255.255.255.255 port 67 DHCPACK from 10.101.1.1 bound to 10.101.1.14 -- renewal in 300 seconds. ``` I can access to this machine using SSH and ping it with success. But when I= try to do the same using netgraph (initial bridg0 has been destroyed), my VM is= not able to retrieve the IP using DHCP. It is only possible to do it on the untagged vlan. Is there something wrong in the configuration below?=20 Why the behaviour is not the same using a bridge created with if_bridge? Is this a bug? ``` ngctl -f- <