To disable IPv6 networking in Debian, you will need to edit the /etc/sysctl.conf
file and add the following lines at the end of the file:
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1
This will disable IPv6 for all network interfaces on your system.
To apply the changes, run the following command:
sudo sysctl -p
This will apply the changes in the /etc/sysctl.conf
file and disable IPv6 networking on your system.
Note: Disabling IPv6 can cause issues with certain applications and services that require IPv6 connectivity. If you encounter any issues after disabling IPv6, you may need to re-enable it by reversing the steps above and removing the lines you added to the
/etc/sysctl.conf
file.