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.
Pupil devices, servers and domain controllers sit on separate networks.
On one flat network a pupil laptop can reach the domain controllers directly.
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
| VLAN | Network | Subnet | Gateway | What lives there |
|---|---|---|---|---|
| 10 | Management | 10.0.10.0/24 | 10.0.10.1 | Firewall admin page, Hyper-V host |
| 20 | Domain controllers | 10.0.20.0/24 | 10.0.20.1 | CON-DC-01, CON-DC-02 |
| 30 | Servers | 10.0.30.0/24 | 10.0.30.1 | Sync, file and print servers |
| 40 | Monitoring | 10.0.40.0/24 | 10.0.40.1 | Empty until you add a monitoring tool |
| 50 | Clients | 10.0.50.0/24 | 10.0.50.1 | Staff 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
- Trunk the firewall's LAN card
One card carries all five VLANs.
- Create the VLANs in pfSense
Five VLANs, five interfaces.
- Set up DHCP for a VLAN
Clients get addresses and the DCs as DNS.
- Move one client first
Prove it works before touching servers.
- Move the servers
Domain controllers one at a time.
- Move the host and retire the old LAN
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.
$site = (Get-ADReplicationSite).Name
10,20,30,40,50 | ForEach-Object { New-ADReplicationSubnet -Name "10.0.$_.0/24" -Site $site -Description "VLAN $_" }

