උපජාල ගණනය කිරීම (IPv4 CIDR)
IPv4 හි සම්පූර්ණ උපජාල බිඳවැටීම: ජාල, විකාශනය, ආවරණ, wildcard, සත්කාරක පරාසය සහ ගණනය කිරීම.
ඔබ ටයිප් ලෙස ප්රතිඵල යාවත්කාලීන.
මෙම කැල්ක්යුලේටරය ගැන
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.
නිතර අසන ප්රශ්න
කොපමණ ධාරක උපජාලයක් තුළ ඇත?
A /n උපජාලය 2^ (32-n) ලිපින, ජාල හා විකාශනය සඳහා වෙන් කර ඇති දෙකක් අඩු වේ. A /24 ලිපින 256 හා 254 භාවිතා කළ හැකි ධාරක ඇත.
වයිල්ඩ්කාඩ් වෙස්ට් යනු කුමක්ද?
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.
ජාල හා විකාශන ලිපිනය අතර වෙනස කුමක්ද?
ජාල ලිපිනය (සෑම ධාරක බිට්0) උපජාලය නම්; විකාශන ලිපිනය (සෑම ධාරක බිට් 1) එය මත සෑම ධාරකයක් ළඟා. දෙකම උපාංගයක් වෙන් කළ නොහැකි.
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.
මම කුඩා උපජාල බවට ජාලයක් බෙදා ගන්නේ කෙසේද?
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.
IP ලිපිනය පන්තියක් යනු කුමක්ද?
පැරණි පන්තිගත ක්රමවේදය ඔවුන්ගේ පළමු ඔක්ටේට් විසින් ලිපින බෙදා: පන්ති A (1-126), පන්ති B (128-191) සහ පන්ති C (192-223) සඳහා unicast, මෙන්ම බහු-පරිවර්තනය සඳහා D සහ E රඳවා. CIDR වෙන් කිරීම සඳහා පන්ති වෙනුවට, නමුත් ගණනය තවමත් ලිපිනය වැටේ පන්ති වාර්තා.
/31 සහ /32 උපජාල භාවිතා කරන්නේ කුමක් සඳහාද?
A /31 මඟීන් අතර ලකුණ-ට-ලකුණ සම්බන්ධතා සඳහා භාවිතා, ලිපින දෙකක් පමණක් හා කිසිදු විකාශනය ඇත. A /32 loopbacks හා සත්කාරක මාර්ග සඳහා පොදු තනි සත්කාරක ලිපිනය වේ. මෙම ගණනය විශේෂ අවස්ථාවන් දෙකම හැසිරවීම.
API - කේතය සිට මෙම කැල්ක්යුලේටරය භාවිතා
කිසිදු යතුරක් අවශ්ය - නිදහස් JSON අවසන් ස්ථානයක් ලෙස මෙම ගණනය කිරීම් ඇමතුම්. විමසුම් පරාමිතීන් හෝ JSON ලෙස පහත ක්ෂේත්ර අගයන් යවන්න. ඔබ අතහැර දමන ඕනෑම දෙයක් මෙම පිටුව සමග පෙර පිරවීම වන එම පෙරනිමි භාවිතා; නොදන්නා පරාමිතියක් 400 වේ, නිහඬ ශුන්ය කිසි විටෙකත්. සම්පූර්ණ API ලේඛන කියවන්න →
අවසාන ස්ථානය
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);
ප්රතිඵල සාමාන්ය මග පෙන්වීම සඳහා පමණක් ඇස්තමේන්තු, මූල්ය, වෛද්ය හෝ බදු උපදෙස් නොවේ.