User Tools

Site Tools


tips:how-to-disable-ipv6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips:how-to-disable-ipv6 [28.08.2011 22:51] (current)
vergo created
Line 1: Line 1:
 +====== How to disable IPv6 ======
  
 +<note important>​These instructions will not work in Ubuntu 9.04 (Jaunty Jackalope) or anything later because ipv6 support isn't for some unknown reason a module anymore.</​note>​
 +
 +Current Ubuntu releases have ipv6 enabled by default and in most cases it isn't needed at least yet. Here's a short description for disabling ipv6 but start by checking if it's even enabled currently.
 +
 +<​code>​ifconfig | grep inet6</​code>​
 +
 +If that produced no output then ipv6 is already disabled. Otherwise first open (as root) the file ///​etc/​modprobe.d/​aliases//​ and locate the following line:
 +
 +<​code>​alias net-pf-10 ipv6</​code>​
 +
 +and replace it with
 +
 +<​code>​alias net-pf-10 off</​code>​
 +
 +Then open ///​etc/​modprobe.d/​blacklist//​ and add the following at the end of the file:
 +
 +<​code>​
 +# disable ipv6
 +blacklist ipv6
 +</​code>​
 +
 +Next you'll have to reboot the system since that seems to be the only way to get already loaded ipv6 modules out of memory.
 +
 +It should be noted that editing only ///​etc/​modprobe.d/​blacklist//​ has the same end result of getting ipv6 disabled but a log entry like
 +
 +<​code>​modprobe:​ WARNING: Not loading blacklisted module ipv6</​code>​
 +
 +will get added every time something in the system tries to access the net using ipv6. That can happen often in a busy system so there'​s no point filling log files with it. 
tips/how-to-disable-ipv6.txt ยท Last modified: 28.08.2011 22:51 by vergo