ccie blog

IPv6 – Convert Hex to Binary

In binary, there is 8 bits in an octet. We are now going to half the octet and turn it into 4 bits (also known as a nibble). So our total maximum value is 1111, which in decimal equates to 15 (8+4+2+1). Another example is 1110 in binary, converted to decimal equates to 14 (8+4+2+0 = 14).


Hex value FE80 converted to Binary = 1111111010000000. How did I convert that without a calculator?

Each value in hex is worth 4 bits (1 nibble). What we do is convert it to decimal, then convert them to binary, as shown in the table below:


Put all the binary numbers together in the order of FE80, and you get 1111111010000000.

1 Comment

[…] change that to a 0, then convert it back to hex, we get A8 (Hex to binary conversion is explained here). So the actual 128 bit address is fe80::a8aa:aaff:feaa:aaaa. November 10th, 2012 in IPv6 | tags: […]

Leave a comment

Your comment