In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to disable IPV6 under Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
How does Linux disable IPV6?
Brief introduction
Pv6 is considered to be a substitute for the traditional 32-bit address space on the IPv4-- Internet, which is used to solve the problem that the existing IPv4 address space is running out.
However, since there are already a large number of hosts and devices connected to the Internet using IPv4, it is almost impossible to switch them all to IPv6 overnight.
Many IPv4-to-IPv6 conversion mechanisms (e.g. dual stack, network tunnel, proxy) have been proposed to promote the adoption of IPv6, and many applications are being rewritten, as we advocate, to increase support for IPv6.
One thing is certain, that is, IPv4 and IPv6 will coexist in the foreseeable future.
Ideally, the transition to IPv6 should not be seen by the end user, but IPv4/IPv6 mixed environments can sometimes cause you to encounter problems that arise from inadvertent collisions between IPv4 and IPv6.
For example, you may encounter problems with application timeouts, such as failed apt-get or ssh attempts to connect through IPv6, DNS servers that accidentally empty IPv6's AAAA records, or your IPv6-enabled devices that are not compatible with the IPv4 network left behind by your Internet service provider, and so on.
Of course, this does not mean that you should blindly disable IPv6 on your Linux machine. Given the benefits promised by IPv6, we eventually have to embrace it fully as part of the community, but as part of the end-user troubleshooting process, if IPv6 is indeed the culprit, you can try to shut it down.
Here are some tips to disable IPv6 in some or all of your Linux (for example, for a particular network interface). These tips should apply to all major Linux distributions, including Ubuntu, Debian, Linux Mint, CentOS, Fedora, RHEL, and Arch Linux.
Change / etc/sysctl.conf configuration file [root@Jaking vsftpd] # vim / etc/sysctl.conf# sysctl settings are defined through files in# / usr/lib/sysctl.d/, / run/sysctl.d/, and / etc/sysctl.d/.## Vendors settings live in / usr/lib/sysctl.d/.# To override a whole file, create a new file with the same in# / etc/sysctl.d/ and put new settings there. To override# only specific settings, add a file with a lexically later# name in / etc/sysctl.d/ and put new settings there.## For more information See sysctl.conf (5) and sysctl.d (5). Net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1 [root@Jaking vsftpd] # ifconfig# IPV6 Field inet6 fe80::250:56ff:fe22:db62ens33: flags=4163 mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 Fe80::250:56ff:fe22:db62 prefixlen 64 scopeid 0x20 ether 00:50:56:22:db:62 txqueuelen 1000 (Ethernet) RX packets 11717 bytes 4355183 (4.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6943 bytes 2011730 (1.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6:: 1 prefixlen 128 scopeid 0x10 loop txqueuelen 1 (Local Loopback) RX packets 112 bytes 9492 (9.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 9492 (9.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@Jaking vsftpd] # sysctl-p # give the configuration file immediate effect net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1 [root@Jaking vsftpd] # ifconfig# IPV6 field has disappeared ens33: flags=4163 mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255 ether 00:50:56:22:db:62 txqueuelen 1000 (Ethernet) RX packets 11747 bytes 4357703 (MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 6961 bytes 2014592 (1.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 112 bytes 9492 (9.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 9492 (9.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Thank you for reading this article carefully I hope the article "how to disable IPV6 under Linux" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.