IP version 6 at a glance

WAN networking

For sure, you know the IP address, but if you do not know, it is a 32-bit address that all devices connected to the Internet, such as smartphones, laptops and routers, must have manually or dynamically. They got it, but in this article we do not want to talk about IP version 4, we want to talk about version 6 with some kinds of addressing called EUI-64 … Let’s get to know each other.

As you know, we are currently using IP version 4 to connect to the Internet and network. But due to its limited number, it can IP 2 ^ 32 devices. While with the advent of technologies like the Internet of Things (IOT), this number of IP is no longer our answer, now is the time to use IP version 6.

To address this, we must first get acquainted with the IP structure of version 6. IP version 6 is a 128-bit hexadecimal address that can be 2¹²⁸ IP the number. In IP version 6 structuring and writing, each 16-bit is separated by the following, each called a 16-bit hexadecimal component.

IP components version 6
Global Address: The address provided by your ISP

Global Address: The address provided by your ISP

Subnet: It is the part that separates the different parts of the network and it is determined by the network administrator.

HOST ID: This part of the 64-bit address is also specified by the network administrator for the clients they need to share which must be equal.

Server room connections
Photo by Taylor Vick on Unsplash

EUI-64 : Well, now we come to the EUI-64 method, which uses a physical address or a MAC address of the clients on the network and a 16-bit address to address the clients that need to be shared on the network with IP version 6. Slowly.

Suppose a MAC address is one of the clients in the network as follows: 00E0.F988.A23B

And that 16-bit address: FFFE

Global Address+SUBNET: The address that your ISP has assigned to the network:2001:DB8:6783:A

step 1: Computing: Well, first there is the ISP and SUBNET addresses:2001:DB8:6783:A

Step 2: Add 16 bits of the client MAC address to it:2001:DB8:6783:A:00E0

Step 3: For the next 16 bits, we put the first 8 bits of the MAC address and the next 8 bits of that 16-bit address:2001:DB8:6783:A:00E0:F9FF

Step 4: For the next 16 bits, place the first 8 bits between the other 16-bit address and the next 8 bits of that MAC address:2001:DB8:6783:A:00E0:F9FF:FE88

Step 5: Add the remaining 16 bits of the MAC address to the address to complete our 128-bit address:2001:DB8:6783:A:00E0:F9FF:FE88:A23B

In the last step: we change the third bit of the second number of the MAC address That is, the number 0 in the MAC address changes to 2 And finally our address is the opposite:2001:DB8:6783:A:02E0:F9FF:FE88:A23B

Well, as I said, it was the number 0, whose language is hexadecimal, and if we convert it to binary, it becomes 0000, which if we change the third bit, it means 1, it becomes 0010, which in the language of hexadecimal means the number 2.

One switch connections
Photo by Samuel Ramos on Unsplash

After you do this for all the clients you want to be on the network and give them version 6 in TCP / IP settings, they will be connected.

Well, we have reached the end of this article. Thank you for being with me until the end of this article, if you find this article please follow our Medium account and share the link of this article with your friends.

WRITER : Alireza Nasri

Contact link : Medium



New Computer Science articles

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store