1、linklocal 链路本地地址
IPv6链路本地地址定义在fe80::/10地址块
该地址前缀只在一个局域网间通信,不应该在多个局域网间使用。不能跨越多个网段。多用于neighbour和dhcp场景
EUI-64(拓展唯一标识符):本地链路地址通过EUI-64使用设备物理地址MAC来生成,将48位mac地址拓展为64位
下文是RFC2373关于link-local地址的解释
2.5.8 Local-Use IPv6 Unicast Addresses
There are two types of local-use unicast addresses defined. These
are Link-Local and Site-Local. The Link-Local is for use on a single
link and the Site-Local is for use in a single site. Link-Local
addresses have the following format:
| 10 |
| bits | 54 bits | 64 bits |
+----------+-------------------------+----------------------------+
|1111111010| 0 | interface ID |
+----------+-------------------------+----------------------------+
Link-Local addresses are designed to be used for addressing on a
single link for purposes such as auto-address configuration, neighbor
discovery, or when no routers are present.
Routers must not forward any packets with link-local source or
destination addresses to other links.
路由器不得转发任何具有链路本地源或目的地地址到其他链接。
2、ipv6 eui64地址
EUI-64地址是一种全局唯一的地址,可以在不同的网络中使用。配置时通过指定接口的ipv6地址及前缀(取值不大于64)
EUI-64地址的生成过程不适用于随机化的地址,因为它们不能保证全球唯一性。此外,
一些网络设备在默认情况下不支持IPv6 EUI-64地址,并要求手动配置IPv6地址。
3、eui-64拓展规则
将mac地址分为两半,中间加入FFFE
反转第7bit