Guide

Set up DHCP for a VLAN

Client devices get their address from pfSense. They must be handed the domain controllers as DNS servers, not the firewall.

5 minutesIn the pfSense admin page
What improves

Devices on a VLAN get an address and the right DNS servers automatically.

Why it matters

A device handed the firewall as its DNS server cannot find the domain or sign in.

How you do it

Turn on DHCP for the VLAN and set the domain controllers as its DNS servers.

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

WhereServices›DHCP Server›CON_VLAN50_CLIENTS
FieldSet it to
EnableTicked
Address pool range10.0.50.100 to 10.0.50.200
DNS servers10.0.20.10 and 10.0.20.11
Gateway10.0.50.1
Domain namead.contoso.com
Domain search listad.contoso.com
DNS must be the domain controllers

A domain-joined PC that uses the firewall for DNS cannot find the domain. Joining and signing in both fail.

Servers and domain controllers keep static addresses, so they need no DHCP scope.

Check the DHCP backend

WhereSystem›Advanced›Networking›DHCP Options

Choose Kea DHCP. If you switch from ISC to Kea, the address pools do not copy across. Type each range in again, or clients stop getting addresses.

Lease times

FieldSet it toWhy
Default lease time7200 seconds (2 hours)Suits laptops that come and go
Maximum lease time86400 seconds (1 day)Stops a device holding an address for weeks

Plan the addresses

RangeUse
.1 to .99The gateway and anything with a fixed address
.100 to .200The DHCP pool
.201 to .254Spare

Check it works

A client PC
ipconfig /release
ipconfig /renew
ipconfig /all    # address in the pool, DNS 10.0.20.10 and 10.0.20.11
On the firewallStatus›DHCP Leases

The PC should be listed with its name and address.

Done when

Check

A client gets an address from the pool with the domain controllers as its DNS servers, and appears under DHCP Leases.

Your progress is kept in this browser only.