The following table shows five prefixes and MAC unabbreviated IPv6 addresses convert these to the shortest possible abbreviated IPv6 address. In other words, use the solicited node multicast prefix with those last 6 hex digits of the unicast IPv6 address. This multicast address is formed by taking the unicast address, and replacing the first 104 bits (26 hex digits) with FF02::1:FF00:0/104. Do some math on the first byte of the MAC address to invert (flip) the 7 th of 8 bits (counting left-to-right)įor this exercise, take the listed prefixes and MAC addresses, and create the IPv6 address the device would use.Įxtra credit: Also, if interested, you can think about the solicited node multicast address the host would use along with the unicast address.Insert hex FFFE in the middle between the two, completing the 16 hex digits in the 2nd half of the number.Split the MAC into two halves, each 6 hex digits / 3 bytes / 24 bits long.EUI-64 rules used by SLAAC tell you how to make the last 64 bits, as follows: However, then you have to convert the first byte, or at least the 2 nd hex digit, to binary and back. First, you use the learned prefix as the first 64 bits. Using these two facts, the process to form the full 128-bit IPv6 unicast address is pretty simple. To create the Interface ID, take the 48 bits. You use the network portion of the address (first 64 bits), and create an Interface ID (last 64-bits) using the MAC address. A 64-bit IPv6 prefix (typically learned from a router) RFC 4291, IPv6 Addressing Architecture, Appendix A, Creating Modified EUI-64 Format Interface Identifiers, Details how to build an IPv6 address from the MAC address.The EUI-64 process to derive an IPv6 address begins with two facts, followed by a process that uses those facts. Related links: Deeper info from the ICND2 OCG book In IPv6 Stateless Address Autoconfiguration (SLAAC), the Interface ID part of an IPv6 address is often derived from the MAC address. Query generates an output response according to selected options.
![automatically convert mac address to ipv6 automatically convert mac address to ipv6](https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/blogs/3184/images/XEc8oJH7QxWrQO0XO3At_Blog_Thumbnails7.005.jpeg)
Today’s post lists sample problems the follow-up post will show the answers. It takes MAC Address as input string and generates a query against given MAC address and conversion option like convert into IPv6 to IPv4 or both then performs the above steps. The goal: Starting with a MAC address and a /64 IPv6 prefix, predict the IPv6 address the host would use if using IPv6 Stateless Auto Address Configuration (SLAAC).
![automatically convert mac address to ipv6 automatically convert mac address to ipv6](http://vcloud-lab.com/files/resized/667953/1042;242;dab44816773198a8c3b3cf04dda0c0fabb53bbe8.png)
It’s icky for two reasons: it requires you to think in binary, and it rhymes. This post starts a new type of review post for #ICND2 or #CCNA: the icky EUI-64 drill.