Use a conventional IPv4 subnet 192.168.50.0/26.
Exclude the network and broadcast addresses from the assignable count.
How many host addresses are usable?
A /26 has six host bits and 64 total addresses. A conventional subnet reserves two endpoints, leaving 62 usable addresses.
Detailed explanation
Incorrect. 64 includes the network and broadcast addresses.
Correct. 64 minus the two reserved endpoints is 62.
Incorrect. 32 is the total size of a /27.
Incorrect. 30 is the usual usable count for a /27.
Try it yourself
An example you can run in a temporary verification environment.
python3 -c "import ipaddress; n=ipaddress.ip_network('192.168.50.0/26'); print(n.num_addresses-2)"Expected result
62Key points
- Six host bits
- 64 total addresses
- Subtract network and broadcast
Notes
- Environment: Python 3 ipaddress / ローカル計算のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network prefix
The part of an IP address that identifies the network rather than a host.
Transport protocol
TCP and UDP provide different delivery, reliability, and connection semantics.
Service port
A numbered endpoint used to deliver traffic to a network service.