Home >System Tutorial >LINUX >Disable IPv6 for CentOS 7, use only IPv4
centos7 uses the ipv6 protocol. If a problem occurs, it will be difficult to troubleshoot. So if you want to turn off ipv6, how should you turn it off? Let’s take a look at the detailed tutorial below.
1. Use the ifconfig command to check the network card information. If inet6 fe80::20c:29ff:fed0:3514 appears, it means that the machine has ipv6 enabled
2 , edit the /etc/sysctl.conf configuration, add net.ipv6.conf.all.disable_ipv6=1
The above is the detailed content of Disable IPv6 for CentOS 7, use only IPv4. For more information, please follow other related articles on the PHP Chinese website!