เครื่องคำนวณ Subnet IP

Results
—
—

เครื่องคำนวณ Subnet IP รับที่อยู่ IPv4 และคำนำหน้า CIDR แล้วสกัดตัวกัน subnet ที่ที่อยู่เครือข่าย ที่ที่อยู่ broadcast ตัวกัน wildcard ขอบเขต host และจำนวน host รวมทั้งที่ใช้ได้

สูตร
mask = ((1 << bits) − 1) << (32 − bits); network = ip & mask; broadcast = network | ~mask

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

เหตุใดใน subnet จึงใช้ได้เฉพาะ host บางตัวเท่านั้น?
ที่อยู่เครือข่ายและที่อยู่ broadcast ถูกกันไว้ ดังนั้น host ที่ใช้ได้ = 2^(32−prefix) ลบสอง

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. เกี่ยวกับเรา MateCalc.

เครื่องคิดเลขที่เกี่ยวข้อง