Subnet Sakrekenaar (IPv4 KIDR)
Volle IPv4 subnet - ineenstorting: netwerk, uitsending, masker, wilde-, bediener omvang en tel.
Resultate werk op soos jy tik.
Aangaande hierdie sakrekenaar
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.
Dikwels gevra vrae
Hoeveel gashere is in'n subnet?
A /n subnet het 2^32-1n adresse, -2 voorbehou vir die netwerk en uitsending. A /24 het 256 adresse en 254 bruikbaare gashere.
Wat is 'n karaktermasker?
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 die verskil tussen netwerk en uitsendings?
Die netwerkadres (alle gasheer bisse 0) noem die subnet; die uitsaaiadres (al die bediener dele 1) bereik elke gasheer op dit. Nie een kan aan 'n toestel toegeken word nie.
Wat beteken die KIDR - voorvoegsel (/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.
Hoe verdeel ek'n netwerk in kleiner subnets?
Borrow gasheerbacks deur die voorvoegsel te vergroot.'n /24 word in twee /25s verdeel en gee twee blokke 126 gashere; om na /26 te gaan, gee vier blokke van 62. Elke bygevoegde voorvoegsel verdubbel die aantal subnets en helftes hulle grootte.
Wat is 'n ip adres klas?
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.
Waarvoor word /31 en /32 subnette gebruik?
A /31 het net twee adresse en geen uitsending, gebruik vir puntskakels tussen roeteers. A /32 is 'n enkele gasheeradres, algemeen vir lusbacks en gasheerroetes. Die sakrekenaar hanteer beide spesiale sake.
API ← gebruik hierdie sakrekenaar van kode
Bel hierdie sakrekenaar as 'n vry JSON-punt takies wat nodig is. Stuur die veldwaardes hieronder as navraag parameters of JSON. Enigiets wat jy weglaat gebruik dieselfde verstek hierdie bladsy is vooraf gevul met; 'n onbekende parameter is 'n 400, nooit' n stil nul. Lees die volle API docs →
Einde punt:
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);
Die resultate is skattings van algemene leiding, nie net finansiële, mediese of belastingvoorligting nie.