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

Re: Permanent Use of IPv4



Reco composed on 2019-02-15 18:23 (UTC+0300):

> On Fri, Feb 15, 2019 at 10:13:14AM -0500, Stephen P. Molnar wrote:

>> Thanks for help from this gropup I can force the use of IPv4 by running:  sysctl -w net.ipv6.conf.all.disable_ipv6=1.
> ...
>> My question is how can I implement the sysctl statement on boot?

> echo 'net.ipv6.conf.all.disable_ipv6 = 1' > /etc/sysctl.d/noipv6.conf

There already may be a file there for the purpose, maybe better to take a looksee first instead of
possibly blindly overwriting:

####
#
# /etc/sysctl.conf is meant for local sysctl settings
#
# sysctl reads settings from the following locations:
#   /boot/sysctl.conf-<kernelversion>
#   /lib/sysctl.d/*.conf
#   /usr/lib/sysctl.d/*.conf
#   /usr/local/lib/sysctl.d/*.conf
#   /etc/sysctl.d/*.conf
#   /run/sysctl.d/*.conf
#   /etc/sysctl.conf
#
# To disable or override a distribution provided file just place a
# file with the same name in /etc/sysctl.d/
#
# See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information
#
####

To me, "on boot" implies something on the kernel cmdline, e.g.:

	ipv6.disable=1

Even using that I sometimes find ipv6 errors in dmesg that can be cured via an avahi config change.
-- 
Evolution as taught in public schools is religion, not science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


Reply to: