Friday, May 16, 2008

Howto: Disable IPv6 in Ubuntu

Disabling IPv6 in Ubuntu is a simple exercise.
Firstly to check that IPv6 is running run

netstat -an | grep udp6

If you get any results you still have IPv6 running

You need to edit the aliases file.

sudo vi /etc/modprobe/aliases

Look for the line that says the following

alias net-pf-10 ipv6

I commented this line out with a #

then added the following just below it

alias net-pf-10 off

I did the same for appletalk and ipxI also removed all IPv6 references from my hosts file. This isn't required but I like my system clean and I do use my hosts file so if I see those unused entries there it worries me.

After a reboot when you run

netstat -an | grep udp6

You should not see any results returned and IPv6 will be off.

No comments: