ipv6詳解關閉ipv6服務

來源:互聯網
上載者:User

Debian kernel 2.4:

In /etc/modutils, change the line

alias net-pf-10 ipv6

to

alias net-pf-10 off

alias ipv6 off

Reboot.

 

Debian kernel 2.6/Ubuntu (“official”method)/Fedora Core

(method 1):

      In /etc/modprobe.d/aliases, change the line

      alias net-pf-10 ipv6

      to

      alias net-pf-10 off

      alias ipv6 off

      Reboot.

Debian kernel 2.6/Ubuntu (alternatemethod):

      In /etc/modprobe.d/blacklist, add a line

      blacklist ipv6

      Reboot.

 

RHEL/CentOS:

   In /etc/modprobe.conf, make sure you have

   alias net-pf-10 off

   alias ipv6 off

Reboot.

 

RHEL/CentOS/Fedora Core (method 2)/Mandriva(method 1):

   In /etc/sysconfig/network, add a line

   NETWORKING_IPV6=”no”

Reboot.

 

SuSE 9.0:

   In /etc/modules.conf, change the line

   alias net-pf-10 ipv6

   to

   alias net-pf-10 off

   alias ipv6 off

Reboot.

 

SuSE 9.1/9.2/9.3/10.0 (“official” method):

   In /etc/modprobe.conf, change the line

   alias net-pf-10 ipv6

   to

   alias net-pf-10 ipv6

   install ipv6 /bin/true

   Reboot.

 

SuSE 9.1/9.2/9.3/10.0 (alternatemethod)/Mandriva (method 2)/Slackware:

      In /etc/modprobe.conf, make sure you change

      alias net-pf-10 ipv6

      to

      alias net-pf-10 off

      alias ipv6 off

      Reboot.

Gentoo:

      In /etc/modules.d/aliases, make sure you change

      alias net-pf-10 ipv6

      to

      alias net-pf-10 off

      alias ipv6 off

      Reboot.

 

NOTES:

      In distros using /etc/modprobe.conf, beware that you might get  overriden by /etc/modprobe.conf.local or by/etc/modprobe.d/*.

 

If you disable IPv6, I suppose you don’tneed tunnels either. You could also

add there:

      install sit0 /bin/true

      A last “anti-IPv6″ issue: don’t forget the old trick of checking if your Firefox

      has IPv6 disabled:

          o  CTRL+L, about:config (Enter)

          o  Filter by ipv6.

          o  Set network.dns.disableIPv6 totrue.

 

 

How To Disable ipv6 on SuSE Linux

Posted by Planet Malaysia on August 18, 2008

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:

 ifconfigeth0      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.

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.