How a host builds its address
- The host creates a link-local address (
fe80::/64plus an interface ID) and checks it with duplicate address detection. - It sends a Router Solicitation, or waits for a periodic Router Advertisement.
- The RA carries the /64 prefix with the A (autonomous) flag set, plus the router as default gateway.
- The host joins the prefix with its own interface ID and runs duplicate address detection again.
Where the interface ID comes from
EUI-64 derives it from the MAC address: split the 48-bit MAC in half, insert ff:fe in the middle, then flip the 7th bit of the first byte (the universal/local bit). For MAC 00:0c:29:3a:7b:11 the first byte 00 becomes 02, giving 020c:29ff:fe3a:7b11. A router can build interface IDs this way with ipv6 address 2001:db8:1:1::/64 eui-64.
Most hosts today use random or stable-private IDs instead, because EUI-64 exposes the MAC address.
The M and O flags
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Configuring it on Cisco IOS
Example commands and output on this page were written from Cisco IOS documentation and generally described behaviour. They were not captured from a live device, so prompts and details can differ on your platform and version.
ipv6 unicast-routing
interface GigabitEthernet0/0
ipv6 address 2001:db8:1:1::1/64
ipv6 nd other-config-flag
no shutdownThe router sends RAs for 2001:db8:1:1::/64 once it has ipv6 unicast-routing and a global address. Hosts build their own address and ask a DHCPv6 server for DNS.
A router interface can also learn its own address through SLAAC with ipv6 address autoconfig, for example on a link to a provider.
Checking the result
R1#show ipv6 interface GigabitEthernet0/0 GigabitEthernet0/0 is up, line protocol is up IPv6 is enabled, link-local address is FE80::1 Global unicast address(es): 2001:DB8:1:1::1, subnet is 2001:DB8:1:1::/64 Joined group address(es): FF02::1 FF02::2 Hosts use stateless autoconfig for addresses.
ipconfig or ip -6 addr to see the address it built.Test yourself
A router advertises 2001:db8:1:1::/64 with the A flag set and M=0, O=0. What does a host do?
What is the EUI-64 interface ID for MAC 00:1a:2b:3c:4d:5e?
Which flag tells the host to also ask a DHCPv6 server for DNS information but still use SLAAC for the address?