IP / CIDR 네트워크 계산기
CIDR 접두사 또는 서브넷 마스크와 함께 IPv4 주소를 입력하여 네트워크 주소, 브로드캐스트, 호스트 범위, 와일드카드 및 이진수 분류를 계산하세요.
이 도구에 대해
IPv4 주소와 CIDR 접두사 길이(예: /24) 또는 점으로 구분된 십진수 서브넷 마스크(예: 255.255.255.0)를 입력하세요. 도구는 네트워크 주소, 브로드캐스트 주소, 첫 번째 및 마지막 사용 가능한 호스트, 총 호스트 수, 사용 가능한 호스트 수, 서브넷 마스크, 와일드카드 마스크 및 IP 클래스(A~E)를 즉시 계산합니다. 이진수 표에 IP, 네트워크 주소, 서브넷 마스크 및 브로드캐스트 주소의 네 개 옥텟이 8비트 그룹으로 정렬되어 표시되어 네트워크와 호스트 부분을 정의하는 비트를 정확히 확인할 수 있습니다.
사용 방법
- 1 첫 번째 필드에 IPv4 주소를 입력하세요(예: 192.168.1.0).
- 2 CIDR 접두사 길이(예: 24) 또는 점으로 구분된 십진수 서브넷 마스크(예: 255.255.255.0)를 입력하세요.
- 3 계산을 클릭하거나 Enter 키를 눌러 전체 네트워크 분류를 확인하세요.
- 4 하단의 이진수 표를 검토하여 네트워크와 호스트 비트 경계를 시각화하세요.
What a subnet calculation answers
An IPv4 address like 192.168.1.0 is only half the picture. The other half is the prefix (written as /24) or its equivalent subnet mask (255.255.255.0), which decides how many of the 32 bits identify the network and how many identify individual hosts on it. From those two inputs this tool derives everything you need to plan or troubleshoot a network: the network address, the broadcast address, the usable host range, the total and usable host counts, the wildcard mask, the address class, and a binary breakdown.
The bit math behind every result
An IPv4 address is really a single 32-bit number; 192.168.1.0 is just a readable way to write four 8-bit octets. The prefix /24 means the first 24 bits are the network portion. Internally the tool:
- Builds the subnet mask by setting the top 24 bits to 1 and the rest to 0, giving
255.255.255.0. - Computes the network address with a bitwise AND of the IP and the mask — this zeroes out the host bits.
- Computes the broadcast address by setting all host bits to 1 (an OR with the inverted mask, called the wildcard mask).
- Derives the host range as everything between network + 1 and broadcast − 1.
A worked example: 192.168.1.0/24
| Property | Value |
|---|---|
| Network address | 192.168.1.0 |
| Broadcast address | 192.168.1.255 |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| First usable host | 192.168.1.1 |
| Last usable host | 192.168.1.254 |
| Total addresses | 256 |
| Usable hosts | 254 |
The host count comes from the formula 2^(32 − prefix). For a /24 that is 2^8 = 256 total addresses. Two are reserved — the network address itself and the broadcast address — leaving 254 usable for actual devices. That "minus two" rule is the single most important thing to remember when sizing a subnet.
The /31 and /32 edge cases
The minus-two rule breaks down at the extremes, and the tool handles this correctly. A /31 has only two addresses; reserving both would leave zero usable hosts, so by convention (RFC 3021) both are usable for point-to-point links between two routers. A /32 is a single address — one exact host, used for loopbacks and routing entries — so the tool reports no usable range rather than a negative number.
Why the binary view matters
The binary table colors the network bits one way and the host bits another, lined up across all four octets. This makes the boundary between network and host visible, which is the concept people most often get wrong with non-byte-aligned prefixes like /26. A /26 mask is 255.255.255.192 — the boundary falls inside the last octet, splitting it into a 2-bit network part and a 6-bit host part, yielding four subnets of 64 addresses (62 usable) each. Seeing the bits makes that far clearer than the dotted-decimal mask alone.
Use cases
- Planning a network. Decide how to carve a block into subnets that each hold enough hosts, without wasting addresses.
- Writing firewall and ACL rules. Many systems express ranges in CIDR (
10.0.0.0/8) or wildcard form (Cisco ACLs); the tool gives you both. - Troubleshooting connectivity. If two devices can't talk, confirming they share the same network and broadcast address often reveals a mismatched mask.
- Studying for certifications. CCNA and similar exams lean heavily on fast subnetting; the step-by-step values and binary view reinforce the method.
Tips and common mistakes
- The mask must be contiguous. Valid masks are an unbroken run of 1s followed by 0s. Something like
255.255.0.255is invalid, and the tool rejects it rather than producing a nonsense result. - Enter the network address, or any host in it. You can type any address in the range — the tool ANDs it with the mask to find the true network address, so
192.168.1.37/24still resolves to the192.168.1.0network. - Class is informational only. The old A/B/C classes were replaced by CIDR decades ago; the tool reports the class for reference, but the prefix you supply, not the class, governs the actual subnet.
- Don't forget the reserved addresses when counting capacity. A /24 holds 254 devices, not 256 — plan for the two-address overhead on every standard subnet.
Privacy
Every calculation is plain integer bit-math done in your browser. The addresses you enter are never transmitted or logged, and the tool runs entirely offline once the page has loaded.