ip

All posts tagged ip

$ sudo echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

But if you want it perm set

$ sudo vi /etc/sysctl.conf

append…

net.ipv6.conf.all.disable_ipv6 = 1

Seems even after doing this on my Fedora box, that didn’t work either…it was still sending DNS aaaa traffic out.   Added this and rebooted..and this seems like it fixed it

$ sudo touch /etc/modprobe.d/disable-ipv6

$ sudo echo “options ipv6 disable=1” >> /etc/modprobe.d/disable-ipv6

Another possible way,

$ sudo vi /etc/default/grub

GRUB_CMDLINE_LINUX=”ipv6.disable=1 rd.lvm.lv=fedora/swap rd.md=0…..

$ sudo reload

$ sudo grub2-mkconfig-o /boot/grub2/grub.cfg

$ sudo reboot

And even yet another possible way…

$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1