nibbles and bits...
the configuration register of a router is represented by a hex number, or 0x... it is a sixteen
bit number read from left to right starting from 15, and ending with 0, sixteen numbers total...
cisco loves the number sixteen because it is difficult to add sixteens... quick what is 16 plus
forty eight? 128 plus 16? how many 16's in 192? 16 x 4 is 64 which goes into 192 3 times... 3 x
four is 12... what is 12 hex?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256
0x2102 means load start from nvram if found
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
15 to 0 are place positions
each group of 4 bits is a nibble
count the nibbles and bits
don't look at me... i didn't make this shit up
0010 0001 0000 0010 = 0x2102
try to think of all three number systems at once.. here is a great site that groups all three...
http://easycalculation.com/decimal-converter.php
decimal 20
is 14 in hex because 16 goes into 20 once with a remainder of 4
the binary value is 0001 0100 because 16 + 4 is twenty:
128 64 32 16 8 4 2 1
0 0 0 1 0 1 0 0
back to 192, the beginning of the class C range of private adresses
16 goes into 192 12 times
12 = C in hex so 192 = C0 hex
192 = 11000000 because 128 + 64 + 0 + 0 + 0 + 0 + 0 + 0 = one hundred and 92
remember 128 64 32 16 8 4 2 1
8 4 2 1 binary = 15 decimal = F hex
what is decimal 42 in hex? 2A
binary? 00101010
10 = A = 1010
sixteen goes into 42 twice remainder 10
No comments:
Post a Comment