Would you like to learn how to install a DHCP server on Opnsense?In this tutorial, we are going to show you all the steps required to perform the DHCP server configuration on an Opnsense server in 5 minutes or less.

• OPNsense 19.7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

OPNsense - DHCP Server Installation

Open a browser software, enter the IP address of your Opnsense firewall and access web interface.

In our example, the following URL was entered in the Browser:

• https://192.168.10.11

The opnsense web interface should be presented.

opnsense login

On the prompt screen, enter the OPNsense Default Password login information.

• Username: root
• Password: Password set during OPNsense the installation

After a successful login, you will be sent to the OPNSense Dashboard.

opnsense dashboard

Access the Opnsense Services menu, access the DHCPv4 sub-menu and select the desired network interface.

In our example, we selected the LAN interface.

opnsense dhcp server

On the DHCP Server screen, perform the following configuration:

• Enable - Yes
• Range from: 192.168.10.100
• Range to: 192.168.10.199

In our example, the DHCP server will offer IP addresses from 192.168.10.100 to 192.168.10.199.

opnsense dhcp server configuration

Locate the DNS servers area and perform the DNS configuration.

Optionally, you may do additional DHCP server configurations.

dhcp server opnsense

In our example, the DHCP server will offer DNS servers 8.8.8.8 and 8.8.4.4.

Click on the Save button to start the DHCP service.

Access the Opnsense System menu, access the Diagnostics sub-menu and select the Services option

opnsense services

In our example, the OPNsense DHCP service is up and running.

opnsense dhcp service

Congratulations! You have finished the DHCP server installation on OPNsense.