Subnet Calculator (IPv4 CIDR)

Volledige IPv4-subnetuitval: netwerk, uitzending, masker, wildcard, host range en count.

/
Prefix length, e.g. 24 for a 255.255.255.0 mask.
Netwerkadres —
Adres van de uitzending —
Subnetmasker —
Wildcard masker —
Bruikbare hosts —
Hostbereik —

Resultaten update als u typt.

Heeft deze rekenmachine je het juiste antwoord gegeven?

Over deze rekenmachine

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.

Veelgestelde vragen

Hoeveel hosts zitten er in een subnet?

A /n subnet heeft 2^(32−n) adressen, min twee gereserveerd voor het netwerk en uitzending. A /24 heeft 256 adressen en 254 bruikbare hosts.

Wat is een wildcard masker?

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.

Wat is het verschil tussen netwerk en uitzendadres?

Het netwerkadres (alle host bits 0) noemt het subnet; het broadcast adres (alle host bits 1) bereikt elke host op het netwerk. Geen van beide kan aan een apparaat worden toegewezen.

Wat betekent het CIDR-voorvoegsel (/24, /16)?

Het is het aantal leidende bits dat het netwerkgedeelte van het adres vormt. Een groter voorvoegsel betekent meer netwerkbits en minder hostbits, dus een kleiner subnet: /24 geeft 254 hosts, /25 geeft 126 en elke extra bit halveert het blok.

Hoe splitste ik een netwerk in kleinere subnetten?

Lenen host bits door het verhogen van de voorvoegsel. Splitsing van een /24 in twee /25s geeft twee blokken van 126 hosts; gaan naar /26 geeft vier blokken van 62. Elke toegevoegde voorvoegsel bit verdubbelt het aantal subnetten en helften hun grootte.

Wat is een IP-adresklasse?

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.

Wanneer worden /31 en /32 subnetten voorgeschreven?

Een /31 heeft slechts twee adressen en geen uitzending, gebruikt voor punt-tot-punt links tussen routers. Een /32 is een enkele host adres, gebruikelijk voor loopbacks en host routes. De rekenmachine behandelt beide speciale gevallen.

❤️ Liefde Calculator.Free? Deel het

𝕏  X Facebook Reddit
API

Noem deze rekenmachine als een gratis JSON eindpunt.. geen sleutel nodig. Stuur de veldwaarden hieronder als query parameters of JSON. Alles wat je weglaat gebruikt dezelfde standaard als deze pagina is voorgevuld met; een onbekende parameter is een 400, nooit een stil nul. Lees de volledige API docs →

Eindpunt

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

De resultaten zijn schattingen voor algemene richtsnoeren, niet voor financieel, medisch of fiscaal advies.