How-to disable ipv6 on Linux ?

Debian based

Edit /etc/default/grub and add option GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 ..."

Generate conf file and update grub-mkconfig -o grub.cfg

update-grub

RedHat based

Edit /etc/sysconfig/grub and add option GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 ..."

grub2-update

Follow me on Mastodon FR Follow me on Mastodon EN

Subscribe RSS