Re: Disabling IPv6 by default when creating a new namespace in Linux

Bjørn Mork <[email protected]> Tue, 07 Jun 2022 22:05:45 +0200
Newsgroups gmane.linux.debian.devel.ipv6
Organization m
Message-ID <[email protected]>
Dheeraj Kandula <[email protected]> writes:

> Thanks Bj=C3=B8rn for the reply. But with the grub command line, IPv6 opt=
ion is
> not available i.e.* net.ipv6.conf.all.disable_ipv6* i.e. net.ipv6 itself =
is
> not available.
>
> $ sudo sysctl net.ipv6
> sysctl: cannot stat /proc/sys/net/ipv6: No such file or directory

Huh?  Did you set ipv6.disable instead og ipv6.disable_ipv6?  Those are
very different, as documented in the module:


bjorn@miraculix:~$ modinfo ipv6
name:           ipv6
filename:       (builtin)
alias:          net-pf-10
license:        GPL
file:           net/ipv6/ipv6
description:    IPv6 protocol stack for Linux
author:         Cast of dozens
parm:           disable:Disable IPv6 module such that it is non-functional =
(int)
parm:           disable_ipv6:Disable IPv6 on all interfaces (int)
parm:           autoconf:Enable IPv6 address autoconfiguration on all inter=
faces (int)




Bj=C3=B8rn