Home > System Tutorial > LINUX > body text

Disable IPv6 for CentOS 7, use only IPv4

WBOY
Release: 2024-01-15 22:39:06
forward
665 people have browsed it

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

Disable IPv6 for CentOS 7, use only IPv4

2 , edit the /etc/sysctl.conf configuration, add net.ipv6.conf.all.disable_ipv6=1

Disable IPv6 for CentOS 7, use only IPv4

##3, edit the /etc/sysconfig/network configuration, add NETWORKING_IPV6 =no, save and exit

Disable IPv6 for CentOS 7, use only IPv4

4. Edit /etc/sysconfig/network-scripts/ifcfg-eno16777736, make sure IPV6INIT=no, ifcfg-eno16777736 is based on your own machine , judging from the actual network card information, it is not fixed

Disable IPv6 for CentOS 7, use only IPv4

5. Turn off the firewall auto-start at boot

systemctl disable ip6tables.service

Disable IPv6 for CentOS 7, use only IPv4

6. Execute sysctl -p or reboot command

Disable IPv6 for CentOS 7, use only IPv4

7. Use ifconfig again to verify, only ipv4 remains, ipv6 disappears , closed successfully

Disable IPv6 for CentOS 7, use only IPv4

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!