Question

Understanding IPv6 address formats

Hello!

Under Networking in my Droplet’s info page, I can see an entry for Public IPv6 Address, however it ends in /64. I also see a configurable range. I’m not sure which to use for the network interface settings in Ubuntu. Can I just enter one of the addresses in the range as eth0’s static IPv6 address? Can I theoretically use each of the (64?) addresses by making an entry for each in Ubuntu’s network interface config file? Would pasting in the “Public IPv6 Address” as-is work? (it ends with “/64” and seems short for an IPv6 address).

I’ve read up on DigitalOcean’s IPv6 documentation, but I remain uncertain on these few things. Your help is greatly appreciated!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@jamesspinella right, only if you want to add one Address over “ip”

Hello and welcome to DigitalOcean.

If you enabled IPv6 at the creation you have one IP already activated and working e.g.;

Public IPv6 Address: 2a03:b0c0:3:d0::3b:2001/64 -> Your enabled IP is 2a03:b0c0:3:d0::3b:2001

/64 means that you have a /64 Subnet https://en.wikipedia.org/wiki/Subnetwork

Configurable Address Range: 2a03:b0c0:3:d0::3b:2000 - 2a03:b0c0:3:d0::3b:200f -> You can add these IP´s (Hexadecimal) 0-f (0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f)

To add one you need to do this e.g. (2a03:b0c0:3:d0::3b:200b)

ip -6 addr add 2a03:b0c0:3:d0::3b:200b/64 dev eth0

This comment has been deleted