fedora 14是默认开启IPV6的。
所以用ifconfig会产生下面的内容
eth0 Link encap:Ethernet HWaddr 00:0C:29:13:22:E0
inet addr:192.168.30.187 Bcast:192.168.30.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe13:22e0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6420 (6.2 KiB) TX bytes:6931 (6.7 KiB)
Interrupt:19 Base address:0x2000
如果要去掉对IPV6的支持
需要在系统中添加文件 /etc/modprobe.d/blacklist-ipv6.conf
文件内容
install ipv6 /bin/true
blacklist ipv6
然后重启系统:
命令ifconfig的输出是
eth0 Link encap:Ethernet HWaddr 00:0C:29:13:22:E0
inet addr:192.168.30.187 Bcast:192.168.30.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6420 (6.2 KiB) TX bytes:6931 (6.7 KiB)
Interrupt:19 Base address:0x2000
阅读(2278) | 评论(0) | 转发(0) |