On my system I see the following values: $cat /sys/module/ipv6/parameters/disable_ipv6 0
$ sudo sysctl net.ipv6.conf.all.disable_ipv6 net.ipv6.conf.all.disable_ipv6 = 1 $ sudo sysctl net.ipv6.conf.default.disable_ipv6 net.ipv6.conf.default.disable_ipv6 = 1 Are you suggesting that "cat /sys/module/ipv6/parameters/disable_ipv6" should be 1? Dheeraj On Tue, Jun 7, 2022 at 1:11 PM Bjørn Mork <[email protected]> wrote: > Dheeraj Kandula <[email protected]> writes: > > > Thanks for your reply. Are you suggesting that if I boot up the > > machine with "net.ipv6.conf.all.disable_ipv6=1" and > > "net.ipv6.conf.default.disable_ipv6=1", IPv6 should be disabled in newly > > created namespaces too. > > No. But if you boot with "ipv6.disable_ipv6=1" then you should see > > grep . /sys/module/ipv6/parameters/disable_ipv6 > > returning 1. This will be used as the default value of > "net.ipv6.conf.default.disable_ipv6" for all namespaces. Including the > default namespace. > > That's a lot of nested defaults ;-) Hope you get the meaning. > > > Bjørn >

