O'Reilly logo
  • HAN WANG thinks this is interesting:

Here we can see how the Ethernet’s hardware address 00:30:48:2A:19:89 is mapped to an IPv6 address. First, it is converted to EUI-64, forming the address 00:30:48:ff:fe:2a:19:89. Next, the u bit is inverted, forming the IID value 02:30:48:ff:fe:2a:19:89. To complete the link-local IPv6 address, we use the reserved link-local prefix fe80::/10 (see Section 2.5). Together, these form the complete address, fe80::230:48ff:fe2a:1989. The presence of /64 is the standard length used for identifying the subnetwork/host portion of an IPv6 address derived from an IID as required by [RFC4291].

From

Cover of TCP/IP Illustrated, Volume 1: The Protocols

Note

Example for forming a link-local IPv6 address.