EdgeRouter - DHCP Server
Overview
Readers will learn how to configure the EdgeRouter as a DHCP server.
Manually Configuring the DHCP Service
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:
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
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:
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
EdgeRouter - DHCP Server Using Dnsmasq
EdgeRouter - Custom DHCP Server Options
EdgeRouter - DNS Forwarding Setup and Options
EdgeRouter - UniFi Network Application DHCP Options
Intro to Networking - How to Establish a Connection Using SSH