Debian IPv6 Networking Configuration

To configure IPv6 networking on Debian, you can follow these steps:

  1. Edit the /etc/network/interfaces file:
    sudo nano /etc/network/interfaces
  2. Add the following lines to the file, assuming your network interface is eth0:
    iface eth0 inet6 auto

    This will tell the system to use the automatic IPv6 configuration method, which is called stateless address autoconfiguration (SLAAC).

  3. Save and close the file.
  4. Restart the networking service to apply the changes:
    sudo systemctl restart networking
  5. Check if the interface has an IPv6 address assigned:
    ip -6 address show dev eth0

    This will show the IPv6 address assigned to the eth0 interface.

  6. Test the connection to an IPv6-enabled website:
    ping6 ipv6.google.com

    This will send ICMPv6 packets to Google’s IPv6 address and show the response times.

Note that some network interfaces may require additional configuration, such as setting a static IPv6 address or specifying a custom IPv6 gateway. Check your network documentation for more information.

Leave a Comment