IPv6 Quickstart

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:

      network:
          version: 2
          ethernets:
              eth0:
                  addresses:
                  - 203.0.113.213/20
                  - your_primary_ipv6_address/64
                  - 192.0.2.11/16
                  gateway4: 206.189.208.1
                  gateway6: your_ipv6_gateway
                  match:
                      macaddress: ce:2c:fb:85:b3:86
                  nameservers:
                      addresses:
                      - 67.207.67.2
                      - 67.207.67.3
                      - 2001:4860:4860::8844
                      - 2001:4860:4860::8888
                      search: [] 
                  set-name: eth0
               
    • On Debian or Ubuntu 16.04 or older, edit the /etc/network/interfaces 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 209.244.0.3
               
    • On CentOS or Fedora, edit the /etc/sysconfig/network-scripts/ifcfg-eth0 with sudo or as the root user and add the following block:

      IPV6INIT=yes
      IPV6ADDR=your_primary_ipv6_address/64
      IPV6_DEFAULTGW=your_ipv6_gateway
      IPV6_AUTOCONF=no
      DNS1=2001:4860:4860::8844
      DNS2=2001:4860:4860::8888
      DNS3=209.244.0.3
               
  6. Reboot the Droplet with reboot for the changes to take effect.