IPv6 Quickstart

To follow along, you will need a DigitalOcean account. If you don’t already have one, you can register on the sign up page.

Enable IPv6 during Droplet Creation

The easiest way to enable IPv6 on a Droplet is during creation.

To enable IPv6 when you create a Droplet:

  1. From the Droplet create page, in the Additional Options section, check IPv6.
  2. When you’ve selected all of your options, click the Create button at the bottom of the page.

Once the Droplet is created, its IPv6 address is displayed in the header. You can also click the Droplet’s name, then visit its Networking link in the side navigation to view more IPv6 network information.

Enable IPv6 on Existing Droplets

To enable IPv6 on an existing Droplet:

  1. Shut down the Droplet with sudo shutdown -h now.

  2. On the Droplets page, click the name of the Droplet, then select Networking from the side navigation.

  3. In the Public IPv6 network section, click the Enable button.

  4. Turn the Droplet back on by clicking the On/Off switch in the control panel.

  5. Manually configure the IPv6 network on the Droplet itself.

    • On Ubuntu 18.04, edit /etc/netplan/50-cloud-init.yaml with sudo or as the root user. Add a line for your Droplet’s IPv6 address as shown below, making sure to substitute the specific address of your Droplet, followed by the netmask value, /64. Add a separate line for ipv6_gateway, substituting the gateway address provided your Droplet’s IPv6 networking page. Finally, add the IPv6 nameservers highlighted below:

          version: 2
                  - your_primary_ipv6_address/64
                  gateway6: your_ipv6_gateway
                      macaddress: ce:2c:fb:85:b3:86
                      - 2001:4860:4860::8844
                      - 2001:4860:4860::8888
                      search: [] 
                  set-name: eth0
    • On Debian or Ubuntu 16.04, edit the /etc/network/interfaces.d/50-cloud-init.cfg file with sudo or as the root user and add the following block:

      iface eth0 inet6 static
              address your_primary_ipv6_address
              netmask 64
              gateway ipv6_gateway
              autoconf 0
              dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888
    • On Ubuntu 14.04 edit the /etc/network/interfaces file with sudo or as the root user and add the same block as above for Ubuntu 16.04.

Standard support for Ubuntu 14.04 LTS ended in April 2019. Because this distribution has reached end of life, we recommend migrating to a newer release so your Droplets remain supported and secure.
  • On CentOS or Fedora, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 with sudo or as the root user and add the following block:

  1. Reboot the Droplet with reboot for the changes to take effect.