Subnet कैलकुलेटर और VLSM डिज़ाइनर
IPv4 नेटवर्क की योजना तेज़ी से बनाएं। नेटवर्क एड्रेस, ब्रॉडकास्ट, मास्क, होस्ट रेंज और एक पूरा variable-length subnet प्लान प्राप्त करें, सब कुछ अपने ब्राउज़र में।
एक Subnet की गणना करें या एक VLSM प्लान डिज़ाइन करें
192.168.1.0/24
32-Bit Binary Bitmask Breakdown
Every IPv4 address consists of 32 binary bits divided into 4 octets. The bitwise AND operation (IP AND Mask = Network) isolates the network ID from the host space:
Subnet Decomposition (Split /24 into 2x /25 Subnets)
Need to segment this network for guest isolation or separate VLANs? Borrowing 1 host bit divides 192.168.1.0/24 into two equal /25 subnets:
| Subnet CIDR | Usable Host Range | Broadcast Address | Usable Hosts | Action |
|---|---|---|---|---|
| 192.168.1.0/25 | 192.168.1.1 - 192.168.1.126 | 192.168.1.127 | 126 | |
| 192.168.1.128/25 | 192.168.1.129 - 192.168.1.254 | 192.168.1.255 | 126 |
Device CLI Configuration Generator
! Cisco IOS / Catalyst / Nexus Configuration ! VLAN Interface & DHCP Pool Definition interface Vlan100 description Purple-Managed Guest WiFi ip address 192.168.1.1 255.255.255.0 no shutdown exit ip dhcp excluded-address 192.168.1.1 ip dhcp pool GUEST_WIFI_POOL network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 1.1.1.1 8.8.8.8 lease 0 1 0 exit
subnetting अभी भी क्यों महत्वपूर्ण है
subnetting एक IP रेंज को छोटे, अलग-अलग नेटवर्क में विभाजित करता है ताकि आप गेस्ट, स्टाफ और IoT ट्रैफ़िक को अलग कर सकें, ब्रॉडकास्ट डोमेन को नियंत्रित कर सकें और एड्रेस स्पेस का कुशलतापूर्वक उपयोग कर सकें। यह कैलकुलेटर मल्टी-सेगमेंट डिज़ाइन के लिए सिंगल-subnet गणित और variable-length subnet masking (VLSM) दोनों को संभालता है।
यह टूल आपको क्या देता है
- किसी भी CIDR प्रीफिक्स के लिए नेटवर्क और ब्रॉडकास्ट एड्रेस, subnet मास्क, वाइल्डकार्ड मास्क और उपयोग करने योग्य होस्ट रेंज।
- एक VLSM आवंटन प्लान जो आवश्यक होस्ट संख्या के अनुसार प्रत्येक subnet में फिट बैठता है, सबसे बड़ा पहले, बिना किसी ओवरलैप के।
- तुरंत, निजी परिणाम। प्रत्येक गणना स्थानीय रूप से चलती है और सर्वर पर कुछ भी नहीं भेजा जाता है।
IPv4 CIDR Prefix, Subnet Mask, and Host Capacity Reference Table
Quick reference guide mapping CIDR prefix lengths (/1 to /32) to dotted-decimal subnet masks, wildcard masks, usable IP addresses, and common network engineering applications.
| CIDR | Subnet Mask | Wildcard Mask | Usable Hosts | Common Enterprise Use Case |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | Host route, loopback interface, single endpoint |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | Point-to-point router links (RFC 3021 standard) |
| /30 | 255.255.255.252 | 0.0.0.3 | 2 | Legacy point-to-point links (dedicated network/broadcast) |
| /29 | 255.255.255.248 | 0.0.0.7 | 6 | Small router links, firewall DMZ with static IPs |
| /28 | 255.255.255.240 | 0.0.0.15 | 14 | Server rack management subnet, lab environment |
| /27 | 255.255.255.224 | 0.0.0.31 | 30 | Small branch office, security camera / IoT VLAN |
| /26 | 255.255.255.192 | 0.0.0.63 | 62 | Departmental subnet (e.g. accounting, executives) |
| /25 | 255.255.255.128 | 0.0.0.127 | 126 | Medium department, secondary branch VLAN |
| /24 | 255.255.255.0 | 0.0.0.255 | 254 | Standard Class C LAN, default office subnet |
| /23 | 255.255.254.0 | 0.0.1.255 | 510 | Hotel guest WiFi, boutique venue, medium office |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,022 | Corporate campus VLAN, medium venue guest WiFi |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,046 | University student accommodation, large venue WiFi |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,094 | Stadium, convention centre, airport guest WiFi scope |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,190 | Metropolitan network, major transit hub infrastructure |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,382 | Large enterprise site aggregation, regional network |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,766 | Multi-campus enterprise block allocation |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,534 | Standard Class B supernet, private cloud VPC |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,574 | RFC 1918 172.16.0.0/12 private range block |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,214 | RFC 1918 10.0.0.0/8 private major network block |
High-density WiFi subnetting and DHCP scope best practices
Designing IP subnets for wireless venues differs fundamentally from wired switching architectures. Wireless devices share physical RF airtime. When a device sends an Address Resolution Protocol (ARP) broadcast or multicast packet, the wireless access point must retransmit that frame at low base data rates across all associated radios.
1. Limit broadcast domain sizes
Never deploy large flat /16 networks (65,534 hosts) on guest SSIDs without client isolation. A /22 (1,022 hosts) or /23 (510 hosts) subnet provides sufficient lease room while preventing excessive multicast airtime consumption.
2. Tune DHCP lease durations
In transient environments like retail malls, cafes, and stadiums, set DHCP lease times to 30 to 60 minutes. Long 24-hour leases cause scope exhaustion as transient visitors retain IP leases long after leaving the venue.
3. Enable wireless client isolation
Enabling AP client isolation prevents peer-to-peer device traffic on public subnets, blocking internal network scanning and mitigating malicious ARP poisoning attacks.
For student accommodation, multi-dwelling units (MDUs), and build-to-rent (BTR) communities, traditional VLAN-per-user architectures exhaust switch VLAN tables (limited to 4,094 VLANs). Learn how Purple uses Identity Pre-Shared Keys (iPSK) and RADIUS-backed dynamic isolation to give every resident a private personal area network on a single shared SSID.
Download the high-density WiFi architecture & DHCP sizing guide
Get our reference architecture guide for multi-vendor campus networks. Includes DHCP scope sizing templates for Cisco Meraki, HPE Aruba, Ruckus, and Juniper Mist, plus VLAN security checklists.
Related network engineering tools and technical guides
Multi-Tenant iPSK Subnet Designer →
Design resident subnets and DHCP pools for student housing and BTR developments.
Access Point Calculator →
Calculate required AP density and client capacity across indoor and outdoor venue areas.
Captive Portal Guide →
Comprehensive architectural guide to guest onboarding, walled gardens, and RADIUS integration.
Enterprise WiFi Security Guide →
Deep dive into 802.1X, WPA3-Enterprise, certificate-based staff authentication, and network isolation.
IP सबनेटिंग और CIDR के बारे में अक्सर पूछे जाने वाले प्रश्न
सबनेट मास्क और CIDR नोटेशन में क्या अंतर है?
एक सबनेट मास्क 32-बिट डॉटेड-डेसिमल नंबर (जैसे 255.255.255.0) होता है जो IP एड्रेस के नेटवर्क हिस्से को होस्ट हिस्से से अलग करता है। Classless Inter-Domain Routing (CIDR) नोटेशन इसी मास्क को एक स्लैश और उसके बाद लगातार आने वाले बाइनरी 1s की संख्या (जैसे /24) के रूप में दर्शाता है। CIDR ने लचीली नेटवर्क प्रीफिक्स लंबाई की अनुमति देने के लिए कठोर Class A, B और C सीमाओं को समाप्त कर दिया।
आप IPv4 सबनेट में उपयोग करने योग्य होस्ट एड्रेस की गणना कैसे करते हैं?
उपयोग करने योग्य IPv4 होस्ट का फॉर्मूला 2^(32 - prefix) - 2 है। RFC मानकों द्वारा दो एड्रेस आरक्षित हैं: पहला एड्रेस (सभी होस्ट बिट्स 0) Network ID है, और अंतिम एड्रेस (सभी होस्ट बिट्स 1) Directed Broadcast एड्रेस है। उदाहरण के लिए, एक /24 सबनेट में 32 - 24 = 8 होस्ट बिट्स होते हैं, जिससे 2^8 - 2 = 254 उपयोग करने योग्य होस्ट मिलते हैं। RFC 3021 के तहत पॉइंट-टू-पॉइंट /31 सबनेट और सिंगल-होस्ट /32 loopbacks ऐसे अपवाद हैं जो क्रमशः 2 और 1 उपयोग करने योग्य एड्रेस की अनुमति देते हैं।
गेस्ट WiFi और हाई-डेंसिटी वाले स्थानों के लिए किस सबनेट साइज की सिफारिश की जाती है?
स्टेडियम, होटल और रिटेल मॉल जैसे हाई-डेंसिटी गेस्ट WiFi वातावरण के लिए, कम DHCP लीज समय (जैसे 30 से 60 मिनट) के साथ /22 सबनेट (1,022 उपयोग करने योग्य लीज) या /20 सबनेट (4,094 उपयोग करने योग्य लीज) की सिफारिश की जाती है। यह DHCP स्कोप समाप्त होने से रोकता है, जबकि क्लाइंट आइसोलेशन वायरलेस नेटवर्क पर ARP ब्रॉडकास्ट स्टॉर्म को रोकता है।
Variable Length Subnet Masking (VLSM) क्या है और इसका उपयोग क्यों किया जाता है?
VLSM नेटवर्क इंजीनियरों को प्रत्येक सेगमेंट (जैसे POS टर्मिनल, कॉर्पोरेट वर्कस्टेशन, गेस्ट WiFi और राउटर लिंक) की विशिष्ट होस्ट आवश्यकताओं के आधार पर एक IP एड्रेस ब्लॉक को अलग-अलग आकार के सबनेट में विभाजित करने की अनुमति देता है। यह निश्चित-लंबाई (fixed-length) वाले सबनेटिंग की तुलना में एड्रेस स्पेस की बर्बादी को बचाता है।
हाई-डेंसिटी WiFi नेटवर्क को बड़े फ्लैट /16 सबनेट से क्यों बचना चाहिए?
फ्लैट /16 सबनेट 65,534 होस्ट तक के विशाल ब्रॉडकास्ट डोमेन बनाते हैं। वायरलेस नेटवर्क पर, ब्रॉडकास्ट और मल्टीकास्ट फ्रेम (जैसे ARP अनुरोध और mDNS) सभी एक्सेस पॉइंट्स पर कम लेगेसी डेटा दरों पर प्रसारित होते हैं, जिससे एयरटाइम की खपत होती है और थ्रूपुट कम हो जाता है। AP क्लाइंट आइसोलेशन के साथ छोटे /22 या /23 VLANs में विभाजित करने से एयरटाइम दक्षता बनी रहती है।
Purple एंटरप्राइज सबनेट और VLAN सेगमेंटेशन के साथ कैसे काम करता है?
Purple आपके एंटरप्राइज नेटवर्क इंफ्रास्ट्रक्चर (Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist और Fortinet) के साथ एकीकृत होता है ताकि हार्डवेयर रीकॉन्फ़िगरेशन की आवश्यकता के बिना क्लाउड कैप्टिव पोर्टल, RADIUS के माध्यम से डायनेमिक VLAN स्टीयरिंग और रेजिडेंट-आइसोलेटेड iPSK नेटवर्क प्रदान किए जा सकें।
Planning a venue network?
Subnetting is the foundation. Purple layers guest onboarding, captive portals, and location analytics on top of the network you design here, across Cisco Meraki, HPE Aruba, Ruckus, and Juniper Mist.
Book a 20-min demoNetforge Network Multi-Tool
Run offline network health checks, path analysis, and latency diagnostic scans directly from your desktop.
Download Multi-Tool