EdgeRouter - DHCP Server


Readers will learn how to configure the EdgeRouter as a DHCP server.

Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
Devices used in this article:

Manually Configuring the DHCP Service

Back to Top


The EdgeRouter will be configured to issue DHCP assigned IP addresses in the range.

The Basic Setup wizard will automatically configure the LAN DHCP server. See the Beginners Guide to EdgeRouter article for more information.

When not using the wizard, follow the steps below to manually add a DHCP server:

GUI: Access the EdgeRouter Web UI.

1. Navigate to the Services tab to add a DHCP server.

Services > DHCP Server > + Add DHCP Server

2. Define the DHCP parameters such as the subnet range and DNS servers.

Range Start:
Range Stop:
DNS2: <blank>
UniFi Application: <blank>
Enable: Checked
NOTE:The UniFi Application option allows UniFi devices to automatically discover the location of the UniFi Network application.
See the UniFi Network Application DHCP Options article for more information.

2. After the server has been created, it will appear in the list in the DHCP Server tab.

3. View the details of the DHCP server to modify the DHCP settings.

Services > DHCP Server > Actions > View Details

4. In this menu, the DHCP Lease Time and Domain values can also be modified.

Domain: <blank>
Lease Time: 86400

The above configuration can also be set using the CLI:

CLI: Access the Command Line Interface.You can do this using the CLI button in the GUI or by using a program such as PuTTY.
set service dhcp-server disabled false
set service dhcp-server shared-network-name LAN1 authoritative enable
set service dhcp-server shared-network-name LAN1 subnet default-router
set service dhcp-server shared-network-name LAN1 subnet dns-server
set service dhcp-server shared-network-name LAN1 subnet lease 86400
set service dhcp-server shared-network-name LAN1 subnet start stop
commit ; save

Related Articles

Back to Top

EdgeRouter - DHCP Server Using Dnsmasq

EdgeRouter - Custom DHCP Server Options

EdgeRouter - DNS Forwarding Setup and Options

EdgeSwitch - DHCP Server

EdgeRouter - UniFi Network Application DHCP Options

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?
74 out of 142 found this helpful