I-Calculator ye-Subnet (IPv4 CIDR)

IPv4 i-subnet epheleleyo eqhutywa: uthungelwano, usasazo, imask, i-wildcard, ummandla womququzeleli kunye nobalo.

/
Prefix length, e.g. 24 for a 255.255.255.0 mask.
Idilesi yothungelwano —
Idilesi yosasazo —
Isigqubuthelo senethiwekhi esezantsi —
Isigqubuthelo se-Wildcard —
Iinginginya ezisetyenziswayo —
Uluhlu lomququzeleli —

Iinketho ze projekti

Ingaba le calculator ikunika umyalezo olungileyo?

Malunga nale Calculator

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 ebuza rhoqo

Ingaba zininzi iziququzeleli kwinethiwekhi esezantsi?

A /n umxhobho wesiqhagamshelanisi esingaphantsi unee-2^(32−n) idilesi, ngaphantsi kwee-2 ezigcinwe kuthungelwano nokusasazwa. A /24 unee-256 idilesi ne-254 iindwendwe ezisetyenziswayo.

Yintoni isigqubuthelo se wildcard?

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.

Yintoni utshintsho phakathi kothungelwano kunye nedilesi yosasazo?

Idilesi yothungelwano (zonke iinkwenkwezi zomququzeleli 0) inika igama lothungelwano olusezantsi; idilesi yosasazo (zonke iinkwenkwezi zomququzeleli 1) ifika kumququzeleli ngamnye kuyo. Akukho nto inganikezelwa kwisixhobo.

Ithetha ntoni isiqalelo se-CIDR (/24, /16)?

Inani lezinto eziphambili ezidibanisa inxalenye yomsebenzi womnatha wedilesi. Isiqalelo esikhulu sithetha izinto ezingaphezulu zomsebenzi womnatha kunye nezinto ezincinci zomququzeleli, ngoko ke umthungelwano phantsi oncinci: / 24 inika 254 zomququzeleli, / 25 inika 126, kwaye yonke into engaphezulu idibanisa inxalenye yesibini yebloki.

Ndiyahlula njani uthungelwano lube ziinethiwekhi ezincinci?

Iibit zenginginya ezimfutshane ngokunyusa isiqalelo. Ukuhlula / 24 kwi / 25s ezimbini kunika iibloki ezimbini ze 126 zeziqhagamshelanisi; ukuphuma kwi / 26 kunika iibloki ezine ze 62. Iibit zenginginya ezimfutshane ezifakiwe nganye ziphindaphindwe inani lemimandla esezantsi nengxenye yobungakanani babo.

Yintoni udidi lwedilesi ye-IP?

Inkqubo edala yohlobo olutsha ihlula idilesi nge octet yabo yokuqala: Uhlobo A (1-126), Uhlobo B (128-191) nohlobo C (192-223) ye-unicast, kunye ne-D ye-multicast ne-E egcinwe. I-CIDR itshintshe amaqela okunikezelwa, kodwa i-calculator ihlala ixela uhlobo idilesi iwela kulo.

Yintoni /31 ne /32 iinxuwa ezisezantsi ezisetyenziswa kuyo?

A / 31 ineedilesi ezimbini kuphela kwaye akukho kusasazo, isetyenziswa kwikhonkco lendawo- ukuya- kwindawo phakathi kwee routers. A / 32 idilesi yomququzeleli omnye, eqhelekileyo kwi loopbacks kunye neendlela zomququzeleli. I kalkuleta iphatha zombini iimeko ezikhethekileyo.

❤️ Uthando Calculator.Free? Yabelana

𝕏  X Facebook Reddit
API — sebenzisa le calculator ukusuka kwikhowudi

Nceda le khadi lemali njengendawo esemva ye-JSON ekhululekileyo - akukho qhosha lifunekayo. Thumela amaxabiso endawo ezantsi njengeparameter yombuzo okanye i-JSON. Nantoni na oyenzayo isebenzisa okungagqibekanga okufanayo eli phepha ligqityiwe ngaphambili; iparameter engaziwayo yi 400, ayikho i zero ekhululekileyo. Funda i-API epheleleyo →

Incopho yesiphelo

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

Results are estimates for general guidance only, not financial, medical or tax advice.