Linode Forum Index Linode Forum
Linode Community Forums
 


Disabling IPv6 in Ubuntu 9.10

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
shinji



Joined: 25 Feb 2010
Posts: 10

Posted: Sat Feb 27, 2010 4:01 am    Post subject: Disabling IPv6 in Ubuntu 9.10  

I am running Ubuntu 9.10 for my Linode and it has IPv6 enabled. I do not wish to have this support right now. Is there any way I can disable it?
Back to top  
kbrantley



Joined: 21 Sep 2007
Posts: 77

Posted: Sat Feb 27, 2010 9:50 am    Post subject:  

rmmod ipv6

Also add "ipv6" to your "blacklist" file in /etc/modprobe.d/ and reboot.
Back to top  
mnordhoff



Joined: 03 May 2008
Posts: 412

Posted: Sat Feb 27, 2010 11:51 am    Post subject:  

Why do you care? You have no IPv6 connectivity, so it won't be used, and won't do any harm at all.
Back to top  
tinono



Joined: 11 Jul 2009
Posts: 30
Location: Martinique

Posted: Sat Feb 27, 2010 3:28 pm    Post subject:  

You can disable ipv6 with a sysctl call. As root :
Code: sysctl -w net.ipv6.conf.all.disable_ipv6=1
You can now check that ifconfig doesn't show ipv6 addresses anymore.

In order for this to be automated on each reboots, you create a file
Code: /etc/sysctl.d/60-noipv6.conf
which contains
Code: net.ipv6.conf.all.disable_ipv6 = 1

Hope it helps.
Back to top  
shinji



Joined: 25 Feb 2010
Posts: 10

Posted: Sun Feb 28, 2010 2:45 am    Post subject:  

kbrantley wrote: rmmod ipv6

Also add "ipv6" to your "blacklist" file in /etc/modprobe.d/ and reboot.

That was the first thing I tried but the modules do not list in my Xen configuration.

mnordhoff wrote: Why do you care? You have no IPv6 connectivity, so it won't be used, and won't do any harm at all.

Why I do or do not care is not at issue here. I asked how to disable IPv6 support. This is for the event that a program wants to prioritize attempting IPv6 over IPv4 for some reason. This also gets rid of extra binds that programs are doing needlessly. On one note I found that Apache 2 defaults to ::1 when it loads up and can't determine the fqdn so there is reason number one.

tinono wrote: You can disable ipv6 with a sysctl call. As root :
Code: sysctl -w net.ipv6.conf.all.disable_ipv6=1
You can now check that ifconfig doesn't show ipv6 addresses anymore.

In order for this to be automated on each reboots, you create a file
Code: /etc/sysctl.d/60-noipv6.conf
which contains
Code: net.ipv6.conf.all.disable_ipv6 = 1

Hope it helps.

Thank you very much! That did the trick. ;) I've also make the appropriate file addition as you mentioned and made sure the change stuck on reboot.
Back to top  
waldo



Joined: 21 May 2009
Posts: 336

Posted: Sun Feb 28, 2010 12:59 pm    Post subject:  

shinji wrote: On one note I found that Apache 2 defaults to ::1 when it loads up and can't determine the fqdn so there is reason number one.

THANK YOU!!!

I've been wondering that, but it wasn't bugging me enough to care enough to ask as I'm only using my Linode for testing right now.
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1