1. Knowledge base
  2. Networking
  3. How to add additional IPv6 on Debian

How to add additional IPv6 on Debian

Updated on 17 April 2023 2 min read Snel.com support team

Description of configuring IPv6 on Debian

Below we have described how you can configure IPv6 on Debian. Please make sure that you follow the steps in the support article.

– Contact Support for an IPv6

If you do not have an IPv6 address assigned, the first step is to send an email to [email protected] in order the get the required information for configuring your server with IPv6.

– Log in to your server

Open a terminal and log in to your server using SSH. ssh root@ip_address_or_domain

– Open your network interface

Open your network interface file with your favorite editor. We have used nano in our example. sudo nano /etc/network/interfaces

– Add the IPv6 to your network configuration

Use the information from step 1. Add a new block to the end of the file for the IPv6 interface. It should look like the configuration below. Replace the red marked text with your own configuration. Save it once you have added the IPv6 block.

Code
auto eth1iface eth1 inet6 static        address 2a00:7b80:451:1::10        netmask 48        gateway 2a00:7b80:451::1

ipv6-debian

The VLAN ID of this IPv6 is 451

– Add the IPv6 to your network configuration

You have few options to enable the IPv6. The easiest way is to restart the networking service. You can use the commands below to restart the network service.

Debian 7

Code
sudo /etc/init.d/networking restart

Debian 8 & 9

Code
sudo systemctl restart networking

– Restart the network service

The final step is to check whether the configured IPv6 is working. If your own working station is supporting IPv6 you can test it through your terminal. You can find the commands below per Operating System.

Windows:

Code
ping -6 2a00:7b80:451:1::8

Linux:

Code
ping6 2a00:7b80:451:1::8

MacOS:

Code
ping6 2a00:7b80:451:1::8
Was this article helpful?

Spot a mistake in this article? Email us at support@snel.com

This article was last checked on 17 April 2023. · 51,924 views

Your own VPS online within 2 minutes

Windows or Linux, root access and hosted in Rotterdam.

View VPS from € 6.99

Support

Can't figure it out? We are happy to help

You always talk to a real engineer. We typically respond within 15 to 30 minutes, and 24/7/365 for outages.

Call us

+31 88 3 088 099

Create a ticket

Through the client area we immediately see which service it is about.

Email us

Send your question via the contact form, also outside office hours.