Wednesday, September 16, 2009

How to Disable or Remove IPv6 on Ubuntu Jaunty 9.04

IPv6 is designed to solve the problems of IPv4. It does so by creating a new version of the protocol which serves the function of IPv4.but the problem is at now all servers or your ISP's are does not supporting the ipv6. so your internet become very slow.  

Edit: note that IPv6 does not slow down IPv4. Ipv6 is a different from IPv4 in 5 major areas as follows:
  1.  addressing and routing, 
  2. security, 
  3. network address translation, 
  4. administrative workload, and support for mobile devices. 
  5. IPv6 also includes an important feature: a set of possible migration and transition plans from IPv4.
But the reason for slow browsing is 'DNS resolving time ' because your browser first try with resolve address with IPv6 protocol if its fails and then try with Ipv4 this changing of protocol takes some time this will slowdown your browsing speed.(But the downloading speed of the files are same with these two protocol.) 
Reason for  editing:  see comments.


IPV6 is enabled by default in Ubuntu Jaunty 9.04, even if you upgraded from an old version of Ubuntu. So we need to disable for get your speed back ok let see how to do?

First of all you need to check is IPV6 is enabled or disabled? - for your convince
Run the folloing code in terminal:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6
By running this code,Terminal will return  a value  1 or 0
If the value is 1  ---IPv6 is disabled
If the value is 0  ---IPv6 is Enabled      if you get this value you need to disable the IPv6 by next code.

Write this in terminal:

sudo su -
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

 By running this code you can disable IPv6. If you do no have that directory, you can edit your grub menu:

gksu gedit /boot/grub/menu.lst
this file have bunch of boot comments. Now navigate ubuntu 9.04 generic 2.09 or somthing like this.   
Now add

ipv6.disable=1
to the end of the line.

Note: this trick works with kernels other than 2.6.28.

After do it you may check agian by running first code described above on this page.
GoodLuck. :)

8 comments:

  1. IPv6 is a totally different stack from IPv4 so it can in no way affect IPv4 traffic since the two are incompatible. This is FUD unless you can back it up with numbers. What MAY be the actual "slowdown" is someone with a broken or partial IPv6 configuration. In which case since DNS lookup order is AAAA then A, if the machine thinks it has a WORKING IPv6 configuration it will try using the AAAA records first, and then default to IPv4 (A) after timing out on IPv6.

    ReplyDelete
  2. IPv6 has a much larger address space than IPv4. This results from the use of a 128-bit address, whereas IPv4 uses only 32 bits. The new address space thus supports 2128 (about 3.4×1038) addresses.

    So IPV6 is not totaly different from IPv4.

    ReplyDelete
  3. A single /64 allocation of IPv6 is roughly 18 Quintillion IPs. There are 65536 /64 subnets in a single /48, and 65536 /48s in a single /32.

    The entirety of IPv4 is roughly 4 Billion.

    So the numbers are a bit more drastic in comparison, however IPv6 is still a different networking stack, so it doesn't affect IPv4 based traffic _at all_. Much as you can turn off IPv6, you can turn off IPv4, both are independent of each other, and so an issue here is that computers with mis-configured globally routable IPv6 addresses (link-local is not globally routable) are the only possible way of misconstruing the idea that IPv6 interferes with IPv4.

    Again, if your machine thinks it has a working globally routable IPv6 address, it will try using AAAA lookup results first, then time out and default to IPv4. That is not the fault of IPv6, but a mis-configured machine.

    ReplyDelete
  4. OK i agreed with you friend,
    But the time of shifting Ivp6 to Ivp4 of application might make DNS resolution problems and slow browsing.If you disable ipv6 these two problems will be fixed. ;) rite?

    ReplyDelete
  5. The issue here is the FUD that "disabling ipv6 makes ipv4 faster." It simply doesn't. Files will download the same speed, and IPv4 latency will remain the same even with IPv6 enabled. The only thing that "appears" faster is dns lookups don't time out because someone's computer got mis-configured.

    It is better to help them FIX IPv6 mis-configurations rather than get rid of it outright. This is lazy-person IT troubleshooting, and only hamstrings the user when perhaps they want access to IPv6 enabled services, or need to connect to other parts of the Internet where IPv4 is simply not an available resource due to money or lack of availability. The entire world isn't a first world country, and there are already numerous ISPs around the world that provide non-routable IPv4 adderess space to their users.

    ReplyDelete
  6. friend, did you think all country ISP's have enabled ipv6 ?

    ReplyDelete
  7. Noticed anonymous comments disabled, so I'll gladly use an account to continue this discussion.

    Not many countries let alone ISPs can support IPv6, but some do.

    You are trying to change the topic. My argument about your post is that it is ignorant/misinformation to say that IPv6 enabled machines in any way affect speeds of IPv4. I'm quoting you here: "so your internet become very slow", and requesting hard numbers that IPv6 enabled and/or even partially configured affect transmission or receipt of IPv4 packets negatively in any way.

    I expect you to find out that no, in fact it doesn't because it is a separate networking protocol stack.

    ReplyDelete
  8. Dear broquea,
    Thank you for your comment, now i understand my mistake in this post i'll edit my post and also i will post a new topic "How to configure IPv6" as soon as possible
    once again thank you for your comment.

    other:
    I just changed my blog's layout, how is this? (your opinion please)

    ReplyDelete