Stateless Autoconfiguration SLAAC

In this article i explain the function of stateless autoconfiguration SLAAC. Stateless autoconfiguration works in IPv6 address scheme. Hosts and network devices got the IPv6 address configuration via SLAAC similar to DHCP in IPv4. Internet Protocol Version6 IPv6 is a type of internet protocol. We know about IPv4 and works with IPv4 for inter-networking and local networks. IPv4 address is a combination of 8 bytes or 32 bits. Every device connected in a network or internet required an unique IP address. There are billions devices which works on internet. IPv4 have limited IP addresses that is 232.

Which are not sufficient in today scenario. To overcome this problem Internet Protocol Version6 IPv6 invented by IETF team. IPv6 address is a combination of 128 bits. So we have now 2128 addresses to use in inter-networking or internet. The numbers of IPv6 are billions of billions. These address provides security better than IPv4. Later I describe the security concern in Internet Protocol Version 6 IPv6. The main purpose of using Internet Protocol Version 6 IPv6 is to increase the IP address for devices connected in internet.

Initially the IETF ( Internet Engineering Task Force) developed the internet protocol to provide the communication between devices in a network. IPv4 developed to provide the unique identity to the devices of network. Internet was used by the cooperative organizations in these days. But now every one need internet via mobile or computer. So the addresses provided by IPv4 become less than the users. To overcome this problem NAT technique used in routers.

We know the types of IPv4 addresses like unicast, broadcast addresses. IPv6 address types also defined according to requirement of IPv4 address system. These addresses are required for data packet transfer in a network or internet. IPv6 address system have its own address systems like unicast, link local and unique local address and multicast address.

You may also like to read --  IPv6 Stateful DHCPv6

DHCP Dynamic Host Configuration Protocol is related to application layer of TCP/IP Suite model. The DHCP Dynamic Host Configuration Protocol assign the IP address to the devices connected in the network. DHCP Dynamic Host Configuration Protocol forward the packets for configuration of IP address in the network. The DHCP Dynamic Host Configuration Protocol is reliable so if any new device connected in the network, it will automatically got the IP address for communication with the network ID. A standard DHCP table is maintained by the DHCP servers for all connected devices in the network.

Configuration of Stateless Autoconfiguration (SLAAC) EUI-64 for working of IPv6 in internetwork.

Stateless autoconfiguration allows the device to introduce itself with a link-local unicast as well as with global unicast IPv6 addresses. The interface ID of an IPv6 address is of 64 bits but the MAC address is of 48 bits only. The extra 16 bits in IPv6 are FFFE which can be added in the interface ID of a device. The process is very easy to learn how the stateless autoconfiguraion works on a interface or router. The first 64 bits of IPv6 address are predefined by the network administrator. We need to configure the last 64 bits which are known as interface IP of the interface. It is similar to the MAC address of any interface.

We require two steps to get the 64 bits interface ID from a MAC ID. The first thing is to add the FFFE in the middle of the 48 bits MAC address. For example my MAC ID is 00:26:82:37:73:35. This MAC id combination of 48 bits. This MAC address will be written after adding the FFFE as 0026:82FF:FE37:7335. You see I added the FFFE in the middle of the MAC address. Now go to the next step

You may also like to read --  Configuring BGP Route Reflectors in Packet Tracer
stateless autoconfiguration slaac, ccna, ccna tutorials

We need to change the 7th bit of the converted MAC. We know the binary format have only two digits 0 and 1. Now the next step is to invert the 7th bit and put the value in interface ID. In above example the first 8 bits 00000000 for 0026. We require to invert the 7th bit which is 0. After inverting the 7th bit i got 00000010. It is equal to 02 so the value 0026 become 0226.

stateless autoconfiguration slaac, ccna, ccna tutorials

Hence the MAC address 00:26:82:37:73:35 of IPv4 can be written in the form of IPv6 interface id as 0226:82FF:FE37:7335. I hope you understood what I have done above. You can try with another example the MAC address in IPv4 is AA:34:CC:45:22:21. After converting this MAC ID the Interface ID will be A834:CCFF:FE45:2221. Do it yourself I hope you do it well.

A host require to go through two basic steps to get autoconfiguration.

The first step is to getting the prefix of IPv6 address information. I explained above the interface ID can be changed from 48 to 64 bits by doing the above calculation. Host require the 64 bits prefix ID from the router. So host sends a router solicitation (RS) request as multicast to all routers via a ICMP message.

The second step is done by router. After getting the router solicitation from a host, the router send the prefix ID via router advertisement (RA) message in the form of ICMP.

You may also like to read --  IPv6 Transition Coexistence Methods
stateless autoconfiguration, ccna, ccna tutorials

After completion of both steps the host auto-configure the IPv6 address to its interface by adding the interface ID with the Prefix ID.

Configuration of stateful autoconfiguration DHCPv6.

We know the function of DHCP in IPv4 system. DHCP protocol assign the IP address to host dynamically which lie in the network. DHCPv6 do the same thing in the network the difference is of the address scheme only. In configuration of IPv6 addresses from DHCPv6 the RS (Router Solicitation) and RA (Router Advertisement) happens firstly as in stateless auto-configuration.

If router available then the IPv6 address auto-configured automatically. If router not available in the network then DHCPv6 solicit message broadcasted by the DHCP server to all clients in the network. So in both case the host got the prefix ID of the IPv6 address. The IPv6 address auto-configured by adding the 64 bit interface ID with it.

This article is just about the configuration of stateless autoconfiguration of IPv6. I hope you understood the stateless and stateful autoconfiguration SLAAC. For any query or suggestion on this article you may contact us or drop a comment below. Your suggestions are always welcome by us.

Share this article in your social circle :)
, ,

Leave a Reply

Your email address will not be published. Required fields are marked *