From owner-freebsd-net@freebsd.org Sat Feb 27 22:07:49 2021 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 828DD5559B5 for ; Sat, 27 Feb 2021 22:07:49 +0000 (UTC) (envelope-from lutz@iks-jena.de) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dp0yF2cQdz4SHV for ; Sat, 27 Feb 2021 22:07:49 +0000 (UTC) (envelope-from lutz@iks-jena.de) Received: by mailman.nyi.freebsd.org (Postfix) id 57E7E5559B4; Sat, 27 Feb 2021 22:07:49 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 57A7A555B8C for ; Sat, 27 Feb 2021 22:07:49 +0000 (UTC) (envelope-from lutz@iks-jena.de) Received: from annwfn.iks-jena.de (annwfn.iks-jena.de [IPv6:2001:4bd8::19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dp0yF0hzTz4S3l for ; Sat, 27 Feb 2021 22:07:48 +0000 (UTC) (envelope-from lutz@iks-jena.de) X-SMTP-Sender: IPv6:2001:4bd8:0:666:248:54ff:fe12:ee3f Received: from belenus.iks-jena.de (belenus.iks-jena.de [IPv6:2001:4bd8:0:666:248:54ff:fe12:ee3f]) by annwfn.iks-jena.de (8.15.2/8.15.2) with ESMTPS id 11RM7eRw022377 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 27 Feb 2021 23:07:40 +0100 X-MSA-Host: belenus.iks-jena.de Received: (from lutz@localhost) by belenus.iks-jena.de (8.14.3/8.14.1/Submit) id 11RM7efH029670; Sat, 27 Feb 2021 23:07:40 +0100 Date: Sat, 27 Feb 2021 23:07:40 +0100 From: Lutz Donnerhacke To: Doug Hardie Cc: net@FreeBSD.org Subject: Re: accept_rtadv Message-ID: <20210227220740.GA28592@belenus.iks-jena.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-message-flag: Please send plain text messages only. Thank you. User-Agent: Mutt/1.5.17 (2007-11-01) X-Rspamd-Queue-Id: 4Dp0yF0hzTz4S3l X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2021 22:07:49 -0000 On Sat, Feb 27, 2021 at 12:34:56PM -0800, Doug Hardie wrote: > Ahh. The handbook is needing a note about that. There should be something similar to what was done for IPv4 where it shows adding additional addresses using: > > Ifconfig_bge0_alias0 ... > Ifconfig_bge0_alias1 ... > > That would be very helpful. Thanks for the explinations. That's a bad idea. You can't comment out some intermediate line. ifconfig_bge0_alias0="inet xxx" # ifconfig_bge0_alias1="inet yyy" ifconfig_bge0_alias2="inet zzz" will result in applying "xxx" only. but this is even worse: ifconfig_bge0_aliases=" \ inet xxx \ # inet yyy \ inet zzz \ " It results in an syntax error. So I do use: ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet xxx" # ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet yyy" ifconfig_bge0_aliases="${ifconfig_bge0_aliases} inet zzz" For _ipv6 it's different, because you need at least one _ipv6. ifconfig_bge0_ipv6="inet6 xxx" ifconfig_bge0_aliases="inet6 yyy"