Sometimes we will encounter network errors that are caused by IPv6. The most convenient and quick solution to resolve it is disable IPv6 functionality.
To disable IPv6 on the Linux operating system, you can execute the following commands on the terminal with root privileges:
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
So you have successfully disabled IPv6. To re-enable IPv6, you can run the following commands:
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
Hope this article can be helpful to you.
If you need further information, please open a ticket with the Customer Support dept or send an email to support@vhost.vn for assistance.