Chinaunix首页 | 论坛 | 博客
  • 博客访问: 876538
  • 博文数量: 275
  • 博客积分: 3904
  • 博客等级: 中校
  • 技术积分: 4605
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:10
文章分类

全部博文(275)

文章存档

2014年(9)

2013年(124)

2012年(142)

分类:

2012-11-02 12:21:10

Disabling IPv6 in Centos 4.x
近日,安装了一台用于测试的CentOS 4.6,安装后Disable 了IPV6
在2.4的kernel中默认不load IPv6模块,在2.6的kernel中依据应用程序自动 load IPv6模块。
[root@xxx ~]# ifconfig
eth0      Link encap:Ethernet HWaddr 00:1E:4F:B7:42:3A
          inet addr:10.180.0.xx Bcast:10.180.1.255 Mask:255.255.254.0
          inet6 addr: fe80::21e:4fff:feb7:423a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:708500 errors:0 dropped:0 overruns:0 frame:0
          TX packets:215006 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:439199098 (418.8 MiB) TX bytes:37642693 (35.8 MiB)

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:55 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4348 (4.2 KiB) TX bytes:4348 (4.2 KiB)
How to disable IPv6 ?
In /etc/modprobe.conf, add
alias net-pf-10 off
alias ipv6 off

Reboot.

 

[root@73x ~]# ifconfig


eth0      Link encap:Ethernet HWaddr 00:1E:4F:B7:42:3A


          inet addr:10.180.0.55 Bcast:10.180.1.255 Mask:255.255.254.0


          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


          RX packets:124 errors:0 dropped:0 overruns:0 frame:0


          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0


          collisions:0 txqueuelen:1000


          RX bytes:28703 (28.0 KiB) TX bytes:5798 (5.6 KiB)



lo        Link encap:Local Loopback


          inet addr:127.0.0.1 Mask:255.0.0.0


          UP LOOPBACK RUNNING MTU:16436 Metric:1


          RX packets:13 errors:0 dropped:0 overruns:0 frame:0


          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0


          collisions:0 txqueuelen:0


          RX bytes:1024 (1024.0 b) TX bytes:1024 (1024.0 b)

阅读(758) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~