Disable ipv6 in Ubuntu 18.04 server
If you want to disable ipv6 in Ubuntu 18.04 server you can do this by editing the file: /etc/default/grub. Add ipv6.disable=1 to the two lines as shown below. After that you need to update grub and reboot the server: