Kalkulator na Sashin Intanet (IPv4 CIDR)

Full IPv4 subnet breakdown: network, broadcast, mask, wildcard, host range and count.

/
Prefix length, e.g. 24 for a 255.255.255.0 mask.
Adireshin Intanet —
Adireshin Broadcast —
Subnet mask —
Wildcard mask —
Mai Gudanarwa —
Maɓalli —

Results update as you type.

Shin wannan Kalkulator ya ba ka amsa madaidaiciya?

Game da wannan Kalkulator

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.

Tambayoyi da ake yi da yawa

Da yawa daga cikin masu sauraro suna cikin wani sashin Intanet?

A /n subnet na da 2^(32−n) adiresoshin, da kuma biyu da aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga aka riga. A /24 na da adiresoshin 256 da masu watsawa 254 da za'a iya amfani da su.

Mẽne ne wata ƙura mai alaƙa da wurin zama?

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.

Mene ne bambancin tsakanin adireshin yanar gizo da na watsawa?

The network address (all host bits 0) names the subnet; the broadcast address (all host bits 1) reaches every host on it. Neither can be assigned to a device.

Me ake nufi da CIDR prefix (/24, /16)?

Shi ne adadin bita na farko da ke samar da sashin shafuka na adireshin. Babban farkon yana nufin mafi yawan bita na shafuka da kuma ƙarancin bita na masu sauraro, don haka ƙarancin sashin: /24 zai ba da masu sauraro 254, /25 zai ba da 126, kuma kowanne bita na ƙarshe zai raba ɓangaren.

Ta yaya zan raba wata wutar lantarki zuwa sassan wutar lantarki masu ƙaranci?

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.

Mece ce nau'in adireshin IP?

The old classful scheme split addresses by their first octet: Class A (1–126), Class B (128–191) and Class C (192–223) for unicast, plus D for multicast and E reserved. CIDR replaced classes for allocation, but the calculator still reports the class the address falls in.

Me ake amfani da subnets /31 da /32 don?

A /31 yana da adireshi biyu kawai kuma ba da watsawa ba, ana amfani da shi don alaƙa na maɓalli zuwa maɓalli tsakanin maɓallan hanya. A /32 yana da adireshin mai masaukin guda, mai yawa ga loopbacks da hanyoyin mai masaukin. Kalkulator ɗin yana kula da nau'ikan musamman biyu.

❤️ Love Calculator.Free? Share

𝕏  X Facebook Reddit
API — amfani da wannan calculator daga code

Ka kira wannan kwalban kamar wata maɓallin ƙarshe JSON mai kyauta - babu maɓalli da ake buƙata. Ka aika kimar fannin ƙasa kamar paramita na tambaya ko JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Read the full API docs →

Endpoint

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.