![]() ![]() That’s the shortest way to write down the prefix. This string of zeros can be removed and replace by a single :: To write down the prefix correctly we need to add zeros at the end of this prefix so that it is a 128 bit address again and add the prefix length:Ģ001:1234:5678:1234:0000:0000:0000:0000/64 is a valid prefix but we can shorten it. So we figured out that “2001:1234:5678:1234” is the prefix part but writing it down like this is not correct. The rest of the IPv6 address identifies the host: Each hexadecimal character represents 4 binary bits so that means that this part is the prefix: Since we use a /64 it means that the first 64 bits are the prefix. What part from this IPv6 address is the prefix and what part identifies the host? ![]() Let me show you what I’m talking about, here’s an IPv6 address that could be assigned to a host:Ģ001:1234:5678:1234:5678:ABCD:EF12:1234/64 For any given IPv6 address we can calculate what the prefix is but it works a bit different. When calculating subnets for IPv4 we can use the subnet mask to determine the network address and for IPv6 we can do something alike. In the example above it means that 2001:1111:2222:3333 is the prefix (64 bits) and everything behind it can be used for hosts. The number behind the / are the number of bits that we use for the prefix. This is pretty much the same as using 192.168.1.1 /24. IPv4 addresses have a subnet mask but instead of typing something like 255.255.255.0 we use a prefix length for IPv6. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |