ipv6 link-local地址及Eui64地址

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

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值