Disable ipv6 on Ubuntu – updated for 20.04

So this used to work prior to 20.04
$ sudo nano /etc/sysctl.conf

add the following lines:
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

$ sudo sysctl -p

$ sudo reboot now

https://itsfoss.com/disable-ipv6-ubuntu-linux/

Updated for version 20.04

$ sudo nano /etc/default/grub

Replace the following two lines

GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1″
GRUB_CMDLINE_LINUX=”ipv6.disable=1″

$ sudo update-grub

$ sudo reboot now

How to disable IPv6 on ubuntu 20.04

Leave a Reply

Line and paragraph breaks automatic.
XHTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Comments Protected by WP-SpamShield Spam Filter