|
IPv6 has not completely universal, but after installing the system IPv6 is effective to a certain extent affect network performance, so in we do not use IPv6, it is preferable to close IPv6. Now we have to complete the steps in this article describes how to turn it off.
1. Modify / etc / sysconfig / network, the second line to no:
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = db01
NOZEROCONF = yes
2. Modify the / etc / hosts, the phrase ipv6 local host name resolution also commented:
# :: 1 localhost localhost6 localhost6.localdomain6
3. Let the system does not load the ipv6 related modules, modprobe need to modify settings related documents, for the convenience of management, we set a new file /etc/modprobe.d/ipv6off.conf, which reads as follows, in three ways, there is always a right for you:
alias net-pf-10 off
options ipv6 disable = 1
Note that if you use NIC teaming (bond) technology, and do not want to use ipv6, you use the first, otherwise the system startup, bonding module may fail to load.
4. Restart the system, and then confirm:
[Root @ db01 ~] # ifconfig | grep -i inet6
[Root @ db01 ~] #
If the result of the above command is executed without any display then shows ipv6 has been completely banned. |
|
|
|