From nobody Sun Jan 26 02:42:04 2025 X-Original-To: freebsd-net@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 4YgbRm51x8z5mHv8 for ; Sun, 26 Jan 2025 02:42:12 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YgbRm4Gshz482D; Sun, 26 Jan 2025 02:42:12 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737859332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y4Lrms9sEDmHKwVbCu4CaLw5yAlECC0zwMA2FjP/NkQ=; b=T+lYQRZlW7LRmGUWc64xe/YOh8ZLbzIWZoRYsfqnXeO8Hajis3Kwzu+98DyPurLKEOIkbC /D5A0FaHQ4m47RimSZpIELG/sy8fnwA6+WFmmqTWumy9CSm9adypY3O4zu2MXZWyS7Ue6i dscLaqy6ZWlyKnqHLGK0Qj3afIBAzqx222mhZa8XlkdmCfD9PnpnU5znqFJVpPx0qwIwIl LjtLj1URKM0a4uClVBIfk7JTFot6owlGL90KHbH0ArYlEA338YHxc9lJ5aUSD1GklIe94u K4TRS+UVsZ5+RTm8Q35lv65SjGMPNEW+cFIu/fzKJEZL+PJfzOEkpb0gpKyhYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737859332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y4Lrms9sEDmHKwVbCu4CaLw5yAlECC0zwMA2FjP/NkQ=; b=rP4k/K1cUVHXvxUVEu41cWwHeO/rv6on29griFJWGlmxstDghvc8PqUVeOmv/DVzxExNYw qKnPMFjMETsmJoXZEp+7xvlHoWpWINhzX+0JJrZydKzr7TGLGLyLWj7h0r3DJuEdK8Cw+7 IcHRMvAhrBk8u1o8c1F/QgTkq1s7Z5nrZrL7/LJBTb4FApFB+Rj7DE83veCOzOqkbk3uVf N0XpW3wnjXD+l6iJqAD1q+ef/MHIzelgZU6qxVjSVTA5W5IuH2XaafuS0H9NqMBeSJEWJZ 99BrheYYKGsoKQ/L8QS3mto3NDHsepWvS0zJDT73PjON1k8GGExSQXuvP7Qrng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737859332; a=rsa-sha256; cv=none; b=B+yjE31lZyi0TfLBwLY9nfgeErYLwMN8i8lTJSel8h1YQX19tU9wlpWOoJds649q3nSeja DunSdmm/BqxL32U6FjJbMpN8TPeFsnOKUyrE/U4wCjVEfijr2KjnG0GGcm8PqQH9Wxplqj DXvLyFRqy4YN22/EKEX9Z9awbpw8i7Q10qo8OF3QdebOtawGf46DdbdddT/6lwU7jSAMHF x49LMObqSzq7wojFK5R3MyzqkmgSuFGvldq1WQQJS8ELJCyDQu0Mw/72ShpBE7aazxNSQ5 ntKUmCTkjtGG5eZS1rOwox7GsCoUck8atqTWpXgVMd/NfxjbQxI08hOldke5kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YgbRl3g2HzQVL; Sun, 26 Jan 2025 02:42:11 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: which rc.conf syntax for vlans ? if.N or vlanN ? From: Zhenlei Huang In-Reply-To: Date: Sun, 26 Jan 2025 10:42:04 +0800 Cc: FreeBSD Net Content-Transfer-Encoding: quoted-printable Message-Id: <56597C14-A910-4E14-B9CA-A2F9D3548277@FreeBSD.org> References: <61620090-8A64-4CBF-9775-AC09E2A495E6@FreeBSD.org> To: Kurt Jaeger X-Mailer: Apple Mail (2.3696.120.41.1.10) > On Jan 26, 2025, at 3:19 AM, Kurt Jaeger wrote: >=20 > Hi! >=20 >>> Until around FreeBSD 13.2, one could create vlans with this: >>>=20 >>> cloned_interfaces=3D"vlan200" >>> ifconfig_vlan200=3D"vlandev ix0 vlan 200 inet 192.168.10.1/24" >>=20 >> This is the general approach to clone create interfaces, applicable >> to vlan(4) but also for other driver such as gif(4) and wg(4) etc. >=20 > It worked even for dual stack: >=20 > cloned_interfaces=3D"vlan2000" > ifconfig_vlan2000=3D"vlandev mce0 vlan 2000 192.168.10.12/24" > ifconfig_vlan2000_ipv6=3D"inet6 = 2001:db8:0001:0010:0000:0000:0000:eeee/64" >=20 > and running: >=20 > ifconfig vlan2000 create >=20 > produced: >=20 > vlan2000: flags=3D8843 metric = 0 mtu 1500 > = options=3D1c680703 > ether 10:70:fd:53:ed:ae > inet 192.168.10.12 netmask 0xffffff00 broadcast 192.168.10.255 > inet6 fe80::1270:fdff:fe53:edae%vlan2000 prefixlen 64 scopeid = 0x4b > inet6 2001:db8:1:10::eeee prefixlen 64 > groups: vlan > vlan: 2000 vlanproto: 802.1q vlanpcp: 0 parent interface: mce0 >=20 > But this no longer works with 14.2. > If I do the same steps, the ipv6 address is not configured: >=20 > vlan2000: flags=3D8843 metric = 0 mtu 1500 > = options=3D1c680703 > ether 10:70:fd:53:ed:ae > inet 192.168.10.12 netmask 0xffffff00 broadcast 192.168.10.255 > inet6 fe80::1270:fdff:fe53:edae%vlan2000 prefixlen 64 scopeid = 0x4b > inet6 2001:db8:1:10::eeee prefixlen 64 > groups: vlan > vlan: 2000 vlanproto: 802.1q vlanpcp: 0 parent interface: mce0 >=20 > What's wrong here ? I tested on FreeBSD 14.2, `ifconfig_vlan2000_ipv6=3D...` also works as = intended. IPv6 address is configured correctly. Am I missing something ? >=20 >>> Will both variants be supported in the future (14, 15) or is one >>> of them on it's way out ? >>=20 >> I believe both will be supported in future releases. >=20 > Ok, then the vlanNNNN variant has some issues with ipv6 in 14.2. >=20 > --=20 > pi@FreeBSD.org +49 171 3101372 Now what ? >=20