160
Router/prefix discovery and stateless address
autoconfiguration
Router/prefix discovery allows an IPv6 node to find the neighboring routers and learn the prefix and
network configuration parameters of the network from receiving RA messages.
Stateless address autoconfiguration allows an IPv6 node to automatically generate an IPv6 address
based on the information learned through router/prefix discovery.
A node performs router/prefix discovery and stateless address autoconfiguration as follows:
1. At startup, a node sends an RS message to request configuration information from a router.
2. The router returns an RA message containing the Prefix Information option and other
configuration information. (The router also periodically sends an RA message.)
3. The node automatically generates an IPv6 address and other configuration parameters
according to the configuration information in the RA message.
The Prefix Information option contains an address prefix and the preferred lifetime and valid lifetime
of the address prefix. A node updates the preferred lifetime and valid lifetime upon receiving a
periodic RA message.
The generated IPv6 address is valid within the valid lifetime and becomes invalid when the valid
lifetime expires.
After the preferred lifetime expires, the node cannot use the generated IPv6 address to establish
new connections, but can receive packets destined for the IPv6 address. The preferred lifetime
cannot be greater than the valid lifetime.
Redirection
Upon receiving a packet from a host, the gateway sends an ICMPv6 redirect message to inform the
host of a better next hop when the following conditions are met:
• The interface receiving the packet is the same as the interface forwarding the packet.
• The selected route is not created or modified by an ICMPv6 redirect message.
• The selected route is not a default route on the device.
• The forwarded IPv6 packet does not contain the routing extension header.
Protocols and standards
• RFC 4861, Neighbor Discovery for IP Version 6 (IPv6)
• RFC 4862, IPv6 Stateless Address Autoconfiguration
IPv6 neighbor discovery tasks at a glance
All IPv6 neighbor discovery tasks are optional.
• Configuring a static neighbor entry
• Setting the dynamic neighbor learning limit on an interface
• Setting the aging timer for ND entries in stale state
• Minimizing link-local ND entries
• Setting the hop limit
• Configuring RA message sending and parameters
• Setting the maximum number of attempts to send a
n NS message for DAD