From owner-freebsd-net@freebsd.org Mon Jul 6 14:25:45 2020 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 418CE368EE8 for ; Mon, 6 Jul 2020 14:25:45 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) 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 4B0nt070cqz478g for ; Mon, 6 Jul 2020 14:25:44 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: by mailman.nyi.freebsd.org (Postfix) id F043F36931B; Mon, 6 Jul 2020 14:25:44 +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 F0058368CED for ; Mon, 6 Jul 2020 14:25:44 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (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 4B0nsz4kYFz473y for ; Mon, 6 Jul 2020 14:25:43 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4B0nsx4j6qz3mWK; Mon, 6 Jul 2020 14:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1594045541; bh=kGBh9mdOkKD/1mlpGwrq714m qJiT5OUDd9vDev5UIV0=; b=Xfb7ze1FCHg0guaiIanIjKpH5Lx65XnEGUUiID9z UYmbY29SOPjtK7D0auqRpM6uN3/AbcvYii3hwZhgBTpIxCZjmntZekJHr8RiBam3 eESmBUGs+w382uWOite3KqPXMxIaeHx5tzzerkquTCPxy6hen36znVn40prbSzxI /C0= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id R0fIQIUtGn14; Mon, 6 Jul 2020 14:25:41 +0000 (UTC) Received: from garnet.daemonic.se (host-95-195-31-128.mobileonline.telia.com [95.195.31.128]) by mail.daemonic.se (Postfix) with ESMTPSA id 4B0nsx0D1pz3mWF; Mon, 6 Jul 2020 14:25:40 +0000 (UTC) Subject: Re: Specifying link-local address in rc.conf To: Eugene Grosbein , net@FreeBSD.org References: <713e1f3e-4dd9-8dcf-c6d2-15c684bdce5b@daemonic.se> From: Niclas Zeising Message-ID: Date: Mon, 6 Jul 2020 16:25:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B0nsz4kYFz473y X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=daemonic.se header.s=20151023 header.b=Xfb7ze1F; dmarc=pass (policy=none) header.from=daemonic.se; spf=pass (mx1.freebsd.org: domain of zeising@daemonic.se designates 176.58.89.161 as permitted sender) smtp.mailfrom=zeising@daemonic.se X-Spamd-Result: default: False [-3.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; NEURAL_HAM_MEDIUM(-1.01)[-1.015]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.98)[-0.978]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[daemonic.se:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.53)[-0.531]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US]; TAGGED_FROM(0.00)[freebsd]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[95.195.31.128:received] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2020 14:25:45 -0000 On 2020-07-06 16:00, Eugene Grosbein wrote: > 06.07.2020 18:05, Niclas Zeising wrote: >> Hi! >> Is it possible to specify a link-local address in rc.conf, and get only that link-local address? >> >> When I add a specific link-local address, such as fe80::1/64, to an interface from the command line, >> and then add a global uincast address, it works as expected, I do not get an additional link-local address. > > What is exact syntax what works for you manually? ifconfig vtnet0 inet6 fe80::1/64 ifconfig vtnet0 inet6 2001:6b8::1/64 This does not create additional link-local addresses, just fe80::1. > >> When I try to do the same in rc.conf however, it does not work. >> I have added the following: >> ifconfig_vtnet0_inet6="inet6 fe80::1/64" >> ifconfig_vtnet0_alias0="2001:6b8::1/64" > > You missed "inet6 " address family prefix for the last line. Does adding it help? > No, that's just an error from transcribing the setup. With that in /etc/rc.conf I get three addresses on the interface; * fe80::1/64 * the EUI64 link-local address (fe80::/64) * 2001:6b8::1/64 Regards -- Niclas