IPV6 STATELESS
AUTOCONFIGURATION
By
Objectives
What?
Why?
Where?
IPv6
Internet Protocol version 6 (IPv6) is the latest
revision of the Internet Protocol (IP).
The communications protocol that provides an
identification and location system for computers on networks and routes traffic across the Internet.
IPv6 was developed by the Internet Engineering Task
Force (IETF) to deal with the long-anticipated problem of IPv4 address exhaustion.
IPv6 is intended to replace IPv4
IPv6 uses a 128-bit address, allowing 2128, or
approximately 3.4×1038 addresses, or more than
7.9×1028 times as many as IPv4, which uses 32-bit
IPv6
Autoconfiguration
A facility to allow devices on an IPv6 to actually
configure themselves independently.
In IPv4 hosts were originally configured manually.
Later, host configuration protocols like DHCP enabled
servers to allocate IP addresses to hosts that joined the network.
IPv6 takes this a step further, by defining a method
for some devices to automatically configure their IP address and other parameters without the need for a server.
It also defines a method whereby the IP addresses on
Stateless
This method is called “stateless” because
it begins from a “dead start” with no
IPv6 Stateless Auto
Configuration
The IPv6 stateless autoconfiguration feature can be used to
manage link, subnet, and site addressing changes.
Stateless autoconfiguration exploits several other new features in
IPv6, including link-local addresses, multicasting, the Neighbor Discovery (ND) protocol, and the ability to generate the interface identifier of an address from the underlying data link layer
address.
The general idea is to have a device generate a temporary address
until it can determine the characteristics of the network it is on, and then create a permanent address it can use based on that information.
In the case of multi-homed devices, autoconfiguration is
Steps a device takes when using stateless autoconfiguration
Link-Local Address Generation
Link-Local Address Uniqueness Test
Link-Local Address Assignment
Router Contact
Router Direction
Link-Local Address
Generation
The device generates a link-local address.
Link-local addresses have “1111 1110
10” for the first ten bits.
The generated address uses those ten
Link-Local Address
Uniqueness Test
The node tests to ensure that the address it generated isn't
for some reason already in use on the local network. (This is very unlikely to be an issue if the link-local address came from a MAC address but more likely if it was based on a generated token.)
It sends a Neighbor Solicitation message using the
Neighbor Discovery (ND) protocol.
It then listens for a Neighbor Advertisement in response that
indicates that another device is already using its link-local address; if so, either a new address must be generated, or autoconfiguration fails and another method must be
Link-Local Address
Assignment
Assuming the uniqueness test passes, the
device assigns the link-local address to its IP interface.
This address can be used for
Router Contact
The node next attempts to contact a local router for
more information on continuing the configuration.
This is done either by listening for Router
Advertisement messages sent periodically by
Router Direction
The router provides direction to the node
on how to proceed with the
autoconfiguration. It may tell the node that on this network “stateful”
autoconfiguration is in use, and tell it the address of a DHCP server to use.
Global Address
Configuration
Assuming that stateless
autoconfiguration is in use on the
network, the host will configure itself with its globally-unique Internet address. This address is generally formed from a
Advantages of Stateless
Autoconfiguration
Helpful in supporting mobility of IP devices,
as they can move to new networks and get a valid address without any knowledge of local servers or network prefixes
It still allows management of IP addresses
using the (IPv6-compatible) version of DHCP if that is desired
Routers on the local network will typically
tell hosts which type of autoconfiguration is supported using special flags in ICMPv6
Configuring IPv6 Stateless Autoconfiguration
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
Configuration cntd
Device> enable
Step 2
configure terminal Enters global configuration mode.
Example:
Device# configure terminal
Step 3
interface type number Specifies an interface type and number, and places the device in
interface configuration mode.
Example:
Device(config)# interface
FastEthernet 1/0
Step 4
ipv6 address autoconfig Enables automatic configuration of IPv6 addresses using stateless
autoconfiguration on an interface and enables IPv6 processing on the
interface.
Example:
Device(config-if)# ipv6 address