Alt Şəbəkə Hesablayıcısı (IPv4 CIDR)
IPv4 alt şəbəkəsinin tam təsviri: şəbəkələr, yayımlar, maskalar, wildcard, qonaqlar diapazonu və say.
Yazdığınız zaman nəticələr yenilənir.
Bu hesablayıcı haqqında
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.
Tez-tez soruşulan suallar
Alt şəbəkədə neçə qovşaq var?
A /n subnet has 2^(32−n) addresses, minus two reserved for the network and broadcast. A /24 has 256 addresses and 254 usable hosts.
Wildcard mask nədir?
A wildcard mask is the bitwise inverse of the subnet mask (255.255.255.0 → 0.0.0.255). Access-control lists and OSPF use it to match ranges of addresses.
Şəbəkə və yayım ünvanı arasında fərq nədir?
Şəbəkə ünvanı (bütün qovşaq bitləri 0) altşəbəkə adlandırılır; yayım ünvanı (bütün qovşaq bitləri 1) hər qovşaqda çatır. Heç biri avadanlığa təyin edilə bilməz.
CIDR prefiksi (/24, /16) nə deməkdir?
It is the number of leading bits that form the network portion of the address. A larger prefix means more network bits and fewer host bits, so a smaller subnet: /24 gives 254 hosts, /25 gives 126, and each extra bit halves the block.
Bir şəbəkəni kiçik alt şəbəkəyə necə bölmək olar?
Prefiksi artıraraq qovşaq bitlərini borc al. /24-ü iki /25-ə bölmək 126 qovşaqdan ibarət iki blok verir; /26-ya getmək 62-dən ibarət dörd blok verir. Hər əlavə prefiks biti alt şəbəkələrin sayını ikiqat artırır və onların ölçüsünü yarıya endirir.
IP ünvan sinfi nədir?
Əski klasful şəkilçi adresləri ilk oktetləri ilə bölür: A sinfi (1-126), B sinfi (128-191) və C sinfi (192-223) unicast üçün, plus D multicast üçün və E rezerve edilmişdir. CIDR bölüşdürmə üçün sinifləri əvəz etdi, amma hesablayıcı hələ də ünvan düşən sinif barədə məlumat verir.
/31 və /32 alt şəbəkələri nəyə xidmət edir?
A /31 yalnız iki ünvan və yayım yoxdur, routerlər arasında nöqtədən nöqtəyə bağlantılar üçün istifadə olunur. A /32 loopback və host yolları üçün ümumi olan tək qovşaq ünvanıdır. Hesablayıcı hər iki xüsusi halı idarə edir.
API — bu hesablayıcını koddan istifadə et
Bu hesablayıcını pulsuz JSON son nöqtəsi kimi çağır - açar lazım deyil. Aşağıdakı sahənin dəyərlərini sorğu parametrləri və ya JSON olaraq göndər. Əks təqdirdə, səhifənin əvvəlcədən doldurulduğu ön qurğulu parametrlər istifadə ediləcəkdir. Namə'lum parametrlər 400-dür, heç vaxt səssiz sıfır deyil. API sənədlərini oxu →
Son nöqtəsi
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);
Bu nəticələr yalnız ümumi məsləhət üçün hesablamalardır, maliyyə, tibbi və ya vergi məsləhətləri deyil.