What decides which class an IP Address belongs to...the IP Address number or the subnet mask?
-
What decides IP Address Class???
-
The subnet mask is what decides this and the classful addresses set forth by the IEEE.
The standard gave a range of IPs:
1.0.0.1 - 127.255.255.255 would have a default subnet mask of 255.0.0.0. Both would be converted to binary. This address class in binary would all begin with01
.128.0.0.1-191.255.255.255 would have a default subnet mask of 255.255.0.0. Both would be converted to binary. This address class in binary would all begin with
10
.192.0.0.1-223.255.255.255 would have a default subnet mask of 255.255.255.0. Both would be converted to binary. This address class in binary would all begin with
110
.So try it.
- Convert 126.0.0.1 to binary and note the first 2 binary digits.
- Convert 180.0.0.1 to binary and note the first 2 binary digits.
- Convert 222.0.0.1 to binary and note the first 3 binary digits.
Note how each conversion matched what I told you that the binary digits would be. This is how it worked for assigning classes. Then they applied the subnet masks to those division lines.
-
Thank you.