disable IPv6 ?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

disable IPv6 ?

Postby mack_mcash on Sat Jul 20, 2013 1:48 pm

Hey, all. I'm using lmde_32bit-201204_xfce, with UP6, and stumbled upon the topic of: "disable_IPv6_for_wheezy", at these links:
http://forums.debian.net/viewtopic.php?f=16&t=105485
http://forums.debian.net/viewtopic.php?f=16&t=85551
Here is the steps from the above links:
Code: Select all
Step 1) Strictly follow one of the above links, to the letter. Dasien's post
*(on bottom)
is a summary of the Wiki page but, it includes code one could easily copy and paste into the terminal to accomplish the goals of said Wiki page.

Step 2) Edit /etc/netconfig on two lines. Find these lines:

Code: Select all
    udp6       tpi_clts      v     inet6    udp     -       -
    tcp6       tpi_cots_ord  v     inet6    tcp     -       -

Comment them with a '#' sign:

Code: Select all
    #udp6       tpi_clts      v     inet6    udp     -       -
    #tcp6       tpi_cots_ord  v     inet6    tcp     -       -

Gratuitous advice: Before editing sytem files, "always" make a backup copy by appending .backup to the end of a filename.

That should clean up any remaining IPv6 processes.

Code: Select all
However, since following directions seems to be something of a lost art, the commands below can be copied-and-pasted to achieve exactly the same effect.

Step 1: Open a terminal and su to root

Step 2: Verify that IPv6 is (or is not) active

Code: Select all
    netstat -tunlp |grep p6 |wc -l

If the result is anything other than 0, then one or more IPv6-aware processes is running.

Step 3: Follow Wiki directions (aka copy-and-paste these three lines into a root terminal).

Code: Select all
    echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf

    sed '/::/s/^/#/' /etc/hosts >/etc/dipv6-tmp;cp -a /etc/hosts /etc/hosts-backup && mv /etc/dipv6-tmp /etc/hosts

    sed '/ipv6=yes/s/yes/no/' /etc/avahi/avahi-daemon.conf >/etc/avahi/dipv6-tmp;cp -a /etc/avahi/avahi-daemon.conf /etc/avahi/avahi-daemon.conf-backup && mv /etc/avahi/dipv6-tmp /etc/avahi/avahi-daemon.conf

Step 4: Reboot

Step 5: Repeat Steps 1-2

Code: Select all
    #netstat -tunlp |grep p6 |wc -l

should now return 0

Again, these steps will disable IPv6 on a stock install of Squeeze. If you have additional IPv6-aware processes running (server daemons in particular), then additional steps may be required, as outlined in the two articles linked to below.

Additional resources, references:
http://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6
http://mindref.blogspot.com/2010/12/debian-disable-ipv6_22.html

I'm ignorant on this subject and am seeking info from someone that may be willing to give advice as to whether following the steps outlined to disable IPv6 is desirable.

What are the benefits of disabling IPv6? Is it safe?
If a person did in fact follow these steps and disable IPv6, will there be consequences in the future when IPv6 is the standard?

Thanks for your response, if any. :)
mack_mcash
Level 1
Level 1
 
Posts: 24
Joined: Sat Jun 02, 2012 10:54 am

Linux Mint is funded by ads and donations.
 

Re: disable IPv6 ?

Postby nomko on Sat Jul 20, 2013 4:05 pm

I'm not sure about your location/country, but here in Holland most providers are switching to IPv6 since IP addresses for IPv4 are running out (if they already aren't). I don't know which ISP you have, but looking at this development, i think it's not really smart to disable IPv6.
ASUS P5KPL-AM SE*Intel Core2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*Optiarc DVD-RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Sitecom X5-N600 Router (WLR-5100)

Visit my website:
My personal website
User avatar
nomko
Level 9
Level 9
 
Posts: 2884
Joined: Sat Feb 25, 2012 7:28 pm
Location: The Hague, The Netherlands

Re: disable IPv6 ?

Postby DrHu on Sat Jul 20, 2013 4:24 pm

Most of the time IPV6 addresing doesn't in any way affect your computer operssations, whether enabled or not: some browser situations might benefit from disabling IPV6, other than that no problem having it in use (enabled..)

You don't really need IP6 if you are behind a nat, as most users might find the IPV4 xxx.xxx.xxx.xxx addressing scheme sufficient and possibly easier to understand

As in
172__ (forgot the #s at the moment, since I don't usually use that schema)
192.168.x.x
10.0.0.x
https://en.wikipedia.org/wiki/Private_network
--its a standard, from IANA
https://en.wikipedia.org/wiki/Network_a ... ranslation
--might help get the picture

When you do that, you have to use port forwarding in order to get into the internet
http://superuser.com/questions/284051/w ... t-used-for
User avatar
DrHu
Level 16
Level 16
 
Posts: 6836
Joined: Wed Jun 17, 2009 8:20 pm

Re: disable IPv6 ?

Postby mack_mcash on Sun Jul 21, 2013 7:10 am

Thanks, guys for the responses.

I am NOT going to disable IPv6 on my machine now since I believe it is not necessary. :)
mack_mcash
Level 1
Level 1
 
Posts: 24
Joined: Sat Jun 02, 2012 10:54 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 4 guests