Home          Subnetting Info  --TLong Division       Wildcard Masks

 

Hex and Binary

Binary (Power of 2)

2 to the 0 = 1             2 to the 12th = 4096
2 to the 1st = 2           2 to the 13th = 8192
2 to the 2nd = 4          2 to the 14th = 16384
2 to the 3rd = 8           2 to the 15th = 32768
2 to the 4th = 16         2 to the 16th = 65536
2 to the 5th = 32         2 to the 17th = 131072
2 to the 6th = 64         2 to the 18th = 262144
2 to the 7th = 128        2 to the 19th = 524288
2 to the 8th = 256        2 to the 20th = 1048576
2 to the 9th = 512        2 to the 21st = 2097152
2 to the 10th = 1024     2 to the 22nd = 4194304
2 to the 11th = 2048

I only go up to 2 to the 22nd because that is the maximum number of bits that can be borrowed when subnetting. (Borrowing 22 bits from a Class A address will give us 4,194,302 networks. 4194304 -2)

HEX (Power of 16)

0 1 2 3 4 5 6 7 8 9 A(10) B(11) C(12) D(13) E(14) F(15)

Convert 17 DEC to HEX

convert to binary first
00010001 = 17

break down in groups of 4
0001 | 0001

convert each group of 4 to HEX
0001 = 1 | 0001 = 1

combine the results left to right (DO NOT add)
17 DEC = 11 HEX

Convert 58 DEC to HEX

00111010 = 58
0011 | 1010

0011 =3
1010 = A

58 DEC = 3A HEX

Convert 765 DEC to HEX

1011111101 = 765
To make even groups of 4, you must add leading zeros

001011111101 then break down into groups of 4

0010 | 1111 | 1101

0010 = 2
1111 = F
1101 = D
765 Dec = 2FD Hex

Convert HEX to DEC
3A to DEC

First convert to binary
3 = 00000011
A(10) = 00001010

starting with the first number (3), take only the significant digits - 11
then the significant digits from the second number - 1010
then combine them (from left to right) 111010 then convert to DEC 32+16+8+2 = 58

Convert BAD to Dec.

B = 11 = 00001011
A = 10 = 00001010
D = 13 = 00001101
101110101101 = 2989 Dec