Disable IPv6 in Ubuntu

Disable IPv6 in Ubuntu

IPv6 is the next internet protocol, but most equipment is not ready for this yet. So running a small server on my intranet I have no use for it and frankly it started causing me some problems.

But it's easy to disable in Ubuntu so here goes, first we need to open a file called '/etc/sysctl.conf' and a add a few lines to the bottom of this file and these are

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Save the file and reboot, now you should have IPv6 disabled, then to check

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

You should have 1 returned and that's it, job done.


24/05/2016 11:42:00 Shaun Freeman Filed Under: Linux Debian, Linux, Server, Ubuntu

Twitter Feed
Shaun Freeman @Zendmaster

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/RVuVCieSsD Dr. Paul Mason - 'Low Carb from a Doctor's perspective'

Shaun Freeman @Zendmaster

I added a video to a @YouTube playlist https://t.co/MFRRuBG23F It's Already Too Late - Elon Musk

Shaun Freeman @Zendmaster

I added a video to a @YouTube playlist https://t.co/36S3yk9oio Elon Musk's Last Warning About Artificial Intelligence

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/Uu3RzICAjp Installing a Hyper 212 EVO on AMD AM3+

Shaun Freeman @Zendmaster

Setting Up A Test Environment For PHP In VirtualBox - Part 6 Installing Multiple PHP Versionss: https://t.co/xNXeX4XDlQ via @YouTube