Antpact Toolbox
中文
Home › Blog › Network Tools › CIDR Subnet Calculator Tutorial: Plan VLANs and Isolate Your OT Network Online
Network Tools

CIDR Subnet Calculator Tutorial: Plan VLANs and Isolate Your OT Network Online

Sep 27, 2026 · 51 views · By Antpact Toolbox Team #CIDR calculator #subnetting #VLAN #OT network segmentation #PLC security #network tool

A recent advisory pushed "OT network segmentation" back into the spotlight: multiple agencies warned that AI-generated scripts are actively scanning internet-exposed PLCs such as Siemens S7 and Rockwell MicroLogix, with dozens of water systems breached in just 48 hours. For plants and integrators, the first and cheapest line of defense is not a new firewall—it is getting your subnets right: which devices belong in the same subnet, and which must be fully isolated. This tutorial uses the online CIDR calculator on AntPact to walk you through subnetting and VLAN planning, truly separating the OT (operational technology) network from the IT (office) network.

1. Why "getting the subnet right" is step one for OT security

Most OT breaches do not start with a sophisticated zero-day; they start with "this device should never have been in that segment." Once PLCs, HMIs, and SCADA share one big layer-2 network with office PCs, ransomware or a scanner that lands on a single laptop can reach the production controllers directly. Subnetting is fundamentally about shrinking the attack surface:

<ul> <li><b>Smaller surface, lower scan odds.</b>A /24 has only 254 addresses—far harder to sweep than a /16 with tens of thousands.</li> <li><b>IT and OT in one segment = wiring the plant to the office LAN.</b>Any one vulnerability in email, chat, or a browser becomes a stepping stone to the line.</li> <li><b>Compliance demands zoning.</b>IEC 62443 explicitly recommends "zone and conduit"; subnetting is what makes it real.</li> </ul>

2. CIDR in 5 minutes: subnet mask, broadcast address, usable range

CIDR writes a network as "slash + number", e.g. 192.168.10.0/24. The 24 is the prefix length: the first 24 bits are the network, the remaining 8 bits are for hosts, so the block holds 256 addresses and 254 usable. Three concepts matter:

<ul> <li><b>Subnet mask:</b>the boundary between network and host bits; /24 maps to 255.255.255.0.</li> <li><b>Network and broadcast addresses:</b>the lowest address is the network address, the highest is the broadcast address; neither can be assigned to a device.</li> <li><b>Usable IP range:</b>every address before the broadcast minus one is a real address you can give to a PLC or HMI.</li> </ul> <p>Doing this by hand is error-prone—especially when you split a /22 into four production lines and reserve management addresses for each. Let the calculator do it.</p>

3. Hands-on: carve an OT subnet with the online CIDR calculator

Open the AntPact CIDR Calculator(https://antpact.com/network/net-cidr/) and follow along:

<ol> <li>Enter the example OT block <code>192.168.10.0/24</code>.</li> <li>Hit calculate and instantly get the subnet mask <code>255.255.255.0</code>, network address <code>192.168.10.0</code>, broadcast <code>192.168.10.255</code>, and usable range <code>192.168.10.1 – 192.168.10.254</code>.</li> <li>To split into two independent lines, change the prefix to <code>/25</code>; the calculator returns two non-overlapping blocks: <code>192.168.10.0/25</code> and <code>192.168.10.128/25</code>.</li> <li>Put HMIs in one block, PLCs in another, SCADA/historian in a third, and open only the ports you must between them.</li> <li>Export or screenshot the result as the draft of your VLAN table and hand it to the switch config.</li> </ol>

4. VLAN and subnet pitfalls to avoid

<ul> <li><b>Three-tier separation:</b>management, control, and device networks each get their own VLAN; do not mix them in one broadcast domain.</li> <li><b>OT blocks default-deny to the internet:</b>if remote maintenance is truly needed, use VPN + source allow-listing instead of port-forwarding PLC port 502 to the public internet.</li> <li><b>Close doors you forgot open:</b>use the common ports lookup(https://antpact.com/network/net-ports/) to audit open ports on your router and servers, and shut the unnecessary ones.</li> <li><b>Know your real exit:</b>use the IP lookup(https://antpact.com/network/net-ip-query/) to see your actual public egress so you do not mistakenly believe "we are internal" when a bridge already exposes you.</li> </ul>

5. Computed locally, never uploaded

AntPact's CIDR calculator runs entirely in your browser. The subnets, topology, and plans you enter are never uploaded to any server—important for industrial settings, where site addressing itself is sensitive information you should not hand to a third-party site.

Hand your subnet planning to the AntPact CIDR Calculator(https://antpact.com/network/net-cidr/) and produce a deployable VLAN table in minutes. More network tools—port lookup, IP lookup, User-Agent parser—are collected in the AntPact Network Toolkit(https://antpact.com/network/), all processed locally with no uploads.

← Back to blog