Identify Address Class and Default Range
Beginner IdentifyQuestion
Given the IP address 150.200.100.50, identify its address class, the default subnet mask for that class, the default prefix length, and the full range of addresses belonging to that class.
Given
{
"ip": "150.200.100.50"
}
Answer
{
"class": "B",
"default_mask": "255.255.0.0",
"default_prefix": 16,
"range": "128.0.0.0 - 191.255.255.255"
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Recall the IPv4 address class ranges
IPv4 addresses were historically divided into classes based on the leading bits of the first octet:
| Class | First octet range | Leading bits | Default mask | Purpose |
|---|---|---|---|---|
| A | 1 − 126 | 0 | /8 (255.0.0.0) | Large networks |
| B | 128 − 191 | 10 | /16 (255.255.0.0) | Medium networks |
| C | 192 − 223 | 110 | /24 (255.255.255.0) | Small networks |
| D | 224 − 239 | 1110 | N/A | Multicast |
| E | 240 − 255 | 1111 | N/A | Experimental |
Note: 127.x.x.x is reserved for loopback and is excluded from Class A.
Step 2: Examine the first octet of 150.200.100.50
The first octet is 150.
In binary: 150 = 10010110
The leading bits are 10 — this is the signature of a Class B address.
Step 3: Apply Class B defaults
- Default mask: 255.255.0.0 (/16)
- Class range: 128.0.0.0 through 191.255.255.255
Why this matters (CIDR era note)
Classful addressing is largely obsolete — modern networks use CIDR (Classless Inter-Domain Routing), where any prefix length can be applied to any address. However, understanding address classes remains important for: - Reading legacy documentation - Understanding default subnet masks - Recognizing private address ranges (10/8, 172.16/12, 192.168/16)
Summary
| Field | Value |
|---|---|
| Class | B |
| Default mask | 255.255.0.0 |
| Default prefix | /16 |
| Class range | 128.0.0.0 − 191.255.255.255 |