OPNsense DHCP Configuration

Configure and validate DHCP scopes for each VLAN to ensure proper client addressing.

Tools Used

Steps Taken

  1. Enabled DHCP service under Services → DHCPv4 for each VLAN interface.
  2. Defined lease ranges (e.g., 192.168.10.50 – 192.168.10.200 for VLAN 10).
  3. Set the correct gateway (interface IP, e.g., 192.168.10.1).
  4. Configured DNS servers (OPNsense resolver or external like 8.8.8.8).
  5. Added optional static mappings for servers and management devices.
  6. Applied changes and restarted DHCP service.
  7. Validated by connecting a client to each VLAN and confirming lease acquisition.

Screenshot: DHCP Scope (VLAN 10)

DHCP scope for VLAN 10
Click to view full-size: DHCP scope configured for VLAN 10.

Screenshot: DHCP Overview

DHCP overview showing all scopes
Click to view full-size: Overview of all DHCP scopes across VLANs.

Screenshot: Lease Table

DHCP lease table
Click to view full-size: Successful lease pulled by a client device.

Outcome

Each VLAN now has an active DHCP scope with correct gateway, DNS, and lease ranges. Clients successfully pull leases and appear in the DHCP lease table with proper addressing. This confirms that all VLANs are usable and ready for further network services.