Image

Knowledge base → Disabling Ipv6 on Debian for VPS and VDS servers

[Virtual servers]
Date of publication: 07.02.2024

If you have two IPv4 and IPv6 networks at the same time, sometimes for a number of reasons it becomes necessary to disable IPv6 support; to do this, use the following commands. This method works for all types of virtual servers we provide.

1. Disable IPv6

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

1.1 With saving after reboot, add a line to the file

/etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6=1

2. Enable IPv6 support

Disable the option by changing the value to 0.

/etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6=0

Save the changes and apply the settings with the command:

sysctl -p




No Comments Yet