Subnet Calculator (IPv4 CIDR)
Ìpàpọ̀ IPv4 tí a fi pamọ́: nẹ́dà, ìṣàfarawé, àwọn à
Àwọn Àtòjọ-ẹ̀yàn àwọn ìṣàmúlò-ètò
Àkóónú ìṣàmúlò-ètò yìí
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.
Àwọn Àtòjọ-ẹ̀yàn
Ìgbà wò nínú àwọn ààtòjútó àwọn ààtòjútó nínú àwọn ààtòjútó àwọn ààtòjútó?
A /n subnet ní àdírẹ̀sì 2^(32−n), àti àwọn àdírẹ̀sì mejì tí a fi pamọ́ fún nẹ́dàlìsì náà àti ìṣàfarawé. A /24 ní àdírẹ̀sì 256 àti àwọn àbòójútó 254 tí a lè lò.
Àwọn àwọn ààyè-iṣẹ́ àwọn àmì-ìwé
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.
Àwọn ìyatọ̀ wo nínú àdírẹ̀sì nẹ́dàlì náà àti àdírẹ̀sì ìṣàfarawékọ̀ọ̀kan?
Àdírẹ̀sì nẹ́dàlì (bítìnì gbogbó àwọn ọ̀tù 0) nàwọ́ àwọn ààtò ààtò; àdírẹ̀sì ìjánu-ìjánu (bítìnì gbogbó àwọn ọ̀tù 1) nà bóò gba gbogbo àwọn ọ̀tù ní pàtó. Kò lè fi àwọn àwọn àtòjọ-ẹ̀yàn pamọ́.
Kini ìtumọ̀ àwọn àgbèwọlé CIDR (/24, /16)?
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.
Bawo ni mo ṣe lè fi nẹ́dàlì kọ̀ǹpútà pamọ́ sí àwọn ìsàlẹ̀-ilà kékeré?
Borrow host bits by increasing the prefix. Splitting a /24 into two /25s gives two blocks of 126 hosts; going to /26 gives four blocks of 62. Each added prefix bit doubles the number of subnets and halves their size.
Kini ìpele àdírẹ̀sì IP?
Àwọn ààyè àwọn ààyè tí a tí kọ́ nípa àwọn àdírẹ̀sì tí a tí kọ́ nípa àwọn ààyè àwọn: Àwọn Àwọn A (1-126), Àwọn Àwọn B (128-191) atí Awọn Àwọn C (192-223) fún unicasting, àwọn D fún multicast ati E tí a tí fi pamọ́. CIDR tí wọ́n pàtó àwọn ààyè fún àwọn ìṣàmúlò-ètò, àwọn àtí àwọn kálẹ́tì tun sọ̀rọ̀ fún àwọn ààyè tí a tì fi pamọ́.
Kini àwọn ààtòjútó /31 ati /32 tí a lò fún?
A /31 ní àdírẹ̀sì meji nínú àwọn ààyè-iṣẹ́ náà, àti àwọn ààyè-iṣẹ́ àìbálẹ̀, tí a lo fún àwọn ìṣàmúlò-ètò àwọn ààyè-iṣẹ́ laarin àwọn róòtù. A /32 ní àdírẹ̀sì ọ̀fẹ́ kan, tí a lo fún àwọn àgbèwọlé àti àwọn ààyè-iṣẹ́. Àwọn àwọn
API — ló àwọn ìṣàmúlò-ètò yìí láti inú ìṣàmúlò-ètò
Fi àwọn ìṣàmúlò-ètò yìí kọ̀ǹpútà yìí láti jẹ́ ààyè-iṣẹ́ JSON tí a tí fi pamọ́ - kò ní bọ́tìnì kan tí a fẹ́. Fi àwọn fálù ààyè-iṣẹ́ sílẹ̀ sí bí àwọn àwọn ìṣàmúlò-ètò àti JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Ka àwọn àkọlé API kíkún →
Àwọn Ààyè Ìjánu-ìṣàmúlò-ètò
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.