Hi. On Fri, Feb 15, 2019 at 10:55:23AM -0500, Felix Miata wrote: > 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:
That's true in the case of generic OP. But as a list regular I'm acquainted with Stephen, so I find this scenario unlikely. > To me, "on boot" implies something on the kernel cmdline, e.g.: > > ipv6.disable=1 And by doing *this* you're risking breaking systemd and the overall boot process. Yep, the thing's written that way - it *expects* (some can say 'forces') you to have IPv6. Hence this BSD-style "safe hack". Do not touch "base system" (systemd in this case), but implement assorted kludges around it. Reco