📝 Classful addressing classes A B C D E (16 MCQs)
Historical IPv4 Network Classes
Classful addressing was an early IPv4 allocation method that divided unicast addresses into Classes A, B, and C according to leading bit patterns. Class D was reserved for multicast, while Class E was reserved for experimental use. The class determined a default network boundary before modern classless prefix allocation became standard. Such services allow hosts on different physical links to communicate through intermediate network devices.
Default Masks and Address Boundaries
Class A used a default /8 mask, Class B used /16, and Class C used /24. Their first-octet ranges were traditionally 1–126, 128–191, and 192–223 respectively, with special ranges excluded. Class D occupies 224–239 for multicast, and Class E occupies 240–255 for reserved or experimental purposes.
Recognizing a Class from the First Octet
In the historical scheme, the first octet indicates the class for ordinary classful addresses. A first octet of 10 indicates Class A, 150 indicates Class B, and 200 indicates Class C. A first octet of 230 indicates Class D multicast, not an ordinary host address assignment. The process continues until the packet reaches a directly connected destination network or final host.
Example of a Class B Default Network
The address 172.20.5.10 falls within the historical Class B range. Its default classful mask is 255.255.0.0, or /16, giving network 172.20.0.0. This interpretation applies to classful exercises; modern networks use an explicitly configured prefix that may differ from the old default. The values show the practical outcome of the rule and the role of the network device.
Why CIDR Replaced Classful Allocation
Classful addressing allocated large fixed-size blocks and often wasted addresses when an organization needed a smaller network. Classless Inter-Domain Routing introduced variable-length prefixes, allowing allocations to better match demand and enabling route aggregation. Modern routing and subnetting questions should therefore use the stated prefix rather than infer a class boundary.
Misconceptions About IPv4 Classes
'Class D is a normal host class' is incorrect because it is used for multicast. 'Class E is ordinary public unicast space' is incorrect because it is reserved. 'Classful defaults determine every modern subnet' is incorrect because CIDR prefixes explicitly define current network boundaries. Accurate interpretation depends on identifying both the protocol layer and the device performing the operation.
Class Range and Default-Mask Questions
Memorize the historical first-octet ranges and default masks, but recognize their legacy status. Classify addresses using their leading bits, distinguish multicast from unicast, and calculate a classful network only when the question requests it. For modern CIDR problems, follow the supplied prefix instead. Use the given prefix, protocol fields, and units consistently when working through a scenario.
Classful IPv4 Addressing Terms
- Class A - historical eight-bit network prefix
- Class B - historical sixteen-bit network prefix
- Class C - historical twenty-four-bit network prefix
- Class D - IPv4 multicast address range
- Class E - reserved experimental address range
- Classful - uses fixed network classes
📝 All Classful addressing classes A B C D E MCQs
Q1. What is the default subnet mask for a Class B network?
📖 Explanation: In classful networking, a Class B address reserves the first two octets for the network identifier. Therefore the default mask is , which sets the first 16 bits to 1 and the remaining 16 bits to 0, allowing the host portion to span the last two octets.
Q2. How many host addresses are available in a single Class C network?
📖 Explanation: A Class C default mask is , leaving 8 bits for hosts. The total number of host addresses equals , but two addresses are reserved (network and broadcast), leaving usable host addresses.
Q3. If a network uses a Class A address with the default mask, which statement must be true about the first octet?
📖 Explanation: Class A addresses are defined by a leading binary pattern of 0, which corresponds to decimal values from 0 to 127 for the first octet. Consequently any address with the default Class A mask must have its first octet within that range.
Q4. A VLAN is configured to include all devices whose IP addresses fall within 181.34.23.64/26. Which of the following IP addresses would be excluded?
📖 Explanation: A /26 prefix provides 64 addresses ranging from .64 to .127 inclusive. The address .128 lies outside this range, so it would not be part of the VLAN, whereas the other listed addresses fall within the specified subnet.
Q5. A router receives a packet destined for 172.20.5.10 and its routing table contains a Class B entry 172.16.0.0/16 and a Class C entry 172.20.5.0/24. Which entry will be selected and why?
📖 Explanation: Routing follows the longest‑prefix rule: the /24 entry matches more bits (24) than the /16 entry (16). Therefore the Class C route is chosen, directing the packet to the more specific subnet that contains the destination address.
Q6. Compare the maximum number of networks possible in Class A versus Class B addressing. Which statement is correct?
📖 Explanation: Class A uses 7 bits for the network portion, yielding possible networks. Class B uses 14 bits, giving networks. Hence far more networks are available in Class B than in Class A.
Q7. Evaluate the impact on host count when moving from a Class B default mask to a /20 subnet mask within the same network. Which outcome is accurate?
📖 Explanation: A default Class B mask (/16) provides 16 host bits ( hosts). A /20 mask leaves only 12 host bits ( hosts). Reducing the number of host bits therefore decreases the total usable host addresses.
Q8. Given two VLANs: VLAN X uses MAC addresses starting with E2:13:42, VLAN Y uses IP range 181.34.23.0/28. A device has MAC E2:13:42:A1:23:34 and IP 181.34.23.10. Which VLAN(s) can it belong to based on combined criteria?
📖 Explanation: The device matches the MAC prefix required by VLAN X and also falls within the IP subnet defined for VLAN Y. Since the vendor software can combine characteristics, the device satisfies both criteria and can be placed in both VLANs simultaneously.
Q9. Contrast the address space waste between using Classful addressing versus CIDR for a network requiring 500 hosts. Which scheme uses fewer wasted addresses?
📖 Explanation: A /23 CIDR block provides addresses, wasting only 12 addresses after reserving network and broadcast IDs. A Class C block offers 254 addresses—insufficient—while a Class B block supplies 65,534 addresses, resulting in massive waste. Hence CIDR /23 is optimal.
Q10. If a VLAN administrator wants to ensure that only devices with IP addresses ending in an even number are allowed, which classful principle could be leveraged to simplify this rule?
📖 Explanation: A mask of 255.255.255.254 corresponds to a /31 subnet, which isolates the least‑significant bit of the address. This bit determines even or odd parity, allowing the VLAN to permit only even‑ending addresses directly through the mask.
Q11. Synthesize a strategy using classful addressing to segment a corporate network into three departments, each requiring at most 2000 hosts, while minimizing wasted networks. Which class and subnet mask combination best meets this requirement?
📖 Explanation: A /21 mask yields addresses per subnet, slightly exceeding the 2000‑host requirement. Using Class B provides ample network numbers without consuming the vast address space of Class A, making the Class B /21 combination the most efficient choice.
Q12. Explain how combining MAC address and IP address characteristics in VLAN membership can affect broadcast domain size. Which of the following best describes the effect?
📖 Explanation: When both MAC and IP criteria are applied, the set of eligible devices may shrink (reducing the broadcast domain) or expand if the criteria overlap broadly. Thus the impact varies with the specific address patterns and cannot be assumed to be uniformly reductive or neutral.
Q13. Apply the principle of classful default masks to determine whether the address 191.0.0.5 belongs to a Class B network. Which reasoning is correct?
📖 Explanation: In classful notation, Class B addresses range from 128 to 191 inclusive for the first octet. Since 191 falls within this range, the address is classified as Class B, and its default mask would be 255.255.0.0.
Q14. Given a network using classful addressing, a router needs to forward traffic to a destination 10.5.6.7 but only has a summary route for 10.0.0.0/8. Explain why the router can still correctly forward the packet without a more specific entry.
📖 Explanation: The /8 prefix encompasses the entire Class A address space, which includes 10.5.6.7. Consequently, the summary route is sufficient to reach the destination, even though a more specific route is absent, as the packet falls within the broader advertised network.
Q15. Analyze the effect of using a Class C default mask (255.255.255.0) on a network that actually requires 300 hosts. Which statement reflects the consequence?
📖 Explanation: A Class C mask provides only 8 host bits, yielding usable addresses. Since the network needs 300 hosts, the default mask cannot accommodate all devices, leading to a shortage of host addresses.
Q16. If a VLAN is configured to include devices whose MAC addresses have the third octet equal to 0x42, which of the following MAC addresses would be excluded?
📖 Explanation: The third octet of the MAC address 12:34:56:78:9A:BC is 0x56, not 0x42, so it does not satisfy the VLAN’s inclusion rule and would be excluded, whereas the other listed addresses contain 0x42 in the third octet and would be permitted.