From nobody Mon Oct 28 00:22:56 2024 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 4XcDcd5LNhz5bcZ6 for ; Mon, 28 Oct 2024 00:22:57 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XcDcd0sDgz424W for ; Mon, 28 Oct 2024 00:22:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730074977; 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: in-reply-to:in-reply-to:references:references; bh=25MMY7ABoDQljNldLixmGfF9fMYYRSK+lH5Khd5lcmA=; b=Nu+yesp6VTCTdsor93vDDHOzMg2fQ6B0bSML4lkzaujVa6Fn00u0NyCf/4S3kDcW9F4WSP Ko4jWDNOjj7w1TcdG/W/nZaLwpL5qgz+cntKiwIs7caF/9RJCaE+ucKLsi76xsrNFx6tvy IMs1jfi19qLL0F81ORm+ww+U1GzOpddtYbcYRwR+V5eJsLrOei1L76O7vj36MynsgPlnx8 kHp3w5IG9f0+WtEv9SoWUTAeBLLJ1rxQJrKwhag/Tu03GP+muz1KY0AWGadI8txCO49igz n89F2XnsijsG/yhaKndStZRfdn4veDlfNvwB7VgsGYiJ1sebqfCZTx2hlWgsUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730074977; a=rsa-sha256; cv=none; b=RYDUP4xSKncQxY1Q1Y4YDLhoTIU/Gt/8bzYJV3Jsca8dLt0jN3r42BcUdRPBu1krajqoZl l1jGHXyw4DR0RX20BRaMgL8GPFphMirSu5wzdK0JVuiIDoavTCmS1quJdTmySVQlNxJVJ7 4LgAaw1kJw6X1sza/YtYKWuhxnUCklfLiiHzd9wgTGWOKmRrOJvSLv7ShQ6x5eYfQuAfZr iPZ8CGL5MuQ06+UF4RheQE8VnqDg+YZU3rVyRJVsEenrXuGF05yzNVPspvbFkR/Pyl6p99 vgYG5P/p6F9HRAoQ4tSe2Bymnw3gOGvyYiuXf9sozEPsVCv+IBZLWFFp1w9zqA== 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 4XcDcb6QTnzGd3 for ; Mon, 28 Oct 2024 00:22:55 +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 49S0Mtw0085657 for ; Mon, 28 Oct 2024 00:22:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49S0MtiJ085655 for bugs@FreeBSD.org; Mon, 28 Oct 2024 00:22:55 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 170847] [rc] static IPv6 addresses+vlans don't work ala rc(5) Date: Mon, 28 Oct 2024 00:22:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 9.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D170847 Tatsuki Makino changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tatsuki_makino@hotmail.com --- Comment #4 from Tatsuki Makino --- This will be a configuration for the 14.1-STABLE generation, but... Since /etc/rc.conf is a configuration sh script, most sh syntax can be used. However, it cannot use most external commands. It's because it's read before the file system is mounted. VLANs with 802.1Q seem to have a negative impact on link local addresses. This is because, basically, there is only one MAC address of the parent. The following has already happened > inet6 fe80::207:43ff:fe07:3f71%cxgb1 prefixlen 64 scopeid 0x2=20 > inet6 fe80::207:43ff:fe07:3f71%cxgb1.223 prefixlen 64 scopeid 0xe= =20 It seems that it is better to avoid this, and the configures to avoid it ar= e as follows. vlans_cxgb1=3D"vlan0" # for this explain clarity, it will be vlan0 if ! : ; then ifconfig_vlan0=3D"inet6 fe80::589c:fcff:fe00:1 prefixlen 64 -ifdisabled -auto_linklocal" # however, it does not indicate that this interface is IPv6 interface. ifconfig_vlan0_alias0=3D"inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" elif : ; then ifconfig_vlan0=3D"down" ifconfig_vlan0_ipv6=3D"inet6 fe80::589c:fcff:fe00:1 prefixlen 64 -auto_linklocal" ifconfig_vlan0_alias0=3D"inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" else ifconfig_vlan0=3D"down" ifconfig_vlan0_ipv6=3D"inet6 down -auto_linklocal" ifconfig_vlan0_alias0=3D"inet6 fe80::589c:fcff:fe00:1 prefixlen 64" ifconfig_vlan0_alias1=3D"inet6 2001:db8::589c:fcff:fe00:1 prefixlen 64" fi I've written multiple examples using conditional branching. The common denominator is that it does not automatically add a link-local address, and that the interface is kept down until a link-local address is assigned. And the link-local address should be the first address to be assigned. In my environment, this seems to stabilize neighbor discovery. --=20 You are receiving this mail because: You are the assignee for the bug.=