How To Disable ipv6 on SuSE Linux

Posted by Planet Malaysia on August 18, 2008

advertisement

For some strange reason, ipv6 is switched ON by default in SuSE Linux.

To check whether you are currently running ipv6, run the following command as root:

 ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:1F:89:8F:D5
          inet addr:192.168.1.100  Bcast:140.171.243.255  Mask:255.255.254.0
          inet6 addr: fe80::20f:1fff:fe89:8fd5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:33386388 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2947979 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2211978470 (2109.5 Mb)  TX bytes:380978644 (363.3 Mb)
          Base address:0xdf40 Memory:feae0000-feb00000 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:895 errors:0 dropped:0 overruns:0 frame:0
          TX packets:895 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76527 (74.7 Kb)  TX bytes:76527 (74.7 Kb)

If you have lines containing inet6 as above, then your machine IS running ipv6.

How to disbling ipv6 on SuSE Linux

To disable ipv6 completely, run the following commands as root:
# echo “alias net-pf-10 off” >> /etc/modprobe.conf.local
# echo “alias ipv6 off” >> /etc/modprobe.conf.local

Restart the machine.

Once your machine has rebooted, rerun the ifconfig command and verify that the inet6 lines have been removed.

Done! Your machine are running without IPV6.

Possibly Related Posts:


Comments

9 Responses to “How To Disable ipv6 on SuSE Linux”

  1. Derek Morr on August 18th, 2008 7:56 pm

    It’s running IPv6 by default because in the near future IPv6 will be needed (as we are rapidly running of available IPv4 addresses). Why do you want to turn it off? Do you have evidence that it’s hurting something?

  2. Planet Malaysia on August 18th, 2008 11:11 pm

    Derek, I’m strongly agreed with you but some how my network guy recommended turn it OFF by default.

  3. Derek Morr on August 19th, 2008 5:42 am

    Did he give a reason why?

  4. Planet Malaysia on August 19th, 2008 8:59 am

    He said Linux DNS servers were sending IP Version 6 (ipv6) DNS queries to the main DNS server. I’m not sure why?

  5. Derek Morr on August 19th, 2008 10:59 am

    Probably because your box had IPv6 enabled, so it was trying to lookup AAAA records (DNS records which map hostnames to IPv6 addresses). That shouldn’t break anything. If the records don’t exist, the DNS server should return an error, and your client should retry with a query for an A record (which maps hostnames to an IPv4 address).

  6. Woog on August 22nd, 2008 12:23 am

    Yes, but that’s additional look-ups on a DNS server. Granted, DNS packets are small, and most modern systems can handle great loads. But, why have that crap flying around? On top of that, if you have a search order defined, it does that on each one. Worse case is double the number of lookups required to find an answer.

    Practically nobody believes IPv6 is going to be here to quickly. Recent reports ( picked up on /. http://tech.slashdot.org/article.pl?sid=08/08/18/226228& ) Really show how little uptake has been. If you need it, then turn it on. when 99.99% of users don’t even use something in your load, and you force them to by default… I think that’s the wrong approach.

  7. dRp3pP3r on November 29th, 2008 1:20 am

    Some guys also reported problems with IPv6 and online update with openSuse.

  8. Gordon Marinovich on February 19th, 2009 11:32 pm

    We have seen issues with Symantec’s linux agent (RALUS) for Backup Exec, when trying to backup Novell OES2 SP1 (over SLES10 SP2) x64. Once IPv6 was removed from the kernel the agent ran OK. Bizarre but true! Go figure!

  9. .:Ewig Drohendes Versagen:.» Blogarchiv » Linux Suse 10.3 VMware Tools ESX 3.5 Netzwerk Probleme on October 12th, 2011 6:01 pm

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com