Binary Numbers and Their Hex Equivalents
|
Four-Digit Binary
Number |
Hex
Number |
|
0000 |
0 |
|
0001 |
1 |
|
0010 |
2 |
|
0011 |
3 |
|
0100 |
4 |
|
0101 |
5 |
|
0110 |
6 |
|
0111 |
7 |
|
1000 |
8 |
|
1001 |
9 |
|
1010 |
A |
|
1011 |
B |
|
1100 |
C |
|
1101 |
D |
|
1110 |
E |
|
1111 |
F |
Although there's a lot more to hex, you don't really have to
understand how hex numbering works to appreciate why it is used for Ethernet
addresses. Instead of writing down Ethernet addresses as 48-digit binary
numbers, you can write them as 12-digit hex numbers because each hex digit
represents 4 binary digits. For instance, if the first 4 binary digits of an
Ethernet address were 0010, then the first hex digit would be a 2. If the next 4
binary digits were 1010, the next hex digit would be A, and so on.
When you see a hex number, just know that each hex digit
represents four binary digits. For example, when you're using gear from Cisco
Systems, the device will list Ethernet addresses in the following format:
15CD.3412.5BDA
0200.2222.2222
Note that the numbers have 12 hex digits, so they each
represent a 48-bit binary number.