In Classful addressing for class A, how many valid maximum possible of network ids can exist?
In Classful addressing for class A, how many valid maximum possible of network ids can exist? Correct Answer 126
The correct answer is option 3.
Concept:
IP addresses can be grouped into one of five different classes:
- Class A
- Class B
- Class C
- Class D
- Class E
Each of the four octets of an IP address represents either the network portion of the host portion of the address, depending on the address class. Only the first three classes A, B, and C are used to address actual hosts on IP networks.
Class A addressing:
Class A Addresses If the first bit of the first octet of an IP address is a binary 0, the address is a Class A address.
With that first bit being a 0,
the lowest number that can be represented is 0 0000000, decimal 0.
The highest number that can be represented is 0 1111111, decimal 127.
Any address that starts with a value between 0 and 127 in the first octet is a Class A address.
Total network id = 128
These two numbers, 0 and 127, are reserved and cannot be used as a network address.
Total valid maximum possible of network ids = 128-2 = 126 network id.
Hence the correct answer is 126.
Additional Information
| Classes | Class A | Class B | Class C | Class D | Class E |
| Prefix | 0 | 10 | 110 | 1110 | 1111 |
| First Octet Range | 0 to 126 | 128 to 191 | 192 to 223 | 224 to 239 | 240 to 255 |
| Network id | 8 | 16 | 24 |
Class D addresses are used for multicasting. |
Class E addresses are reserved for experimentation. |
| Host Id | 24 | 16 | 8 | ||
| Number of networks | 27-2 | 214 | 221 | ||
| Hosts per networks | 224-2 | 216-2 | 28-2 |