Skip to main content

วิธีการคำนวณ Ip Subnet Calc

learn.whatIsHeading

An IP subnet calculator breaks an IP address space into smaller networks. CIDR (Classless Inter-Domain Routing) notation specifies how many bits belong to the network portion — /24 means 24 bits for network, 8 bits for hosts, allowing 254 usable host addresses. Subnetting is essential for network design, router configuration, and firewall rules.

สูตร

Subnet mask = n ones followed by (32−n) zeros in binary

คำแนะนำทีละขั้นตอน

  1. 1IP addresses are 32-bit numbers (IPv4), written as 4 octets: e.g. 192.168.1.0
  2. 2CIDR /n means first n bits are the network address
  3. 3Subnet mask = n ones followed by (32−n) zeros in binary
  4. 4Network address = IP AND subnet mask
  5. 5Broadcast address = network address OR NOT(subnet mask)
  6. 6Usable hosts = 2^(32−n) − 2 (subtract network and broadcast addresses)

ตัวอย่างที่มีคำตอบ

อินพุต
192.168.1.0/24
ผลลัพธ์
Network: 192.168.1.0, Broadcast: 192.168.1.255, Hosts: 254
/24 gives 256 addresses, 254 usable
อินพุต
10.0.0.0/8
ผลลัพธ์
Network: 10.0.0.0, Hosts: 16,777,214
Class A private range — 16 million hosts

คำถามที่พบบ่อย

What is Ip Subnet?

An IP subnet calculator breaks an IP address space into smaller networks. CIDR (Classless Inter-Domain Routing) notation specifies how many bits belong to the network portion — /24 means 24 bits for network, 8 bits for hosts, allowing 254 usable host addresses

How accurate is the Ip Subnet calculator?

The calculator uses the standard published formula for ip subnet. Results are accurate to the precision of the inputs you provide. For financial, medical, or legal decisions, always verify with a qualified professional.

What units does the Ip Subnet calculator use?

This calculator works with inches. You can enter values in the units shown — the calculator handles all conversions internally.

What formula does the Ip Subnet calculator use?

The core formula is: Subnet mask = n ones followed by (32−n) zeros in binary. Each step in the calculation is shown so you can verify the result manually.

การตั้งค่า