From nobody Tue Feb 14 01:00:42 2023 X-Original-To: freebsd-questions@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 4PG2vR5Jq7z3rJPj for ; Tue, 14 Feb 2023 01:00:51 +0000 (UTC) (envelope-from possessor.assizer305@aceecat.org) Received: from beesty.loosely.org (beesty.loosely.org [IPv6:2600:3c01:e000:4c0::2]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4PG2vQ6dQmz3q1V for ; Tue, 14 Feb 2023 01:00:50 +0000 (UTC) (envelope-from possessor.assizer305@aceecat.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=aceecat.org header.s=rsa header.b=M9i+9gu0; spf=pass (mx1.freebsd.org: domain of possessor.assizer305@aceecat.org designates 2600:3c01:e000:4c0::2 as permitted sender) smtp.mailfrom=possessor.assizer305@aceecat.org; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aceecat.org ; s=rsa; h=Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JMURb/O1T6Yf5+Lhw8r4TtcvnfH0E0yscRUbaC8E74E=; b=M9i+9gu0wZ0dMUnNoZ85oFxON+ qD/H1y+PHGcb84GDsY83uzf8CvFE4Gpng7FZSt+s/4FXdAeRI//1Z1/OSuYJHnfnLVcp0S9ew54xV l4O/OoqbVq6FLCMrimg7GaHKV5374DsXZjl/BkC8ctzOd+/qUMovql3tvE7EcbJVH4sXW38ttxHqV 7KuPRS9vH+9RRmfTTSGQ57/M+V1RqKHKxFhGdfsaxQbX0ono8ZS1YKItp1pPPSBkdwVrEgNHaaLm8 B7FmiyCuJ3LE9mPNyzIl9Ge08e13QPlTHWDjzYu2CLqPBUx7Yx5mAuKNpMd9YmIPkRy3fr1ALyQbV MLfxW76A==; Received: from [::1] (helo=beesty) by beesty.loosely.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96-20-303f59ccb) (envelope-from ) id 1pRjgY-000HLw-30 for freebsd-questions@freebsd.org; Mon, 13 Feb 2023 17:00:42 -0800 Date: Mon, 13 Feb 2023 17:00:42 -0800 From: Ian Zimmerman To: freebsd-questions@freebsd.org Subject: alias addresses both ipv4 and ipv6 Message-ID: <20230214010042.it7xu4zgx6ad4cht@beesty.loosely.org> Mail-Followup-To: Ian Zimmerman , freebsd-questions@freebsd.org List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: itz@aceecat.org X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[aceecat.org:s=rsa]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[aceecat.org:+]; ASN(0.00)[asn:63949, ipnet:2600:3c01::/32, country:SG]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[aceecat.org]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PG2vQ6dQmz3q1V X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hello, sorry for the newbie question. We live in the age of migrations. I need to have both an IPv4 and an IPv6 alias on the same net interface, and I am unsure of the numbers in the option names. If I screw this up I'll lock myself out of the system, so I better get it right. This is the networking part of my rc.conf now, with the obvious obfuscations. ifconfig_vtnet0="DHCP -tso -rxcsum -txcsum" #ifconfig_vtnet0_alias0="123.123.123.161/17" ifconfig_vtnet0_ipv6="inet6 accept_rtadv" ifconfig_vtnet0_alias0="inet6 dead:beef:dead:beef::2 prefixlen 64" The question is how to add the commented out line. Should it be alias0 (no conflict with the ipv6?), alias1 or what? I have read the rc.conf manpage, and sadly it doesn't really answer this. It discusses each of ipv4 and ipv6 in isolation. -- Ian