To configure IPv6 networking on Debian, you can follow these steps:
- Edit the /etc/network/interfaces file:
sudo nano /etc/network/interfaces
- 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).
- Save and close the file.
- Restart the networking service to apply the changes:
sudo systemctl restart networking
- 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. - 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.