Network Design and Operations
An interface with MAC address 00-1A-2B-3C-4D-5E creates an address with SLAAC from the prefix 2001:db8:1:1::/64 and an interface ID in the EUI-64 format. Which address results?
- A2001:db8:1:1:21a:2bff:fe3c:4d5e
- B2001:db8:1:1:1a:2bff:fe3c:4d5e
- C2001:db8:1:1:21a:2bfe:ff3c:4d5e
Show answer and explanation
Answer: A. 2001:db8:1:1:21a:2bff:fe3c:4d5e
In the EUI-64 format, the 48-bit MAC address is split into its upper 24 bits and lower 24 bits, and FF-FE is inserted between them to make 64 bits. Inserting it between 00-1A-2B and 3C-4D-5E gives 00-1A-2B-FF-FE-3C-4D-5E. In addition, the second-lowest bit of the first byte (the U/L bit) is inverted, so 00 becomes 02, giving 02-1A-2B-FF-FE-3C-4D-5E. Grouping this into 16-bit pieces and dropping leading zeros in each gives 21a:2bff:fe3c:4d5e, and with the prefix the address is 2001:db8:1:1:21a:2bff:fe3c:4d5e. Because an address that reveals the MAC address makes the host easier to track, most current operating systems use interface IDs based on random values.
- A. Correct. FF-FE is inserted and the U/L bit is inverted.
- B. This is the value without inverting the U/L bit. The leading 00 becomes 02.
- C. This inserts FE-FF instead. The bytes inserted are FF-FE, in that order.