IPv6 tutorial – Part 6: Site-local addresses and link-local addresses

https://4sysops.com/archives/ipv6-tutorial-part-6-site-local-addresses-and-link-local-addresses/

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  FEC0

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  FE80

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.

时间: 2024-07-30 16:25:26

IPv6 tutorial – Part 6: Site-local addresses and link-local addresses的相关文章

IPv6 tutorial – Part 8: Special addresses

https://4sysops.com/archives/ipv6-tutorial-part-8-special-addresses/ The special IPv6 addresses discussed in this part of the IPv6 tutorial are the unspecified address, the loopback address, IPv4-mapped addresses, 6to4 addresses, multicast addresses,

IPv6 tutorial – Part 7: Zone ID and unique local IPv6 unicast addresses

The zone ID is used to distinguish ambiguous link-local and site-local addresses. Unique local IPv6 unicast addresses are another way to address the problem of ambiguous IPv6 addresses. In the last post of this IPv6 tutorial, I introduced link-local

IPv6 tutorial 3 New features: IPsec and LAN features

https://4sysops.com/archives/ipv6-tutorial-part-3-new-features-ipsec-and-lan-features/ In the last post of this series, I discussed the new IPv6 features Quality of Service (QoS), hierarchical addressing, and the new address space. In this post, I ta

IPv6 tutorial 4 IPv6 address syntax

https://4sysops.com/archives/ipv6-tutorial-part-4-ipv6-address-syntax/ Now that you know about the new features of IPv6, it is time to have a closer look at the practical details. In this post, I will give a short summary about the IPv6 address synta

内置系统账户:Local system/Network service/Local Service 区别

LocalSystem   账户 LocalSystem是预设的拥有本机所有权限的本地账户,这个账户跟通常的用户账户没有任何关联,也没有用户名和密码之类的凭证.这个服务账户可以 打开注册表的HKEY_LOCAL_MACHINE/Security键,当LocalSystem访问网络资源时,它是作为计算机的域账户使用的. 举例来说,以LocalSystem账户运行的服务主要有:WindowsUpdate   Client.   Clipbook.Com+.DHCP   Client.Messenge

Local prefixed index和Local nonprefixed index对select语句的性能影响分析

1.搞清楚两种索引的概念 在比较两种索引对select产生的影响之前,先要搞清楚,什么是Local prefixed index,什么叫Local nonprefixed index.其实,这两种索引,都是属于分区local索引,所以,这两种类型的索引,只有可能在分区表上才会出现. 1.1 什么是Local prefixed index 是指索引中的列,就是分区表的分区键列,或者是索引中的列,包含表的分区键值列,并且为前置位 置在索引最前部位置的本地分区索引. 例如,emp表是按时间范围分区的表

在用 <%@include file="date.jsp" %> "date.jsp"老提示出错,错误为: Multiple annotations found at this line: - Duplicate local variable path - Duplicate local variable basePath 该怎么解决呢?

重复变量 date.jsp文件内部不应该再出现重复的变量定义 也就是<%@include%>是先把文件源代码一模一样的拷贝过来,然后才开始编译 所以如果有相同的变量肯定报错 用了动态的<jsp: include file="top.jsp" />的就正确了 因为<%@include%>引进的是代码,把代码包含进来,而新进JSP时,会默认生成 <% String path = request.getContextPath(); String ba

使用 Java 开发兼容 IPv6 的网络应用程序

根据现有 IPv4 地址的部署速度,剩余的地址将在 10 到 20 年被使用殆尽.因此网络逐渐从 IPv4 向 IPv6 转换是不可避免的,相应的各种网络应用程序都将支持 IPv6.对于 Java,从其 1.4 版开始对 IPv6 提供了较好的支持,对程序员基本屏蔽了 IPv4 和 IPv6 的差异,但其中仍有一些 IPv6 引起的变化需要我们小心处理.针对这一情况,本文介绍了如何运用现有的 Java 技术应对这些变化. IPv6 背景介绍 目前我们使用的是第二代互联网 IPv4 技术,它的最大

General: Know How to Use InetAddress

Modern applications often need the ability to learn information about hosts out on the network. One key class in this process for Java developers is the java.net.InetAddress . This class allows you to figure out various information about hosts, as we