Network

VLAN Calculator

Generate a VLAN addressing plan: IDs, names, sized subnets, masks, gateways and usable host ranges.

How it works

A VLAN logically segments a switched network: each VLAN forms a distinct broadcast domain and usually receives its own IP subnet. Frames are tagged 802.1Q between switches (trunk).

Best practice: size each VLAN subnet according to the real number of endpoints with a margin (25%), reserve the first host for the gateway, and document the VLAN ↔ subnet mapping. The tool relies on a best-fit algorithm to limit address waste.

Examples

Typical SMB

Four VLANs sized to the nearest fit.

base10.20.0.0/16
vlans10, ADMIN, 50 20, WIFI, 200 30, SERVEURS, 20 99, MANAGEMENT, 10
gateway_offset1
Load this example

No specific requirement

Automatic even distribution.

base192.168.0.0/22
vlans1, LAN 2, VOIX 3, IOT
gateway_offset1
Load this example

Frequently asked questions

How do you size a VLAN?

Count the number of endpoints, add a growth margin of 20 to 25%, plus 2 for the network and broadcast, then round up to the next power of 2.

Why VLAN 99 for management?

It is common to reserve a dedicated VLAN for device administration, isolated from user traffic.

Do VLANs have to be contiguous?

No, but using consistent ID blocks (10-19 workstations, 20-29 WiFi…) makes operations easier.