IP Subnet Calculator
Calculate IPv4 subnet details from CIDR notation.
Enter IP and prefix length, e.g. 10.0.0.1/16
| Network Address | 192.168.1.0 |
| Broadcast Address | 192.168.1.255 |
| First Usable Host | 192.168.1.1 |
| Last Usable Host | 192.168.1.254 |
| Subnet Mask | 255.255.255.0 |
| Wildcard Mask | 0.0.0.255 |
| Binary Mask | 11111111.11111111.11111111.00000000 |
| Total Hosts | 256 |
| Usable Hosts | 254 |
| IP Class | C |
| Scope | Private (RFC 1918) |
| CIDR | Subnet Mask | Usable Hosts | Use case |
|---|---|---|---|
| /24 | 255.255.255.0 | 254 | Small LAN (254 hosts) |
| /23 | 255.255.254.0 | 510 | Medium LAN (510 hosts) |
| /22 | 255.255.252.0 | 1,022 | Office network (1022 hosts) |
| /16 | 255.255.0.0 | 65,534 | Large network (65534 hosts) |
| /28 | 255.255.255.240 | 14 | Small segment (14 hosts) |
| /30 | 255.255.255.252 | 2 | Point-to-point link (2 hosts) |
Click a row to load that prefix into the calculator.
เครื่องคำนวณ IP Subnet — คำนวณ Network Address, Host Range และรายละเอียด Subnet ทันที
การทำ subnetting เป็นหนึ่งในทักษะพื้นฐานในวิศวกรรมเครือข่ายและงาน cloud infrastructure ไม่ว่าจะออกแบบ VPC ใน AWS, กำหนดค่า OSPF areas บนเครือข่ายองค์กร, เขียน ACL rules หรือตั้งค่า home lab คุณต้องคำนวณ network address, broadcast address, usable host range, subnet mask และ wildcard mask สำหรับบล็อก CIDR ที่กำหนด เครื่องคำนวณนี้ทำทั้งหมดทันทีจาก IPv4 address ใดๆ ใน CIDR notation
ใส่ IPv4 address ใดๆ ใน CIDR notation เช่น 192.168.1.0/24 หรือ 10.0.0.0/16 เครื่องคำนวณจะแสดงทันที: network address, broadcast address, usable host range, subnet mask ในรูป dotted-decimal, wildcard mask, จำนวนที่อยู่ทั้งหมด, จำนวน host ที่ใช้งานได้, คลาส IP address และว่าที่อยู่อยู่ใน private range (RFC 1918) หรือเป็น public
CIDR notation แสดง IP address และความยาว prefix ร่วมกัน /24 ใน 192.168.1.0/24 หมายความว่า 24 บิตแรกเป็น network prefix เหลือ 8 บิตสำหรับที่อยู่ host ด้วย 8 host bits มี 2^8 = 256 ที่อยู่ทั้งหมด ลบ 2 ให้ 254 host ที่ใช้งานได้ /30 ให้ 4 ที่อยู่ (2 ที่ใช้งานได้) — ขั้นต่ำสำหรับ point-to-point link
วิศวกรเครือข่ายใช้เมื่อออกแบบโครงสร้าง IP addressing สำหรับเครือข่ายองค์กรหรือวาง VPC CIDR ranges ใน cloud system administrator ใช้เมื่อกำหนดค่า network interfaces วิศวกรด้านความปลอดภัยใช้เมื่อเขียน firewall ACL rules นักศึกษาที่เตรียมสอบ CCNA, CompTIA Network+ หรือ AWS ใช้เพื่อตรวจสอบการคำนวณ subnetting ด้วยมือ
การคำนวณ subnet ทั้งหมดทำงานในเบราว์เซอร์ของคุณโดยใช้ JavaScript bitwise operations — ไม่มี IP addresses หรือการกำหนดค่าเครือข่ายถูกส่งไปยัง server ใดๆ
คำถามที่พบบ่อย
- What is CIDR notation?
- CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its subnet mask together, e.g. 192.168.1.0/24. The number after the slash indicates how many bits are in the network prefix.
- What is the difference between network address and broadcast address?
- The network address is the first address in a subnet (all host bits = 0). The broadcast address is the last address (all host bits = 1). Neither can be assigned to a host.
- How are usable hosts calculated?
- Usable hosts = 2^(32−prefix) − 2. We subtract 2 for the network and broadcast addresses. A /30 has 4 total addresses and 2 usable hosts. /31 and /32 are treated specially for point-to-point and loopback.
- What is a wildcard mask?
- A wildcard mask is the inverse of the subnet mask. It is used in ACL rules and OSPF configuration to specify which bits to ignore. E.g., subnet mask 255.255.255.0 has wildcard 0.0.0.255.
- Which are private IP ranges?
- RFC 1918 defines three private ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Addresses in these ranges are not routable on the public internet. 127.0.0.0/8 is reserved for loopback.
เครื่องมือที่เกี่ยวข้อง
- JSON Formatter, Validator & Repair Tool
Format, minify, validate, and repair JSON instantly in your browser. Sort keys alphabetically, auto-format on paste, download as file, escape/unescape strings — free, no sign-up, 100% client-side.
- ตัวสร้าง QR Code
สร้าง QR code สำหรับ URL ข้อความ Wi-Fi และอื่นๆ ดาวน์โหลดเป็น PNG
- ตัวสร้างรหัสผ่าน
สร้างรหัสผ่านสุ่มที่แข็งแกร่งด้วยความยาวและชุดอักขระที่กำหนดเอง
- Base64 เข้ารหัส / ถอดรหัส
เข้ารหัสข้อความเป็น Base64 หรือถอดรหัสกลับเป็นข้อความธรรมดา
- URL เข้ารหัส / ถอดรหัส
เข้ารหัสหรือถอดรหัส URL และ query strings ด้วย percent-encoding