rhel5之禁用IPv6模块
禁用前如下所示:
[root@server5 ~]# ip -6 addr list
1: lo: mtu 16436
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qlen 1000
inet6 fe80::20c:29ff:fe58:9849/64 scope link
valid_lft forever preferred_lft forever
[root@server5 ~]# ip addr list
1: lo: mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0c:29:58:98:49 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.15/24 brd 192.168.1.255 scope global eth0
inet6 fe80::20c:29ff:fe58:9849/64 scope link
valid_lft forever preferred_lft forever
3: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
修改/etc/modprobe.conf文件,加入以下两行:
alias net-pf-10 off
alias ipv6 off
保存,退出,重启机器后,如下所示:
[root@server5 ~]# ip -6 addr list
[root@server5 ~]#
无相关IPv6的信息输出,则禁用IPv6模块成功!!!
阅读(2025) | 评论(0) | 转发(0) |