انتقل إلى المحتوى الرئيسي
Calculator Tools
أدوات يوميةمجانيبدون تسجيل

IP Subnet Calculator - حاسبة مجانية على الإنترنت

IPv4 subnet calculator. Enter an IP and CIDR (or netmask) to get the network address, broadcast address, usable host range, total/usable hosts and IP class. Used by network admins, students and CCNA/RHCE candidates.

  • الصيغة معروضة في الصفحة
  • تعمل في متصفحك
  • مدخلاتك تبقى خاصة

e.g. 192.168.1.10

0-32; e.g. /24 = 255.255.255.0

Network - 192.168.1.0/24

255.255.255.0

Class C, 254 usable hosts

Network

192.168.1.0

Broadcast

192.168.1.255

First usable

192.168.1.1

Last usable

192.168.1.254

Wildcard mask

0.0.0.255

Total hosts

256

Binary mask: 11111111.11111111.11111111.00000000

لا يزال بعض المحتوى معروضًا بالإنجليزية.

نبذة

فهم IP Subnet Calculator

IPv4 subnet calculations are foundational for anyone managing networks - system administrators, network engineers, DevOps engineers, security analysts, and students preparing for certifications like Cisco CCNA, CCNP, Red Hat RHCE, AWS networking specialty, or CompTIA Network+. Given an IP and a CIDR prefix, this calculator instantly returns the network address, broadcast, valid host range, host count, classful designation, and binary representations - saving hours of error-prone manual binary arithmetic.

Subnetting is the practice of dividing a larger IP block into smaller blocks (subnets), typically to organise traffic, improve security through segmentation, or efficiently allocate addresses. Understanding CIDR notation (Classless Inter-Domain Routing) is essential - it replaced the older class-A/B/C system in the 1990s because it allowed flexible-size networks. A /24 has 254 usable hosts; /23 has 510; /22 has 1,022; each prefix bit you 'borrow' from the host portion doubles the network size. This calculator handles all CIDR values from /0 (entire IPv4 space) to /32 (single host), including the special /31 and /32 cases used for point-to-point links.

طريقة الاستخدام

استخدام IP Subnet Calculator في 3 خطوات

  1. Enter an IPv4 address (e.g. 192.168.1.10).

  2. Enter the CIDR prefix (e.g. 24 for /24).

  3. Read network, broadcast, first/last usable, hosts, class and binary mask.

الصيغة

كيف تعمل IP Subnet Calculator

Bitwise AND of IP with mask gives the network address. OR with the wildcard gives the broadcast. Total hosts = 2^(32-prefix). Usable = total − 2 (subtract network + broadcast). /31 and /32 are special-cased.

Formula

Network = IP & Mask Broadcast = Network | (~Mask) Usable hosts = 2^(32 − prefix) − 2

  • &, |, ~Bitwise AND, OR, NOT
  • MaskPrefix bits set to 1
الرياضيات

كيف تصل IP Subnet Calculator إلى النتيجة

An IPv4 address is 32 bits, typically written as four dotted decimals (e.g. 192.168.1.10 = 11000000.10101000.00000001.00001010 in binary). The CIDR prefix indicates how many high-order bits are the network identifier. /24 means the first 24 bits are network, last 8 are host. The subnet mask in dotted decimal for /24 is 255.255.255.0 - the 1 bits indicate network, 0 bits indicate host.

Network address: bitwise AND of the IP and the mask, which zeros out the host bits. For 192.168.1.10/24, the network is 192.168.1.0. Broadcast address: bitwise OR of the network and the inverted (wildcard) mask, which sets all host bits to 1. For /24, broadcast is 192.168.1.255. Usable host range: network + 1 to broadcast - 1. Total usable = 2^(32-prefix) - 2. Two addresses are reserved per subnet (network and broadcast) except in special cases.

Special cases: /31 (RFC 3021) is a point-to-point link with 2 addresses, both usable (no network or broadcast reserved). /32 is a single host route, no host range. /0 represents the entire IPv4 space. Classful designation (deprecated but still referenced): Class A is 0.0.0.0-127.255.255.255 with default /8, Class B is 128-191 with default /16, Class C is 192-223 with default /24. Private RFC 1918 ranges: 10.0.0.0/8 (Class A private), 172.16.0.0/12 (Class B private), 192.168.0.0/16 (Class C private).

