����Linux�Ż�
Linux����

centos����ϵͳ����������IPV6����

����ʱ��:2017-05-19 15:12:31��Դ:��Ѷ����̳����:������������
�ȿ��¿������Ч���ɡ�
[root@VM_centos ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:341:52  
inet addr:10.101.3.185  Bcast:10.101.127.255  Mask:255.255.192.0
inet6 addr: fe80::5054:ff:fe34:d152/64 Scopeink   ------------------------->>>�����ɹ������һ��IPV6�ĵ�ַ��ʽ
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1010372 errors:0 dropped:0 overruns:0 frame:0
TX packets:423319 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79625272 (75.9 MiB)  TX bytes:44330935 (42.2 MiB)
 
��Ѷ������centosϵͳ��������IPV6ģ�飬����ʹ��lsmod����鿴�����£�
[root@VM_centos ~]# lsmod |grep ipv6
ipv6                  334804  0
 
һ������IPV6���sysctl -w net.ipv6.conf.all.disable_ipv6=0
[root@VM_centos ~]# sysctl -w net.ipv6.conf.all.disable_ipv6=0
error: "net.ipv6.conf.all.disable_ipv6" is an unknown key    -->�ں˲���û���أ���ᱨ�����(ע�⣺centos6.2/7.0/7.1�汾��Ĭ���Ǽ��صģ�ֱ����������������Գɹ�������centos�汾�����������������أ����¿���)
 
����ԭ����Ҫ�������ļ���/etc/modprobe.d/ipv6.conf �޸��ں˲�����options ipv6 disable=0������Ϊ0��ʾ�����������
[root@VM_centos ~]# cat /etc/modprobe.d/ipv6.conf
# Anaconda disabling ipv6
options ipv6 disable=0
 
���������˻������ٲ�����һ�������DZ�����ԭ������Ҫ�������������޸ĵ��ں˲����Ż������Ч����������������ִ�У�sysctl -w net.ipv6.conf.all.disable_ipv6=0 ��OK�ˡ�����ð���������д��/etc/rc.local�����ļ�������Զ�ִ�У���Ȼ�������ֻ�Ĭ�Ϲر��ˡ���
�鿴��������Ч�ķ�����
[root@VM_centos ~]# sysctl -a|grep ipv6|grep all.disable_ipv6  
net.ipv6.conf.all.disable_ipv6 = 0
��ִ����ifconfig�����������ͻᷢ�ֶ���һ��IPV6�ĵ�ַ�����һ�εĿ���Ч����
 
ע�⣺��������������centos6.2��centos6.3��centos6.4��centos6.5��centos6.6
centos5.8/5.11���в�ͬ��IPV6�ں˲����ļ���/etc/modprobe.conf���޸ġ�
 
�������ø��µ�ַ��//m.ajphoenix.com/linux/30910.html