In the Internet Protocol Version 6 (IPv6), the address block has been reserved for link-local unicast addressing. Of the 64 bits of a link-local addresses' network component, the most significant 10 bits (1111111010) correspond to the IANA-reserved "global routing prefix" for link-local addresses, while the "subnet ID" (the remaining 54 bits) is zero. Unlike IPv4, IPv6 requires a link-local address on every network interface on which the IPv6 protocol is enabled, even when routable addresses are also assigned. Consequently, IPv6 hosts usually have more than one
IPv6 address assigned to each of their IPv6-enabled network interfaces. The link-local address is required for IPv6 sublayer operations of the
Neighbor Discovery Protocol, as well as for some other IPv6-based protocols, such as
DHCPv6. When using an IPv6 link-local address to connect to a host, a
zone index must be added to the address so that the packets can be sent out on the correct interface. In IPv6, addresses may be assigned by
stateless (without memory) or stateful (with memory) mechanisms.
Stateless address autoconfiguration is performed as a component of the
Neighbor Discovery Protocol (NDP). The address is formed from its routing prefix and a unique identifier for the network interface. Through NDP routing prefix advertisements, a router or server host may announce configuration information to all link-attached interfaces which causes additional IP address assignment on the receiving interfaces for local or global routing purposes. This process is sometimes also considered stateless, as the prefix server does not receive or log any individual assignments to hosts. Uniqueness is guaranteed automatically by the address selection methodology. It may be MAC-address based, or randomized. Automatic duplicate address detection algorithms prevent assignment errors. ==See also==