Subnet Calculator (IPv4 CIDR)
IPv4 ሙሉ የቅርብ መስመር ክፍፍል: ኔትወርክ, ብሮድካስት, ማሰሪያ, ቫይልድካርድ, ሆስት ክልል እና ቁጥር.
ውጤቶች እንደተጻፉ ይቀየራሉ
ስለዚህ መተግበሪያ
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 subnet has 2^(32−n) addresses, minus two reserved for the network and broadcast. A /24 has 256 addresses and 254 usable hosts.
ቫይደር ማሰሪያ ምንድን ነው?
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) በውስጡ ያለውን ሁሉንም ሆስት ያገኛል፤ ሁለቱም ለመሳሪያ ሊሰጣቸው አይችሉም
የሲዲአር መቀመጫ (/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.
ኔትወርክን ወደ ትናንሽ ሴክተሮች እንዴት እከፋፈል?
የሆስት ቢትዎችን በፕሪፊክስ በማሳደግ ይቀበሉ። /24ን በሁለት /25s መክፈል ሁለት የ126 ሆስቴቶችን ክፍሎች ይሰጣል፤ ወደ /26 መሄድ 62ን አራት ክፍሎች ይሰጣል። የተጨመረው የፕሪፊክስ ቢት ሁሉ የሱብኔት ቁጥርን ያደባለቃል እና መጠንን አራጋቢ ያደርገዋል።
IP አድራሻ ክፍል ምንድን ነው?
የቀድሞው የክፍል ሙሉ ስኬማ አድራሻዎች በመጀመሪያዎቹ ኦክቴቶች በኩል ይከፋፈላል: ክፍል A (1-126), ክፍል B (128-191) እና ክፍል C (192-223) ለዩኒካስት, ተጨማሪ D ለ ማይለካስት እና E የተጠበቀ. CIDR ክፍሎችን ለመስጠት ተለውጧል, ነገር ግን ቁጥጥር አሁንም አድራሻው ውስጥ የሚገባውን ክፍል ያሳያል.
/31 እና /32 የታችኛው ኔትወርኮች ምንድናቸው?
/31 ሁለት አድራሻዎች ብቻ እና ምንም ብሮድካስት አለው, በሮተሮች መካከል ለሚጠቀሙት የጥቅል-ወደ-ጥቅል ግንኙነቶች. /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);
ውጤቶች ለታዳሚው መመሪያ ብቻ ናቸው፣ የገንዘብ፣ የሕክምና ወይም የክፍያ ምክር አይደሉም፡፡