Overview

Create VLANs

On one flat network, a pupil laptop can reach the domain controllers directly. VLANs split one switch into separate networks, and pfSense decides what may pass between them.

5 minute readFor IT technicians and network managersReviewed 15 November 2026
What improves

Pupil devices, servers and domain controllers sit on separate networks.

Why it matters

On one flat network a pupil laptop can reach the domain controllers directly.

How you do it

Turn the firewall's LAN card into a trunk, then create each VLAN and its interface in pfSense.

Every name, address and value in this guide is an example. Replace them with your own.

What you will have at the end

VLANNetworkSubnetGatewayWhat lives there
10Management10.0.10.0/2410.0.10.1Firewall admin page, Hyper-V host
20Domain controllers10.0.20.0/2410.0.20.1CON-DC-01, CON-DC-02
30Servers10.0.30.0/2410.0.30.1Sync, file and print servers
40Monitoring10.0.40.0/2410.0.40.1Empty until you add a monitoring tool
50Clients10.0.50.0/2410.0.50.1Staff and pupil devices, by DHCP

The VLAN number matches the third number of the address, so 10.0.20.x is always VLAN 20.

The route

  1. Trunk the firewall's LAN card

    One card carries all five VLANs.

  2. Create the VLANs in pfSense

    Five VLANs, five interfaces.

  3. Set up DHCP for a VLAN

    Clients get addresses and the DCs as DNS.

  4. Move one client first

    Prove it works before touching servers.

  5. Move the servers

    Domain controllers one at a time.

  6. Move the host and retire the old LAN
No downtime if you keep the order

The old flat network keeps working until the last step. Machines move across one at a time, and each is checked before the next.

Before you start

  • Download a pfSense configuration backup.
  • Add every new subnet to Active Directory Sites and Services, so devices find a domain controller after they move.
A domain controller
$site = (Get-ADReplicationSite).Name
10,20,30,40,50 | ForEach-Object { New-ADReplicationSubnet -Name "10.0.$_.0/24" -Site $site -Description "VLAN $_" }
Your progress is kept in this browser only.