Report this

What is the reason for this report?

Public IPv6 address not shown in `ifconfig`

Posted on September 14, 2014

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

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;

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.