In this article, you will learn about the syntax of IPv6 site-local addresses and link-local addresses, which are so-called local-use, unicast addresses.

Michael Pietroforte

Michael Pietroforte is the founder and editor in chief of 4sysops. He has more than 35 years of experience in IT management and system administration.

In the last post of this IPv6 tutorial, you learned about the different address types and the new public IP addresses, the global unicast addresses. Today I will introduce the so-called local-use, unicast addresses, which are those IPv6 addresses that are not routed across the public Internet. There are two types of local-use, unicast addresses: site-local addresses and link-local addresses.

Site-local addresses ^

Site-local addresses are equivalent to private IP addresses in IPv4. The address space reserved for these addresses, which are only routed within an organization and not on the public Internet, is 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. In IPv6, the first 10 bits of a site-local address are set to 1111111011, which is why these addresses always begin with FEC0. The following 54 bits are the subnet ID, which you can use in your organization for hierarchical routing, and the last 64 bits are the interface ID, which is the part that has to be unique on a link (local network on which hosts communicate without intervening routers). Thus, the prefix of a site-local address is FEC0::/10.

Note:  Site-local addresses have been deprecated, but existing implementations can still continue use them. Thus, they will probably stay around for a while. The proper way to work with private addresses in IPv6 is the use of unique local addresses which I will discuss in my next post.

Link-local addresses ^

From IPv4, you might know APIPA (Automatic Private IP Addressing) or AutoNet. Whenever automatic IP configuration through DHCP fails, Windows automatically assigns an autoconfiguration address in the range 169.254.0.1 to 169.254.255.254, which allows the computer to communicate with other machines on the link. In IPv6, link-local addresses always begin with 1111111010 (FE80).

Unlike site-local addresses, link-local addresses are never forwarded by routers and therefore can only be reached on the link. This is the reason why the next 54 bits are set to 0. The last 64 bits are set randomly by the operating system.

There is an important difference between IPv6 link-local addresses and IPv4 APIPA addresses. Once a PC receives an IPv4 address from a DHCP server, the APIPA address is no longer reachable. However, with IPv6, a network interface always has a link-local address even if you assign another IPv6 address manually or if the NIC receives an IPv6 address from a DHCP server. This means that computers on a link can always communicate through IPv6 using link-local addresses, which is not the case in IPv4 because APIPA addresses are not in the same subnet as private or public IPv4 addresses. Thus, if the local DHCP is unavailable, the computers can still access local services through IPv6 but won't be able to reach the Internet or services in other links.

In the next post of this IPv6 tutorial, I will talk a little about the zone ID and unique local IPv6 unicast addresses.

Are you an IT pro? Apply for membership!

Your question was not answered? Ask in the forum!

2+
Share
12 Comments
  1. RaFi 9 years ago

    > Thus, the prefix of a site-local address is FEC0::/64
    Perhaps FEC0::/10 ?

    0

  2. Michael Pietroforte 9 years ago

    RaFi, you are absolutely, right. I corrected the text. Thanks!

    0

  3. Tonny Pedersen 9 years ago

    ill just note that site-local addresses are Deprecated

    https://www.ietf.org/rfc/rfc3879.txt

    0

  4. Michael Pietroforte 9 years ago

    Tonny, thanks for the hint. I have added a note to the article.

    0

  5. Thomas Marko 9 years ago

    There's a small mistake in the Link-Local-addresses part:

    1111111011 (FE80)

    should be
    1111111010

    0

  6. Michael Pietroforte 9 years ago

    Thomas, thanks a lot! I corrected it.

    0

  7. Chamila Wijayarathna 7 years ago

    Does site local addresses get forwarded by routers??

    0

  8. Networky 6 years ago

    Wonderful article 🙂
    Could you please explain in simple words why site local addresses are deprecated?

    0

  9. Dulaj 4 years ago

    Nice article. Good explanation in a simple form.

    0

  10. manu chesian 4 years ago

    good article..i have one doubt..can we use this link local address for using rdp on the same link. can you explain that? do we need to change anything to make rdp on ipv6 work?

    0

  11. ajmal 4 years ago

    Great article, just awsome

    0

  12. Kelvin 3 years ago

    Hello,
    I once used the tool of name passive_discovery6 written by van hauser,
    In that tool, there was one option like

    -R prefix        Exchange the defined prefix with the link local prefix.

    Can  you tell me of what prefix they are talking about ?

    0

Leave a reply

Your email address will not be published. Required fields are marked *

*

© 4sysops 2006 - 2020

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account