红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Linux line version of the system of how to prohibit ipv6

Linux line version of the system of how to prohibit ipv6

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 (alternate method):

* 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 (alternate method)/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.

TOP

发新话题