Index | Thread | Search

From:
Peter Hessler <phessler@theapt.org>
Subject:
Re: installer: default to IPv6 autoconf if IPv4 is not configured
To:
Klemens Nanni <kn@openbsd.org>
Cc:
Andrew Hewus Fresh <andrew@afresh1.com>, OpenBSD tech <tech@openbsd.org>
Date:
Sun, 16 Nov 2025 11:09:52 +0100

Download raw body.

Thread
On 2025 Nov 16 (Sun) at 08:16:01 +0000 (+0000), Klemens Nanni wrote:
:16.11.2025 14:52, Peter Hessler пишет:
:> On 2025 Nov 15 (Sat) at 20:01:03 -0800 (-0800), Andrew Hewus Fresh wrote:
:> :On Fri, Nov 14, 2025 at 04:14:06PM +0000, Klemens Nanni wrote:
:> :> When you opt out of IPv4, the only sane default for IPv6 becomes 'autoconf'
:> :> as we cannot magically guess an address and 'none' means no network at all,
:> :> which is equivalent to not configuring the interface in the first place:
:> :> 
:> :> 	 Available network interfaces are: vio0 vlan0.
:> :> 	 Network interface to configure? (name, lladdr, '?', or 'done') [vio0] 
:> :> 	 IPv4 address for vio0? (or 'autoconf' or 'none') [autoconf] none
:> :> 	-IPv6 address for vio0? (or 'autoconf' or 'none') [none] 
:> :> 	+IPv6 address for vio0? (or 'autoconf' or 'none') [autoconf] 
:> :> 
:> :> The diff is trivial and the result is typing convenience for installs
:> :> (upgrades don't run these questions) in IPv6-mostly or -only networks.
:> :> 
:> :> Feedback? OK?
:> :
:> :I didn't have time to test this, but it looks OK to me and seems like a
:> :nice idea.  I wonder if we will ever get to the point where it makes
:> :sense to always default this to on.
:> :
:> 
:> The vast majority of networks I connect to (home, work, conference) have
:> IPv6; so I would be delighted by having IPv6 autoconf as the default.
:Same here, I just thought folks would object, hence the less "invasive" mini-step.
:
:But if there's support...
:
:Feedback? Objection? OK?
:

OK


:Index: install.sub
:===================================================================
:RCS file: /cvs/src/distrib/miniroot/install.sub,v
:diff -u -p -r1.1280 install.sub
:--- install.sub	1 Nov 2025 12:54:17 -0000	1.1280
:+++ install.sub	16 Nov 2025 08:09:45 -0000
:@@ -1233,7 +1233,7 @@ v6_config() {
: 
: 	while :; do
: 		ask_until "IPv6 address for $_if? (or 'autoconf' or 'none')" \
:-			  "${_addr:-none}"
:+			  "${_addr:-autoconf}"
: 		case $resp in
: 		none)	return
: 			;;
:
:
:

-- 
NOBODY EXPECTS THE SPANISH INQUISITION.