Public IPv6 address not shown in `ifconfig`

September 14, 2014 2.5k views

On web admin page:

Public IPv6 Network
Public IPv6 Address:    2604:a880:800:10::ed:3001/64
Public IPv6 Gateway:    2604:a880:800:10::1
Configurable address range: 2604:a880:800:10::ed:3000 - 2604:a880:800:10::ed:300f

On ifconfig:

root@test:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 04:01:26:17:e1:01  
          inet addr:104.131.27.94  Bcast:104.131.63.255  Mask:255.255.192.0
          inet6 addr: fe80::601:26ff:fe17:e101/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21239 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20977 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10631047 (10.6 MB)  TX bytes:10126736 (10.1 MB)

eth1      Link encap:Ethernet  HWaddr 04:01:26:17:e1:02  
          inet addr:10.132.250.126  Bcast:10.132.255.255  Mask:255.255.0.0
          inet6 addr: fe80::601:26ff:fe17:e102/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:578 (578.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1184 (1.1 KB)  TX bytes:1184 (1.1 KB)

What's wrong?

2 Answers

Did you enable ipv6 on existing droplet?

If that's the case follow this tutorial to add ipv6 to eth0
https://www.digitalocean.com/community/tutorials/how-to-enable-ipv6-for-digitalocean-droplets

Simpy add these lines to /etc/network/interfaces (Ubuntu)

iface eth0 inet6 static
        address 2604:a880:800:10::ed:3001
        netmask 64
        gateway 2604:a880:800:10::1
        autoconf 0
        dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888

Then reenable eth0

#Should be in single line!!!
sudo ifdown eth0; sudo ifup eth0;
IPv6 is the most recent version of the IP protocol that the entire internet relies on to connect to other locations. DigitalOcean now offers IPv6 addresses in all datacenters. In this guide, we will show you how to enable IPv6 on your Droplets.

Hi, can we attach secondary public IPv6 on eth1 (private interface) ?

Have another answer? Share your knowledge.