Chinaunix首页 | 论坛 | 博客
  • 博客访问: 535572
  • 博文数量: 142
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1452
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-12 16:28
文章分类

全部博文(142)

文章存档

2016年(10)

2015年(60)

2014年(72)

我的朋友

分类: LINUX

2015-10-20 10:09:19

如何在centos系统中启动IPv6功能

1.打开/etc/sysconfig/network
vim /etc/sysconfig/network  

点击(此处)折叠或打开

  1. NETWORKING=yes
  2. NETWORKING_IPV6=yes          -----------将NETWORKING_IPV6设置为yes
2. service network restart 重启网络服务
  出现如下错误:

点击(此处)折叠或打开

  1. Shutting down interface eth0: [ OK ]
  2. Shutting down loopback interface: [ OK ] 
  3. FATAL: Module off not found.
  4. CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support 
  5. Bringing up loopback interface: [ OK ] 
  6. Bringing up interface eth0: FATAL: Module off not found.
  7. CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support [ OK ] 
  8. FATAL: Module off not found.
  9. CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
解决这个错误,需要修改文件/etc/modprobe.conf,注释掉红色部分的代码

点击(此处)折叠或打开

  1. [root@mail ~]# cat /etc/modprobe.conf
  2. alias eth0 tg3
  3. alias scsi_hostadapter ahci
  4. alias scsi_hostadapter1 usb-storage
  5. alias scsi_hostadapter2 3w-9xxx
  6. #alias net-pf-10 off
  7. #alias ipv6 off
  8. #options ipv6 disable=1
  9. alias wlan0 iwlagn
  10. alias snd-card-0 snd-hda-intel
  11. options snd-card-0 index=0
  12. options snd-hda-intel index=0
  13. 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重启网络服务
阅读(1791) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~