أمثلة

أمثلة محلولة

Home Wi-Fi: 192.168.1.0/24

Network: 192.168.1.0. Broadcast: 192.168.1.255. Usable hosts: 192.168.1.1 to 192.168.1.254 (254 total). Mask: 255.255.255.0. Most home routers in India use exactly this subnet (or 192.168.0.0/24).

Small office subnet: 10.0.10.32/27

Network: 10.0.10.32. Broadcast: 10.0.10.63. Usable: 10.0.10.33 to 10.0.10.62 (30 hosts). Mask: 255.255.255.224. Good size for a small department of 20-30 employees.

Point-to-point WAN link: 203.0.113.0/30

Network: 203.0.113.0. Broadcast: 203.0.113.3. Usable: 203.0.113.1 and 203.0.113.2 (2 hosts). Mask: 255.255.255.252. Classic /30 layout for router-to-router connections.

حالات الاستخدام

متى تستخدم IP Subnet Calculator

  • Network planning - determining how many subnets and hosts you can fit in a given allocation.
  • Studying for CCNA, CCNP, RHCE, CompTIA Network+, AWS Advanced Networking certifications.
  • Troubleshooting connectivity issues - verifying a host is in the correct subnet.
  • Designing office and data center networks - VLAN and IP allocation.
  • Cloud networking on AWS, Azure, GCP - VPC subnet sizing.
  • Security analysis - determining which IPs are within an allowed subnet.
  • Firewall and ACL configuration - defining source/destination ranges.
  • Educational exercises in networking and operating systems courses.
انتبه

أخطاء ومزالق شائعة

  • Forgetting that /24 has 254 usable hosts, not 256. Subtract 2 (network + broadcast).
  • Mixing up CIDR and netmask notation. /24 = 255.255.255.0, /16 = 255.255.0.0, /8 = 255.0.0.0.
  • Confusing public vs private IP ranges. Private ranges (10.x, 172.16-31.x, 192.168.x) aren't routable on the internet.
  • Treating /31 like /30. /31 (RFC 3021) has both addresses usable for point-to-point links.
  • Sub-netting beyond /30 for general LANs. Two usable hosts isn't enough for most networks.
نصائح احترافية

استفد أكثر من هذه الأداة

  • Memorise the powers of 2 up to 2^16 - it makes CIDR mental arithmetic faster.
  • /24 = 254 hosts, /23 = 510, /22 = 1022 (each prefix bit fewer doubles the host count).
  • Use VLSM (Variable Length Subnet Masking) to size each subnet to its actual host count - avoids wasting IPs.
  • Document your network with CIDR notation, not netmasks. CIDR is shorter and more modern.
  • Pair with the bandwidth, IP geo, and DNS tools for complete network analysis.
أسئلة شائعة

أسئلة حول IP Subnet Calculator

What's CIDR notation?

Classless Inter-Domain Routing - '/24' means 24 high bits are network, 8 low bits are host. /24 = 254 usable hosts; /16 = 65,534; /8 = 16,777,214.

Why subtract 2 for usable hosts?

The first address (all-zero host bits) is the network. The last (all-one host bits) is broadcast. Both are reserved.

What are private IP ranges?

10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. Used for LAN; not routable on the public internet.

Difference between /30 and /31?

/30: 4 addresses (2 usable) - typical point-to-point links. /31: 2 addresses (both usable per RFC 3021) - also used for P2P links.

Small tools that save real time

Date math, password generation, QR codes, IP subnets, base64 encoding, dew point, dice rolls, age calculations - none of these are 'big' problems individually, but they are the small frictions that interrupt your day. This tool runs entirely in your browser, has no popup, no chat widget and no tracking inside the calculation, so you can finish the task and move on.

Many tools in the Daily Utilities category complement each other - date difference + day counter + day-of-the-week, or password generator + QR code + base64 encoder. The related-tool grid links them together so you can move between adjacent problems in a click.

The IP Subnet Calculator is part of the Daily Utilities suite on Online Calculator Tools, alongside 6 related calculators. All tools share the same UI patterns, the same privacy-first rendering (nothing is sent to a server), and the same commitment to showing the formula and assumptions behind every result.