On Tue, Jul 26, 2022 at 12:33:34AM +0000, Klemens Nanni wrote: > Some of my test machines only require IPv6 link-local addressing. > When SLAAC is available 'autoconf' will do as well, otherwise 'eui64' > is required to configure the interface as such.
Sorry, that's wrong. I meant to say that autoconf will always provide a link-local address (even when SLAAC is unavailable), but I often don't need or want autoconf where eui64 is enough, hence the addition. > Note this merely expands the list of answers for this specific question. > It does not change any of the installer's code or logic around anything > else related to autoconf or IPv6. That still holds true. > Feedback? OK? > > Index: install.sub > =================================================================== > RCS file: /cvs/src/distrib/miniroot/install.sub,v > retrieving revision 1.1202 > diff -u -p -r1.1202 install.sub > --- install.sub 28 Jun 2022 12:10:08 -0000 1.1202 > +++ install.sub 26 Jul 2022 00:18:59 -0000 > @@ -1170,7 +1170,7 @@ v6_defroute() { > # Configure IPv6 interface $1, add hostname $2 to the hosts file, > # create the hostname.if file $3. Ask the user for the IPv6 address > # and prefix length if the address was not specified in CIDR notation, > -# unless he chooses 'autoconf'. > +# unless he chooses 'autoconf' or 'eui64'. > v6_config() { > local _if=$1 _name=$2 _hn=$3 _addr _newaddr _prefixlen > > @@ -1190,14 +1190,14 @@ v6_config() { > ifconfig $_if -inet6 > > while :; do > - ask_until "IPv6 address for $_if? (or 'autoconf' or 'none')" \ > + ask_until "IPv6 address for $_if? (or 'autoconf' or 'eui64' or > 'none')" \ > "${_addr:-none}" > case $resp in > none) return > ;; > - autoconf) > - ifconfig $_if inet6 autoconf up > - echo "inet6 autoconf" >>$_hn > + autoconf|eui64) > + ifconfig $_if inet6 $resp up > + echo "inet6 $resp" >>$_hn > return > ;; > esac >