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/shwHqVAisr PHP UK Conference 2016 - Marco Pivetta - Doctrine ORM Good Practices and Tricks

Shaun Freeman @Zendmaster

Working on new twitter updates for Uthando CMS.

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/RnEYvUDFx2 The Josephus Problem - Numberphile

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/TEGV4DhLGI Blown Like the Wind

Shaun Freeman @Zendmaster

I liked a @YouTube video https://t.co/lSFWmpHTX1 Patrick Stewart talks about meeting Sting on the set of DUNE (Funny to the EXTREME)