How to configure IPv6 on Debian
The process for configuring a static IPv6 address with a static IPv6 gateway without using SLAAC alongside a IPv4 address that is being obtained via DHCP on Debian is similar to the process on Ubuntu.
Please ask our support team for your
- Open the /etc/network/interfaces.d/eth0 file in a text editor (e.g. nano)
- Add the following lines at the end of the file, replacing the placeholder values with your own settings:
iface eth0 inet6 static address <IPv6 address>/64 gateway <IPv6 gateway>
- Save the file and exit the text editor.
- Restart the network service to apply the changes:
$ sudo systemctl restart networking
If you are configuring the settings via SSH, it’s normal that the session may be frozen for a few seconds. Please double-check all settings before restarting the network service. If you misconfigure your network settings, you may have to use our VNC console to fix the settings.
Your Debian system should now be configured with a static IPv6 address and gateway, while still obtaining its IPv4 address via DHCP.