[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#851526: Please provide command-line option to disable ipv6



On Sun, 2017-01-15 at 17:06 -0700, Nicholas D Steeves wrote:
> On Sun, Jan 15, 2017 at 02:43:45PM -0800, Josh Triplett wrote:
> > Package: netcfg
> > Severity: wishlist
> > 
> > netcfg provides an option to completely disable all automatic
> > configuration, but no option to disable ipv6 autoconfig (SLAAC) while
> > leaving DHCP enabled.  Putting ipv6.disable=1 on the kernel command line
> > will cause netcfg to realize the network has no ipv6, but only after
> > waiting a similar timeout for a link-local address, defeating the
> > purpose.
> > 
> > Please either detect disabled ipv6 and skip those steps, or provide a
> > command-line option to disable ipv6 in netcfg.
> > 
> > (Context: repeatedly testing preseed installs in a virtual machine, and
> > I don't want to keep waiting on ipv6 autoconfig timing out.)
> > 
> 
> From what I've read, ipv6.disable=1 hasn't been sufficient for quite
> some time, and one requires something like the following in
> /etc/sysctl.d/:
> 
> 00-disable-ipv6.conf:
> net.ipv6.conf.all.disable_ipv6 = 1
> net.ipv6.conf.default.disable_ipv6 = 1
> net.ipv6.conf.lo.disable_ipv6 = 1

You read wrong.  ipv6.disable=1 does all that, and more.
(See https://kernel.org/doc/Documentation/networking/ipv6.txt)

Ben.

-- 
Ben Hutchings
Every program is either trivial or else contains at least one bug

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: