Here's a simple way to convert from [IP]Decimal Notation to Hexadecimal notation...
IP Address: 10.0.2.254
1) First convert the IP Address, per octet, to Binary...
10 . 0 . 2 . 254
00001010.00000000.00000010.11111110
2) Now divide each octet in half... giving you...
0000 1010 0000 0000 0000 0010 1111 1110
3) On a piece of paper, write the following pattern on the top... 8 4 2 1 8 4 2 1
And remember that 10=A, 11=B, 12=C, 13=D, 14=E, 15=F.
And then place the divided binary digits under the pattern like this... And ADD the #'s above the 1's...
8 4 2 1 8 4 2 1
0 0 0 0 1 0 1 0
HEX --> 0=0 10=A
8 4 2 1 8 4 2 1
0 0 0 0 0 0 0 0
HEX --> 0=0 0=0
8 4 2 1 8 4 2 1
0 0 0 0 0 0 1 0
HEX --> 0=0 2=2
8 4 2 1 8 4 2 1
1 1 1 1 1 1 1 0
HEX --> 15=F 14=E
HEX----------> 0A0002FE
Decimal------> 10.0.2.254
Binary----->00001010.00000000.00000010.11111110
Jay Singh, CCNA