ઉપનેટ ગણકયંત્ર (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.
વારંવાર પૂછાતા પ્રશ્નો
ઉપનેટવર્કમાં કેટલાં યજમાન છે?
/n ઉપનેટ પાસે ૨^(૩૨−n) સરનામાં છે, નેટવર્ક અને બ્રોડકાસ્ટ માટે બચાવેલ બેને ઘટાડી. /૨૪ પાસે ૨૫૬ સરનામાં અને ૨૫૪ વપરાશકર્તા યજમાન છે.
વાઇલ્ડકાર્ડ માસ્ક શું છે?
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.
નેટવર્ક અને બ્રોડકાસ્ટ સરનામા વચ્ચે શું તફાવત છે?
નેટવર્ક સરનામું (બધા યજમાન બીટ ૦) ઉપનેટવર્કનું નામ આપે છે; બ્રોડકાસ્ટ સરનામું (બધા યજમાન બીટ ૧) તેના પરના દરેક યજમાનને પહોંચે છે. કોઈપણ ઉપકરણને સોંપી શકાતુ નથી.
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.
હું નેટવર્કને નાની ઉપનેટવર્કોમાં કેવી રીતે વહેંચું?
પૂર્વગને વધારીને યજમાન બીટ્સ ઉધાર લો. /24 ને બે /25s માં વિભાજીત કરવાથી 126 યજમાનોના બે બ્લોક મળે છે; /26 માં જતા 62 ના ચાર બ્લોક મળે છે. દરેક ઉમેરાયેલ પૂર્વગ બીટ સબનેટની સંખ્યા બમણી કરે છે અને તેમનું માપ અડધું કરે છે.
IP સરનામાં વર્ગ શું છે?
જૂની વર્ગભૂખી યોજના તેમના પ્રથમ ઓક્ટેટ દ્વારા સરનામાંઓને વિભાજીત કરે છે: વર્ગ A (1-126), વર્ગ B (128-191) અને વર્ગ C (192-223) unicast માટે, અને D multicast માટે અને E સંગ્રહાયેલ. CIDR એ ફાળવણી માટે વર્ગોને બદલ્યા, પરંતુ ગણકયંત્ર હજુ પણ વર્ગનો અહેવાલ આપે છે કે સરનામું તેમાં પડે છે.
/31 અને /32 ઉપનેટવર્કો માટે શું વપરાય છે?
A /31 પાસે ફક્ત બે સરનામાં છે અને કોઈ બ્રોડકાસ્ટ નથી, રાઉટરો વચ્ચે પોઈન્ટ-ટુ-પોઈન્ટ કડીઓ માટે વપરાય છે. A /32 એ એક જ યજમાન સરનામું છે, loopbacks અને યજમાન માર્ગો માટે સામાન્ય છે. ગણકયંત્ર બંને વિશેષ કેસોને સંભાળે છે.
API — કોડમાંથી આ ગણકયંત્ર વાપરો
આ ગણકયંત્રને મુક્ત JSON અંતિમબિંદુ તરીકે બોલાવો - કોઈ કી જરૂરી નથી. નીચેના ક્ષેત્ર કિંમતોને પ્રશ્ન પરિમાણો અથવા JSON તરીકે મોકલો. તમે જે કંઈ પણ છોડી દો છો તે એ જ મૂળભૂત વાપરે છે જે આ પાનું સાથે પહેલાથી ભરેલું છે; અજ્ઞાત પરિમાણ ૪૦૦ છે, કદી શૂન્ય શૂન્ય નથી. સંપૂર્ણ 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);
પરિણામો સામાન્ય માર્ગદર્શન માટે જ અંદાજિત છે, નાણાકીય, તબીબી અથવા કરવેરા સલાહ માટે નહીં.