Allocate /30 Subnets for 15 Router Links
Intermediate DesignQuestion
You need to allocate point-to-point subnets for 15 router-to-router links in your network. Each link requires exactly 2 host addresses (one per router interface). Use the block 10.0.0.0/24 and allocate a /30 subnet for each link. List all 15 link subnets and confirm that the block is sufficient.
Given
{
"network": "10.0.0.0/24",
"links": 15
}
Answer
{
"prefix_per_link": 30,
"addresses_per_link": 4,
"usable_per_link": 2,
"total_addresses_used": 60,
"total_available": 256,
"sufficient": true,
"links": [
{
"link": 1,
"subnet": "10.0.0.0/30",
"router_a": "10.0.0.1",
"router_b": "10.0.0.2",
"broadcast": "10.0.0.3"
},
{
"link": 2,
"subnet": "10.0.0.4/30",
"router_a": "10.0.0.5",
"router_b": "10.0.0.6",
"broadcast": "10.0.0.7"
},
{
"link": 3,
"subnet": "10.0.0.8/30",
"router_a": "10.0.0.9",
"router_b": "10.0.0.10",
"broadcast": "10.0.0.11"
},
{
"link": 4,
"subnet": "10.0.0.12/30",
"router_a": "10.0.0.13",
"router_b": "10.0.0.14",
"broadcast": "10.0.0.15"
},
{
"link": 5,
"subnet": "10.0.0.16/30",
"router_a": "10.0.0.17",
"router_b": "10.0.0.18",
"broadcast": "10.0.0.19"
},
{
"link": 6,
"subnet": "10.0.0.20/30",
"router_a": "10.0.0.21",
"router_b": "10.0.0.22",
"broadcast": "10.0.0.23"
},
{
"link": 7,
"subnet": "10.0.0.24/30",
"router_a": "10.0.0.25",
"router_b": "10.0.0.26",
"broadcast": "10.0.0.27"
},
{
"link": 8,
"subnet": "10.0.0.28/30",
"router_a": "10.0.0.29",
"router_b": "10.0.0.30",
"broadcast": "10.0.0.31"
},
{
"link": 9,
"subnet": "10.0.0.32/30",
"router_a": "10.0.0.33",
"router_b": "10.0.0.34",
"broadcast": "10.0.0.35"
},
{
"link": 10,
"subnet": "10.0.0.36/30",
"router_a": "10.0.0.37",
"router_b": "10.0.0.38",
"broadcast": "10.0.0.39"
},
{
"link": 11,
"subnet": "10.0.0.40/30",
"router_a": "10.0.0.41",
"router_b": "10.0.0.42",
"broadcast": "10.0.0.43"
},
{
"link": 12,
"subnet": "10.0.0.44/30",
"router_a": "10.0.0.45",
"router_b": "10.0.0.46",
"broadcast": "10.0.0.47"
},
{
"link": 13,
"subnet": "10.0.0.48/30",
"router_a": "10.0.0.49",
"router_b": "10.0.0.50",
"broadcast": "10.0.0.51"
},
{
"link": 14,
"subnet": "10.0.0.52/30",
"router_a": "10.0.0.53",
"router_b": "10.0.0.54",
"broadcast": "10.0.0.55"
},
{
"link": 15,
"subnet": "10.0.0.56/30",
"router_a": "10.0.0.57",
"router_b": "10.0.0.58",
"broadcast": "10.0.0.59"
}
],
"remaining_start": "10.0.0.60",
"remaining_addresses": 196
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Determine the correct prefix for point-to-point links
A point-to-point link needs exactly 2 host addresses. Calculate:
- /30 = 4 total addresses (2^2) → 2 usable (subtract network + broadcast) ✓
- /31 = 2 total addresses → also valid per RFC 3021, but /30 is more universal
We use /30 here as it is the traditional choice.
Step 2: Calculate if 10.0.0.0/24 is sufficient
- /24 = 256 addresses total
- Each /30 uses 4 addresses
- Required: 15 links × 4 = 60 addresses
- Available: 256 addresses
- Sufficient: 256 > 60 ✓ (196 addresses remain)
Step 3: List all 15 link subnets
/30 subnets start at multiples of 4:
| Link | Network | Router A | Router B | Broadcast |
|---|---|---|---|---|
| 1 | 10.0.0.0/30 | 10.0.0.1 | 10.0.0.2 | 10.0.0.3 |
| 2 | 10.0.0.4/30 | 10.0.0.5 | 10.0.0.6 | 10.0.0.7 |
| 3 | 10.0.0.8/30 | 10.0.0.9 | 10.0.0.10 | 10.0.0.11 |
| 4 | 10.0.0.12/30 | 10.0.0.13 | 10.0.0.14 | 10.0.0.15 |
| 5 | 10.0.0.16/30 | 10.0.0.17 | 10.0.0.18 | 10.0.0.19 |
| 6 | 10.0.0.20/30 | 10.0.0.21 | 10.0.0.22 | 10.0.0.23 |
| 7 | 10.0.0.24/30 | 10.0.0.25 | 10.0.0.26 | 10.0.0.27 |
| 8 | 10.0.0.28/30 | 10.0.0.29 | 10.0.0.30 | 10.0.0.31 |
| 9 | 10.0.0.32/30 | 10.0.0.33 | 10.0.0.34 | 10.0.0.35 |
| 10 | 10.0.0.36/30 | 10.0.0.37 | 10.0.0.38 | 10.0.0.39 |
| 11 | 10.0.0.40/30 | 10.0.0.41 | 10.0.0.42 | 10.0.0.43 |
| 12 | 10.0.0.44/30 | 10.0.0.45 | 10.0.0.46 | 10.0.0.47 |
| 13 | 10.0.0.48/30 | 10.0.0.49 | 10.0.0.50 | 10.0.0.51 |
| 14 | 10.0.0.52/30 | 10.0.0.53 | 10.0.0.54 | 10.0.0.55 |
| 15 | 10.0.0.56/30 | 10.0.0.57 | 10.0.0.58 | 10.0.0.59 |
Step 4: What remains
After link 15, the next free address is 10.0.0.60. Remaining block: 10.0.0.60 – 10.0.0.255 = 196 addresses. This could accommodate 49 more /30 links, or be used for loopback addresses (typically assigned /32).
Design Tip: /31 Subnets (RFC 3021)
Modern routers support /31 for point-to-point links, halving the address waste:
- /31 = 2 addresses, both usable (no network or broadcast)
- Cisco IOS: ip address 10.0.0.0 255.255.255.254
- 15 links × 2 addresses = 30 addresses (vs 60 for /30)