如何在centos系统中启动IPv6功能
1.打开/etc/sysconfig/network
vim
/etc/sysconfig/network
-
NETWORKING=yes
-
NETWORKING_IPV6=yes -----------将NETWORKING_IPV6设置为yes
2. service network restart 重启网络服务
出现如下错误:
-
Shutting down interface eth0: [ OK ]
-
Shutting down loopback interface: [ OK ]
-
FATAL: Module off not found.
-
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
-
Bringing up loopback interface: [ OK ]
-
Bringing up interface eth0: FATAL: Module off not found.
-
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support [ OK ]
-
FATAL: Module off not found.
-
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
解决这个错误,需要修改文件/etc/modprobe.conf,注释掉红色部分的代码
-
[root@mail ~]# cat /etc/modprobe.conf
-
alias eth0 tg3
-
alias scsi_hostadapter ahci
-
alias scsi_hostadapter1 usb-storage
-
alias scsi_hostadapter2 3w-9xxx
-
#alias net-pf-10 off
-
#alias ipv6 off
-
#options ipv6 disable=1
-
alias wlan0 iwlagn
-
alias snd-card-0 snd-hda-intel
-
options snd-card-0 index=0
-
options snd-hda-intel index=0
-
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
3.再次调用service network restart重启网络服务
阅读(1842) | 评论(0) | 转发(0) |