Help Center Help Articles Professional Support Community RMA & Warranty Downloads Tech Specs

EdgeRouter - DHCP Server

Overview

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

NOTES & REQUIREMENTS:
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

topology.png

The EdgeRouter will be configured to issue DHCP assigned IP addresses in the 192.168.1.0/24 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.

DHCP Name: LAN1
Subnet: 192.168.1.0/24
Range Start: 192.168.1.38
Range Stop: 192.168.1.243
Router: 192.168.1.1
DNS1: 192.168.1.1
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.
configure
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 192.168.1.0/24 default-router 192.168.1.1
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 dns-server 192.168.1.1
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 lease 86400
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 start 192.168.1.38 stop 192.168.1.243
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?
75 out of 146 found this helpful