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 and site-local IPv6 addresses.

The problem with local-use unicast addresses is that they are not unique because they can be reused.

Everything is fine as long as duplicate addresses are in networks of different organizations (sites).

However, within in an organization, local-use addresses can also be assigned multiple times.

IPv6 zone ID

Nic is short for Network Interface Card 网卡

The purpose of zone IDs is to distinguish these addresses.

For instance, if host A has two NICs that are connected to two different links (subnets),

the same local-link address could have been used for NIC 1 on host A and on host B

that[the same local-link address] is on the link of host A’s NIC 2.

To distinguish this ambiguous link-local address, host A uses the interface index of NIC 1 as the zone ID for the local IP address.

For site-local addresses, the operating system uses the site ID (also called the scope ID).

If a host is only connected to one site, this ID is always 1.

You can display the interface indexes on a host with the command “netsh interface ipv6 show address level=verbose”.

If you launch the ipconfig command, you can see the local-link and site-local addresses with their zone IDs.

The syntax for identifying the zone is address%zone_ID.

This is an example of a link-local IP address with zone ID 11: fe80::bd0f:a8bc:6480:238b%11.

Note that the zone ID is only known at the local host that assigned it.

I think in practice you will seldom be bothered with zone IDs as you don’t have to configure them manually.

Unique local IPv6 unicast address

Even with the use of zone IDs, you should probably avoid having ambiguous IP addresses in your network.

Instead of site-local addresses, you can work with unique local IPv6 unicast addresses.

These local-use addresses are also not routed across the Internet; however, like global IPv6 addresses, they are unique. Well, more or less, as you will soon see.

The prefix of unique local IPv6 unicast addresses is FC00::/7.

The eighth bit is the Local flag and is set to 1 for local addresses.

A Local flag with 0 has not yet been defined.

Perhaps this could be a way to make local IPv6 addresses global?

Anyway, until IPv6, creators have made up their mind, the prefix of unique local IPv6 unicast addresses is FD00::/8.

Don’t worry if you don’t really understand this; all you really have to know about unique local IPv6 unicast addresses is this:

The next 40 bits are for the global ID and are randomly set.

The following 16 bits are the subnet ID, which you can use for hierarchical addresses within your organization. As usual, the last 64 bits are the interface ID.

The trick with the random global ID is that it makes it somewhat unlikely for duplicate local addresses to occur on a site or even in the networks of two merging organizations.

Actually, the probability that two organizations use the same global ID for their unique local IPv6 addresses is 1/240=9.1 10-13.

Winning the Lotto jackpot is a few magnitudes more likely.

However, what the IPv6 creators didn’t take into account is that Murphy’s Law rules墨菲定律 in all networks.

Hence, “relatively unique local IPv6 unicast addresses” would probably have been a better name.

In the next post in this IPv6 tutorial, I will discuss the special IPv6 addresses: unspecified address, IPv4-mapped address, 6to4 addresses, IPv6 multicast address, and solicited-node address.

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

IPv6 tutorial – Part 7: Zone ID and unique local IPv6 unicast addresses的相关文章

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

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 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

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

*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.

首先到官网下载需要的包:http://www.keepalived.org/download.html [[email protected] local]# tar -zxvf /tmp/keepalived-1.3.5.tar.gz [[email protected] local]# cd keepalived-1.3.5/ [[email protected] keepalived-1.3.5]# ./configure --prefix=/usr/local/keepalived 然后系

IPv6 简介以及位址介绍

IPv6 简介 IPv6(IP版本6)是互联网通讯协议(Internet Protocol,简称IP)的新版本,它被设计来取代IPv4.并且针对当初设计IPv4时没有考虑到的问题做了以下改进: 扩展地址空间  IPv6将IP地址长度从32 bits扩展到128 bits,其主要目的是支持更多层的阶层式的路由架构,更大的地址空间(IPv6的地址不再有耗尽之虑),并且提供更简单的自动组态配置.在multicast address中新增 "scope" 字段来提升multicast rout

IPV6地址格式分析

IPV6地址格式分析 IPv6的地址长度是128位(bit). 将这128位的地址按每16位划分为一个段,将每个段转换成十六进制数字,并用冒号隔开. 例如:2000:0000:0000:0000:0001:2345:6789:abcd 这个地址很长,可以用两种方法对这个地址进行压缩, 前导零压缩法: 将每一段的前导零省略,但是每一段都至少应该有一个数字 例如:2000:0:0:0:1:2345:6789:abcd 双冒号法: 如果一个以冒号十六进制数表示法表示的IPv6地址中,如果几个连续的段值

(转) IPv6相关RFC

转自http://blog.csdn.net/lucien_cc/article/details/12688477 IPv6 Spec RFC 2460 : Internet Protocol, Version 6 (IPv6) Specification RFC 5095: Deprecation of Type 0 Routing Headers in IPv6 RFC 5722 (更新RFC 2460): Handling of Overlapping IPv6 Fragments RFC

IPv6相关RFC

IPv6 Spec RFC 2460: Internet Protocol, Version 6 (IPv6) Specification RFC 5095: Deprecation of Type 0 Routing Headers in IPv6 RFC 5722(更新RFC 2460): Handling of Overlapping IPv6 Fragments RFC 6437(更新RFC 2460/2205): IPv6 Flow Label Specification RFC 65