Calcolatore di subnet e progettazione VLSM
Pianifica le reti IPv4 rapidamente. Ottieni l'indirizzo di rete, il broadcast, la maschera, l'intervallo di host e un piano di subnet a lunghezza variabile completo, tutto nel tuo browser.
Calcola una subnet o progetta un piano 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
Perché il subnetting è ancora importante
Il subnetting suddivide un intervallo IP in reti più piccole e isolate per separare il traffico di ospiti, personale e IoT, controllare i domini di broadcast e utilizzare lo spazio di indirizzamento in modo efficiente. Questo calcolatore gestisce sia i calcoli per singola subnet sia la mascheratura di subnet a lunghezza variabile (VLSM) per progetti multi-segmento.
Cosa ti offre questo strumento
- Indirizzi di rete e di broadcast, subnet mask, wildcard mask e intervallo di host utilizzabili per qualsiasi prefisso CIDR.
- Un piano di allocazione VLSM che si adatta a ciascuna subnet in base al numero di host richiesti, partendo dal più grande, senza sovrapposizioni.
- Risultati istantanei e privati. Ogni calcolo viene eseguito localmente e nessun dato viene inviato a un server.
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.
Domande frequenti su subnetting IP e CIDR
Qual è la differenza tra una subnet mask e la notazione CIDR?
Una subnet mask è un numero decimale puntato a 32 bit (ad es. 255.255.255.0) che separa la parte di rete di un indirizzo IP dalla parte host. La notazione Classless Inter-Domain Routing (CIDR) rappresenta la stessa maschera con una barra seguita dal numero di 1 binari iniziali consecutivi (ad es. /24). Il CIDR ha eliminato i rigidi confini delle classi A, B e C per consentire lunghezze flessibili dei prefissi di rete.
Come si calcolano gli indirizzi host utilizzabili in una subnet IPv4?
La formula per gli host IPv4 utilizzabili è 2^(32 - prefisso) - 2. Due indirizzi sono riservati dagli standard RFC: il primo indirizzo (tutti i bit host a 0) è l'ID di rete, mentre l'ultimo indirizzo (tutti i bit host a 1) è l'indirizzo di broadcast diretto. Ad esempio, una subnet /24 ha 32 - 24 = 8 bit host, producendo 2^8 - 2 = 254 host utilizzabili. Le subnet punto-punto /31 secondo la specifica RFC 3021 e i loopback a host singolo /32 rappresentano eccezioni che consentono rispettivamente 2 e 1 indirizzi utilizzabili.
Quale dimensione della subnet è consigliata per il WiFi per ospiti e per le sedi ad alta densità?
Per ambienti con WiFi per ospiti ad alta densità come stadi, hotel e centri commerciali, si consiglia una subnet /22 (1.022 lease utilizzabili) o una subnet /20 (4.094 lease utilizzabili) insieme a un tempo di lease DHCP breve (ad esempio da 30 a 60 minuti). Ciò previene l'esaurimento dello scope DHCP, mentre l'isolamento dei client evita tempeste di broadcast ARP nella rete wireless.
Che cos'è il Variable Length Subnet Masking (VLSM) e perché viene utilizzato?
Il VLSM consente agli ingegneri di rete di suddividere un blocco di indirizzi IP in subnet di varie dimensioni in base ai requisiti host specifici di ciascun segmento (come terminali POS, workstation aziendali, WiFi per ospiti e collegamenti router). Ciò evita lo spreco di spazio di indirizzamento rispetto al subnetting a lunghezza fissa.
Perché le reti WiFi ad alta densità dovrebbero evitare subnet flat /16 di grandi dimensioni?
Le subnet flat /16 creano enormi domini di broadcast con un massimo di 65.534 host. Sulle reti wireless, i frame broadcast e multicast (come le richieste ARP e mDNS) vengono trasmessi a basse velocità di trasmissione legacy su tutti gli access point, consumando tempo di trasmissione (airtime) e riducendo il throughput. La segmentazione in VLAN /22 o /23 più piccole con isolamento dei client AP mantiene l'efficienza dell'airtime.
In che modo Purple funziona con le subnet aziendali e la segmentazione VLAN?
Purple si integra con la tua infrastruttura di rete aziendale (Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist e Fortinet) per offrire portali captive cloud, instradamento VLAN dinamico tramite RADIUS e reti iPSK isolate per i residenti senza richiedere la riconfigurazione dell'hardware.
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