Question

Public IPv6 address not shown in `ifconfig`

Posted September 14, 2014 5.8k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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;

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

Submit an Answer