Quick guide to IPv6 Unicast addresses


This is a very quick guide of IPv6 Unicast Addresses. Please note that this is my understanding of IPV6 and might not be fully correct (please comment below if you want to improve this post). Please note that this post only talks about Unicast IPv6 addresses, not Anycast or Multicast. This post assumes that you have a good understanding of IPv4.

IPv6 Format

IPv6 addresses have a size of 128 bits (compared to the IPv4 32 bits) and are written in hexadecimal format. Since even in hexadecimal format IPv6 address can be very long there are some rules to shorten them:

Rule:1 Discard leading Zero(es)

Rule:2 If two of more blocks contains consecutive zeroes, omit them all and replace with double colon sign ::

IPv4 “equivalents”

Although not entirely correct, I found it useful to compare the scope of IPv4 addresses to IPv6 Unicast addresses:

IPv4 scope IPv4 example IPv6 IPv6 example Notes
Link Local169.254.0.0/16 Link Local fe80::/64 This would be your Windows APIPA, Linux Avahi or Apple Zeroconf IPv4. IPv6 Link Local addresses start with FE80:
Private address, or Unique Local FD00::/8 Local IPv6 address are really FC00::/7, since the 8th bit or Local “L” flag is not defined the first eight bits become FD
Public Address Global Unicast 2001:4860:4860::8888 Globally routable and reachable Internet addresses

IPv6 uses in most cases a version of the device’s hardware MAC address in the address itself using the Modified EUI-64 interface identifier. So let’s start with the nitty-gritty.

How to get the Modified EUI-64:

Start with the MAC address of the interface and stick the 16 bit hex value of 0xFFFE to get the EUI-64 and invert the 7th most significant bit to get the Modified EUI-64.

For example if the MAC address is:


Stick FF:FE in the middle to get the EUI-64 notation:


The first eight bits, the 00 in hex form, would be:

0000 0000

and invert the most significant 7th bit to get the first eight bits:

0000 0010

Going back to hex notation the first eight bits would be:


So the Modified EUI-64 would be:


I have not found an online tool that just does this part of an IPv6 address, the closest I coudl find was this site, just use everything after FE80::.

You will need the Modified EUI-64 to build your different IPv6 addresses.


Scope: Link Local

Hexadecimal format:

FE80: 0000:0000:000 Modified EUI-64
16 bits 48 bits 64 bits

For example if the MAC address is:


The link local address would be:

FE80: 0000:0000:0000: 02CE:39FF:FECD:7F20
16 bits 48 bits 64 bits



shortened using IPv6 shortening rules to:


Unique Local

Scope: Organizational or Site

Hexadecimal format:

FD Global ID Subnet ID Modified EUI-64
7 bits + “L” bit (not defined yet) 40 bits 16 bits 64 bits

Unique Local IPv6 addresses are meant to be private to an organization but they still need to be unique, so the Global ID portion must be “random”. Using a random process you can generate a Global ID that statistically very unlikely to be duplicated. IETF has a suggested method (RFC4193) to generate unique addresses that is worthy a Nerd Pulitzer (no disrespect meant, just read the process at the end of RFC4193 to get an idea).

Fortunately there is a website for that, go to:


and input your MAC address, for example:


The results will be:

“Your Private IPv6 network is:


giving you access to the to the following /64s:

fd5c:0e7f:1e67:0::/64 through fd5c:0e7f:1e67:ffff::/64“

In expanded form your network will be:


The above means that your Global ID is:


and you can make your the Subnet ID whatever are your requirements for your network, say, very creatively, 0000

The Unique Local address would be:

FD 5c:e7f:1e67 0000: 02CE:39FF:FECD:7F20
7 bits + “L” bit (not defined yet) 40 bits 16 bits 64 bits



shortened using IPv6 shortening rules to:


Global Unicast

Scope: Global

Hexadecimal format:

Global Routing Prefix Subnet ID Modified EUI-64
48 bits 16 bits 64 bits

For example if the MAC address is:


The Global Routing Prefix is:


The Subnet ID is:


The Global Unicast address would be:

2603:B9C0:9CC6: 25AC: 02CE:39FF:FECD:7F20
48 bits 16 bits 64 bits



shortened using IPV6 shortening rules to:


Final Thoughts

I hope that this post was useful and made your life easier, if not, please leave a comment and I will try to answer if I can, but I cannot guarantee that I will, since I have a job, a family and several money-sucking hobbies. If you would like commercial support, please contact me privately.







Leave a Reply