Redhat 5 Disable IPv6
IPv6 has not been fully popularized yet, but IPv6 is effective after the system is installed, which affects network performance to a certain extent. Therefore, we recommend that you disable IPv6. Now we will describe how to disable it in the complete steps in this article.
1. Modify/etc/sysconfig/network and change the second line to no:
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = db01
NOZEROCONF = yes
2. Modify/etc/hosts and comment out the local host name resolution in ipv6:
#: 1 localhost localhost6 localhost6.localdomain6
3. to prevent the system from loading ipv6-related modules, You need to modify the modprobe configuration file. For ease of management, we create a new configuration file/etc/modprobe. d/6off. conf. The content is as follows:
Alias net-pf-10 off
Options ipv6 disable = 1
Note: If you use the NIC binding (bond) technology and do not want ipv6, use the first method. Otherwise, the bonding module may fail to be loaded when the system starts.
4. restart the system and then confirm:
[Root @ db01 ~] # Ifconfig | grep-I inet6
[Root @ db01 ~] #
If the execution result of the preceding command is not displayed, it indicates that ipv6 has been completely disabled.
Enable IPV6 in Ubuntu
IPV6 address for Cisco CCIE Certification knowledge points
How to capture IPV6 data packets in WireShark
Use IPV6 source for traffic-free updates on Ubuntu 12.04 Campus Network
Build an IPV6 ftp server in Linux
CentOS IPV6 settings
Set Update source in CentOS pure IPV6 environment
How to disable CentOS 6 IPV6
How to disable IPv6 on Ubuntu, Linux Mint, and Debian