I-Calculator ye-subnet (IPv4 CIDR)

Uhlu oluphelele lwe-IPv4 lwe-subnet: ukuxhumana, ukusakazwa, i-mask, i-wildcard, umphathi wendawo yokusebenzela kanye nokubala.

/
Prefix length, e.g. 24 for a 255.255.255.0 mask.
Idilesi yenethiwekhi —
Ikheli le-Broadcast —
Isihluzi senethiwekhi eseduze —
Isigqoko se-wildcard —
Amamephu asetshenziswayo —
Uhlu lomphathi —

Iziphetho zivuselelwa uma ubhala.

Ingabe le calculator ikulethela impendulo efanele?

Malunga nale khadi

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.

Imibuzo ebuzwa kaningi

Ingabe kunezimemi ezingu-1000 ezikhona ku-subnet?

I /n subnet ine 2^(32−n) izikheli, ngaphezu kwezimbili ezigcinwe kunethiwekhi ne-broadcast. I /24 ine 256 izikheli ne-254 amahovisi asebenzisekayo.

Yini i-wildcard mask?

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.

Yini ushintsho phakathi kwenethiwekhi nekheli le-broadcast?

Ikheli lenethiwekhi (zonke izixhumanisi zesizinda 0) linikeza igama lenethiwekhi eseduze; ikheli le-broadcast (zonke izixhumanisi zesizinda 1) lifinyelela kuwo wonke amakhompiyutha. Akunalutho oluzobekwa kudivayisi.

Yini okusho i-CIDR prefix (/24, /16)?

Le yinani le-bit ezihamba phambili ezihlanganisa ingxenye yokuxhumana yekheli. Isingeniso esikhulu sisho ama-bit amaningi wokuxhumana nama-bit amancane omnikazi, ngakho-ke inethiwekhi eseduze encane: /24 inikeza ama-hosts angama-254, /25 inikeza ama-126, futhi i-bit engeziwe ngayinye ihlukanisa isikhala.

Ngiyihlukanisa kanjani insizakalo ibe yimithombo encane?

Thola amabithi omnikazi ngokunyusa isiqalo. Ukuhlukanisa i /24 ibe ama /25s amabili kunikeza amabloki amabili we-126 omnikazi; ukuya ku /26 kunikeza amabloki amane we-62. I-bit yesiqalo ngayinye engeziwe iphinda inani le-subnets futhi ikhuphula ubukhulu babo.

Yini isigaba sekheli le-IP?

I-classful scheme edala ihlukanise amakheli nge-octet yabo yokuqala: Isigaba A (1–126), Isigaba B (128–191) nesigaba C (192–223) ye-unicast, kanye ne-D ye-multicast ne-E egcinwe. I-CIDR iguqule amaqembu ukuhlinzekwa, kodwa i-calculator iphinde ibike isigaba ikheli liwela kuso.

Yini okwenziwa yi /31 ne /32 subnets?

A /31 inekheli ezimbili kuphela futhi akukho ukusakazwa, kusetshenziswa ukuxhuma okusuka endaweni kuya endaweni phakathi kwamarouter. A /32 yikheli lehost eyodwa, elijwayelekile le loopbacks nezindlela zomemi. I-calculator iphatha izimo ezimbili ezikhethekile.

❤️ Uthando Calculator.Free? Yabelana

𝕏  X Facebook Reddit
API — sebenzisa le calculator kusuka kukhodi

Nquma le calculator njenge JSON evulekile yendawo yokuqeda - akukho isithonjana esidingekayo. Thumela amaxabiso endawo ngezansi njengezilungiselelo zombuzo noma i-JSON. Noma yini ongayishiya isebenzisa iphutha elifanayo elifakwe ngaphambili lekhasi; ipharamitha engaziwa yi-400, ayikho i-zero emnyama. Funda i-API egcwele →

Ingxenye yendawo

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);

Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.