ژمێرەری تۆڕی ژێری IPv4 CIDR
بەشکردنی IPv4 ی تەواو: تۆڕی، بڵاوکردنەوە، ماسک، وێڵکارد، شوێنی میوان و ژمارەی.
ئەنجامەکان نوێدەکرێنەوە کاتێک کە نوسیت
دەربارەی ئەم ژمێرە
This subnet calculator turns an IPv4 address and a CIDR prefix into the full structure of a subnet. An IPv4 address is 32 bits, usually written as four dot-separated octets like 192.168.1.10, and a CIDR prefix such as /24 splits those 32 bits into a network part (the leading bits, fixed for every host in the subnet) and a host part (the remaining bits, unique to each device). This calculator takes an address and a prefix length and derives the network address, broadcast address, subnet mask, wildcard mask and the range of usable host addresses, along with the IP class and total address count.
The size of a subnet is set by the prefix: a /n block holds 2^(32−n) addresses, of which two are reserved — the network address (all host bits 0, naming the subnet) and the broadcast address (all host bits 1, reaching every host). So a /24 has 2^8 = 256 addresses and 254 usable hosts, a /25 has 128 addresses and 126 usable hosts, and each extra prefix bit halves the block. As a worked example, 192.168.1.10/24 gives a network of 192.168.1.0, a broadcast of 192.168.1.255, a 255.255.255.0 mask, a 0.0.0.255 wildcard mask, and a usable host range of 192.168.1.1 to 192.168.1.254.
Subnetting is how networks are carved into manageable, secure segments — separating departments, sizing VLANs, planning address allocation and writing firewall and routing rules. The wildcard mask (the bitwise inverse of the subnet mask) is what Cisco access-control lists and OSPF use to match ranges of addresses. The /31 and /32 prefixes are special cases: /31 is used for point-to-point links with two usable addresses and no broadcast, and /32 describes a single host.
پرسیاری زۆر کراوە
چەند ماڵپەڕێک لە ژێرشبکه دا هەیە؟
تۆڕی ژێری /n ٢^(٣٢-n) ناونیشان هەیە، کە دوویان بۆ بەستەری شەبکە و بڵاوکردنەوە دانراوە. تۆڕی ژێری /٢٤ ٢٥٦ ناونیشان و ٢٥٤ میوانداری بەکارهێنەر هەیە.
ماسکێکی وێڵکارد چیە؟
ماسکێکی وێڵدکارد بریتییە لە بەتاڵکردنەوەی ماسکی بەشەکانی شەبکە (255.0 → 0.255). لیستی کۆنتڕۆڵی گەیشتن و OSPF بەکاری دەهێنن بۆ هاوتاکردنی نێوان ئادرسەکان.
جیاوازی نێوان ناوەوەی شەبکە و ناوەوەی ناونیشان چیە؟
ناونیشانی تۆڕی (ههر ههموو بهتهکانی میوان ٠) ناوی بەشەکانی شێتی خوارەوە دەداتێ؛ ناونیشانی بڵاوکردنەوە (ههر ههموو بهتهکانی میوان ١) بۆ هەموو میوانەکان دەگات. ناتوانرێت هیچیان بۆ ئامێریەك دابنرێت.
پێشەکی CIDR چیە (/24, /16)؟
ئەمە ژمارەی ئەو بیتە پێشەوەیە کە بەشەکانی شەبکە لە ناوەندە پێکدەهێنن. پێشبڕکێیەکی گەورەتر مانای بیتە زیاتری شەبکە و بیتە کەمەکانی میوان دەدات، بۆیە بەشێکی بچوکتر: /24 ٢٥٤ میوان دەدات، /25 ١٢٦ دەدات، هەر بیتێکی زیادە نیوەی بلۆکە دەکات.
چۆن شەبکە دابەش دەکەم بۆ بەشەکانی خوارەوە؟
بە زیادکردنی پێشەکی، بیتە دامەزرێنەرەکان وەرگرە. دابەشکردنی /24 بۆ دوو /25 دوو بلۆکی 126 دامەزرێنەر دەدات؛ چوون بۆ /26 چوار بلۆکی 62 دەدات. هەر بیتێکی پێشەکی زیادکراو ژمارەی تۆڕە ژێرەکان دوو هێندە دەکات و قەبارەیان نیوە دەکات.
ناوەوەی ناوەکەی IP چیە؟
شێوەی کۆنی پۆلێنکردنی ناوەکان بە پێی یەکەمین ئۆکتەیان دابەش کراون: پۆلێنکردنی A (1-126)، پۆلێنکردنی B (128-191) و پۆلێنکردنی C (192-223) بۆ یەکەکاستە، هەروەها D بۆ زۆرەکاستە و E بۆ پاراستن.
تۆڕی ژێری /31 و /32 بۆ چی بەکاردێت؟
A/31 تەنها دوو ناونیشان هەیە و هیچ بڵاوکردنەوەیەکی نییە، بەکاردەهێنرێت بۆ پەیوەندیی پێگەی-بۆ-پێگەی نێوان ڕێڕەوەکان. A/32 ناونیشانی یەک ماڵپەڕە، بۆ لووبباکس و ڕێگاکانی ماڵپەڕ. ئەم ژمارەکارییە هەردوو حاڵەتی تایبەت بەڕێوەدەبات.
API - ئەم ژمێرەرانە لە کۆد بەکاربهێنە
ئەم ژمێرەرە بانگ بکە وەک خاڵێکی کۆتایی JSON - هیچ کێڵگەیەک پێویست ناکات. بایەخی بەشی خوارەوە بنێرێت وەک پارامەتری پرسیار یان JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. پەڕەی زانیارییەکانی API بخوێنە →
خاڵى کۆتایی
GET https://calculator.free/api/v1/subnet/
curl
curl "https://calculator.free/api/v1/subnet/?ip=192.168.1.10&cidr=24"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/subnet/?" + new URLSearchParams({
"ip": "192.168.1.10",
"cidr": "24"
}));
const data = await r.json();
console.log(data.results);
ئەنجامەکان تەنها بۆ ڕێنمایی گشتین، نەک بۆ ڕاوێژی دارایی، پزیشکی یان باج.