Search

What are IEEE EUI-64 based Global Unicast IPv6 addresses

When an interface generate an autoconfigured Global Unicast IPv6 Address, there should be some mechanism to guarantee the uniqueness of autoconfigured Global Unicast IPv6 Addresses.

IPv6 has a method (as defined in RFC 4291) to generate a 64 bit interface part (host part) of the Global Unicast IPv6 Address from the interface MAC address. MAC Addresses are considered as Globally Unique addresses and therefore the IPv6 address derived from MAC address also should be Globally Unique. The EUI-64 method of generating an Global Unicast IPv6 Address involves selecting the 6 byte (48 bit) interface MAC address and the and then generating a Global Unicast IPv6 Address by expanding it into a 64 bit interface part (host part).

To make a Global Unicast IPv6 Address unique, IPv6 insert 2 bytes (16 bits) into the middle of the MAC address. The 48 bit MAC address is divided into two 3 byte parts a binary number 1111111111111110 (0xFFFE in hexadecimals) is inserted in between them to make complete 64 bits.

Also the 7th bit (from left) in the MAC address is flipped. Which means, if the 7th bit in the MAC address (from left) is 1, change it to 0 or if the 7th bit (from left) in the MAC address is 0, change it to 1.

The 7th bit (from left) in the MAC address is called as Universal/Local (U/L) bit. Universal/Local (U/L) bit is used to indicate whether the address is universally assigned or locally assigned. The Universal/Local (U/L) bit set to 0 means that it is IEEE assigned MAC address. The Universal/Local (U/L) bit set to 1, means that the MAC address is locally assigned.

The reason behind flipping the Universal/Local (U/L) bit is for better compressibility of IPv6 addresses.

Refer the screen shot given below.

EUI-64 Global Unicast IPv6 Address

As marked, the MAC address of the interface is 00:AB:29:8C:3E:00 and the autoconfigured EUI-64 Global Unicast IPv6 Address is 2001:db8:aaaa:1:2ab:29ff:fe8c:3e00/64.

The following table explains how EUI-64 Global Unicast IPv6 Address 2001:db8:aaaa:1:2ab:29ff:fe8c:3e00/64 is generated automatically from the MAC address 00:AB:29:8C:3E:00.

MAC Address 00:AB:29:8C:3E:00
MAC Address with
0xFF:FE added in middle to make it 64 bits
00:AB:29:FF:FE:8C:3E:00
64 bit Host part 00AB:29FF:FE8C:3E00
64 bit Host part (in binaries) 0000000010101011:0010100111111111:1111111010001100:0011111000000000
64 bit Host part
in binaries and 7th bit flipped
0000001010101011:0010100111111111:1111111010001100:0011111000000000
64 bit Host part
(in hexadecimals and 7th bit flipped)
2AB:29FF:FE8C:3E00
Global Unicast IPv6 address with network prefix 2001:db8:aaaa:1::/64 added
2001:db8:aaaa:1:2ab:29ff:fe8c:3e00/64

 

As shown in the above table, the EUI-64 Global Unicast IPv6 address 2001:db8:aaaa:1:2ab:29ff:fe8c:3e00/64 for the Ethernet interface eth0, is derived from the MAC address of that interface.

Well, everything looks good. But, what about an interface which does not has a MAC address? You may aware that a Serial Interface in a Cisco router does not has a MAC address. RFC 4291 states that if there is no MAC address available for a network interface, borrow a MAC address from another interface which has a MAC address. Good idea!!!

 

Written by Jajish Thomas.
Last updated on 17th May, 2024.

 

Related Tutorials
Limitations of IPv4
IPv6 History and related RFCs
IPv6 Features
Differences Between IPv4 and IPv6
Unicast, Multicast and Anycast - Types of communication in IPv6
IPv6 Datagram Header Format
Comparison between IPv4 Header and IPv6 Header
Introduction to IPv6 Addressing
What is prefix and prefix length in IPv6, Similarity between IPv4 subnet mask and IPv6 prefix
IPv6 Address formats
How to Simplify Shorten and Compress IPv6 Addresses
Types of IPv6 Addresses, Global Unicast, Link-local, Multicast, Anycast, Loopback addresses
Global Unicast IPv6 Addresses, Global Unicast IPv6 Address prefix, format and range
Different methods to assign a Global Unicast IPv6 address to an interface
How to configure Static Global Unicast IPv6 Address in a Cisco Router Interface
How to configure EUI-64 based Global Unicast IPv6 Address in a Cisco Router Interface
How to configure static Global Unicast IPv6 Address in a Windows Server
What is SLAAC - Stateless Address Auto-configuration in IPv6
How SLAAC works in IPv6
Link Local IPv6 Addresses, How Link Local IPv6 addresses are generated
Unique Local IPv6 Addresses
Multicast IPv6 Address Format, Prefix, Flags and Scope
Anycast IPv6 Addresses
IPv6 Loopback Address and IPv6 Unspecified address
IPv6 Special Addresses and IPv6 well known prefixes
Solicited-Node Multicast IPv6 Address, How Solicited Node Multicast IPv6 Address are generated
ICMPv6 Functions, ICMPv6 Header Packet Format and Types of ICMPv6 messages
Types of ICMPv6 messages, ICMPv6 message format, ICMPv6 message fields
ICMPv6 Error messages
ICMPv6 informational messages
Introduction to Neighbour Discovery Protocol (NDP) and Functions of NDP
NDP (Neighbour Discovery Protocol), functions of NDP, Neighbour Solicitation and Advertisement, Router Solicitation and Advertisement
Router Solicitation and Router Advertisement Messages