Practical lab · Networks

IP subnet planner

Work out a subnet from its CIDR, count usable hosts and carve camera VLANs out of an address block.

Simulation — not real hardware

Simulation — not real hardware. Results are planning estimates from the formulas shown; real equipment, cabling and firmware differ. Check datasheets and site conditions before you buy or install.

What this lab covers

An IPv4 address with a prefix (CIDR notation, such as 192.168.10.0/24) says how many leading bits identify the network. The rest identify hosts. The first address is the network, the last is broadcast, and the ones between are usable — except a /31 (two addresses, used for point-to-point links per RFC 3021) and a /32 (one host).

Putting cameras on their own VLAN and subnet keeps their multicast and bulk video away from office traffic and lets a firewall decide who may reach them. Size each camera subnet for the cameras, a gateway and the recorder, plus room to grow (20 % here).

Worked example

192.168.10.0/24: mask 255.255.255.0, network 192.168.10.0, broadcast 192.168.10.255.

Usable 192.168.10.1 – 192.168.10.254 = 28 − 2 = 254 hosts.

48 cameras need (48 + 2) × 1.2 = 60 addresses, so a /26 (62 usable) is the smallest fit.

Try it

For example 10.20.0.0/22 or 192.168.1.0/24.
Camera groups (one VLAN each)
Following ids step by 10. These are suggestions; use your site's VLAN plan.

The block

Network
10.20.0.0/22
Subnet mask
255.255.252.0
Wildcard
0.0.3.255
Broadcast
10.20.3.255
Usable range
10.20.0.1 – 10.20.3.254
Usable hosts
1,022 of 1,024 addresses

Suggested camera VLANs

VLANGroupSubnetGatewayNeed / usable
110Building A cameras (48)10.20.1.0/2610.20.1.160 / 62
120Car park cameras (150)10.20.0.0/2410.20.0.1183 / 254

704 addresses left in the block for future VLANs. Largest subnets are placed first so each starts on its own boundary.

Progress is kept only in this browser.All labsNext: Camera bitrate & bandwidth

Talk to an engineer

Not sure which service fits?

Tell us what you are working on. A Foxnet engineer will point you to the right session, book or request — or tell you honestly if you do not need one.