ข้ามไปยังเนื้อหาหลัก

เครื่องคิดเลขซับเน็ต

เครื่องมือสำหรับนักพัฒนา

แปลง IP/CIDR เป็นมาสก์ บรอดคาสต์ และโฮสต์ที่ใช้ได้

ดูคำตอบอย่างรวดเร็ว

Subnet Calculator: IP/CIDR to mask, broadcast and usable hosts. Mask /n = first n bits set · Network = IP AND mask · Broadcast = network OR wildcard.

ขอบเขตส่วนเครือข่าย

192.168.1.1 ~ 192.168.1.254

254 โฮสต์ที่ใช้ได้ / 256 ที่อยู่ทั้งหมด

ที่อยู่เครือข่าย192.168.1.0
ที่อยู่กระจายเสียง192.168.1.255
มาสก์ซับเน็ต255.255.255.0
มาสก์ไวด์การ์ด0.0.0.255

มุมมองฐานสอง

  1. 1IP: 11000000.10101000.00000001.01100100
  2. 2Mask: 11111111.11111111.11111111.00000000(前 24 位为 1)
  3. 3ที่อยู่เครือข่าย = IP กับมาสก์ทำการ AND ทีละบิต = 192.168.1.0
  4. 4ที่อยู่กระจายเสียง = ที่อยู่เครือข่าย หรือ ไวลด์การ์ด = 192.168.1.255

ค้นหา CIDR ที่ใช้บ่อยอย่างรวดเร็ว

CIDRมาสก์โฮสต์ที่ใช้ได้การใช้งานทั่วไป
/8255.0.0.016,777,214Class A
/16255.255.0.065,534Class B / large LAN
/24 ←255.255.255.0254Class C / most common
/25255.255.255.128126Half C
/26255.255.255.19262Small department
/27255.255.255.22430Small team
/30255.255.255.2522Point-to-point link

💡 จดจำตารางกำลังของ 2: /24=256, /25=128, /26=64, /27=32, /28=16, /29=8, /30=4 ที่อยู่ ส่วนเครือข่ายส่วนตัว (RFC1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — ไม่สามารถส่งผ่านในเครือข่ายสาธารณะได้ /31 ลิงก์จุดต่อจุด (RFC3021) ไม่มีที่อยู่เครือข่าย/ที่อยู่กระจายเสียง สองที่อยู่สามารถใช้ได้ทั้งคู่

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the Subnet Calculator or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • Subnet Calculator is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: IP/CIDR to mask, broadcast and usable hosts.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

IPv4 subnetting

Mask /n = first n bits set · Network = IP AND mask · Broadcast = network OR wildcard
Usable hosts = 2^(32−n) − 2
/24 = 254 · /26 = 62 · /27 = 30 hosts

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

How do I use the Subnet Calculator?
Open the page and fill in the input fields — results update automatically. IP/CIDR to mask, broadcast and usable hosts.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

แหล่งข้อมูลที่น่าเชื่อถือ:

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องคิดเลขซับเน็ต[EB/OL]. https://www.yijiansuan.com/th/c/dev/subnet

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก