Debian Linux Disable IPv6 Networking

In Debian Linux, you can disable IPv6 networking by modifying the network configuration files. Here are the steps to disable IPv6 on a Debian system:

  1. Open the network configuration file:
sudo nano /etc/sysctl.conf
  1. Add the following line to the end of the file:
net.ipv6.conf.all.disable_ipv6 = 1
  1. Save and close the file.
  2. Reload the system configuration:
sudo sysctl -p
  1. Verify that IPv6 is disabled by using the following command:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6

The output should be 1, indicating that IPv6 is disabled.

Note: The steps listed above will only disable IPv6 temporarily. To make the change permanent, you will need to add the net.ipv6.conf.all.disable_ipv6 = 1 line to a startup script, such as /etc/rc.local.

Additionally, you should also check if IPv6 is enabled in the network interface configuration files, such as /etc/network/interfaces. If it is, you should comment out or remove the relevant lines to prevent IPv6 from being enabled.

Leave a Comment