From nobody Sat Jan 25 19:19:38 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 4YgPd85rBkz5lnKC for ; Sat, 25 Jan 2025 19:19:40 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from fc.opsec.eu (fc.opsec.eu [IPv6:2001:14f8:200:4::4]) by mx1.freebsd.org (Postfix) with ESMTP id 4YgPd70SQlz3QYC for ; Sat, 25 Jan 2025 19:19:38 +0000 (UTC) (envelope-from pi@freebsd.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=softfail (mx1.freebsd.org: 2001:14f8:200:4::4 is neither permitted nor denied by domain of pi@freebsd.org) smtp.mailfrom=pi@freebsd.org; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none) Received: from pi (uid 104) (envelope-from pi@freebsd.org) id 11196 by fc.opsec.eu (DragonFly Mail Agent v0.13+ on fc.opsec.eu); Sat, 25 Jan 2025 20:19:38 +0100 Date: Sat, 25 Jan 2025 20:19:38 +0100 From: Kurt Jaeger To: FreeBSD Net Subject: Re: which rc.conf syntax for vlans ? if.N or vlanN ? Message-ID: References: <61620090-8A64-4CBF-9775-AC09E2A495E6@FreeBSD.org> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61620090-8A64-4CBF-9775-AC09E2A495E6@FreeBSD.org> X-Spamd-Result: default: False [1.83 / 15.00]; VIOLATED_DIRECT_SPF(3.50)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; NEURAL_HAM_LONG(-0.98)[-0.980]; ONCE_RECEIVED(0.20)[]; RCVD_NO_TLS_LAST(0.10)[]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[pi]; R_SPF_SOFTFAIL(0.00)[~all]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; GREYLIST(0.00)[pass,meta]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Spamd-Bar: + X-Rspamd-Queue-Id: 4YgPd70SQlz3QYC Hi! > > Until around FreeBSD 13.2, one could create vlans with this: > > > > cloned_interfaces="vlan200" > > ifconfig_vlan200="vlandev ix0 vlan 200 inet 192.168.10.1/24" > > 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. It worked even for dual stack: cloned_interfaces="vlan2000" ifconfig_vlan2000="vlandev mce0 vlan 2000 192.168.10.12/24" ifconfig_vlan2000_ipv6="inet6 2001:db8:0001:0010:0000:0000:0000:eeee/64" and running: ifconfig vlan2000 create produced: vlan2000: flags=8843 metric 0 mtu 1500 options=1c680703 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 But this no longer works with 14.2. If I do the same steps, the ipv6 address is not configured: vlan2000: flags=8843 metric 0 mtu 1500 options=1c680703 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 What's wrong here ? > > Will both variants be supported in the future (14, 15) or is one > > of them on it's way out ? > > I believe both will be supported in future releases. Ok, then the vlanNNNN variant has some issues with ipv6 in 14.2. -- pi@FreeBSD.org +49 171 3101372 Now what ?