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

EdgeRouter - DHCP Server Static Mapping

Overview

Readers will learn how to add a DHCP assigned Static Mapping to the DHCP server settings on the EdgeRouter.

NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.

Adding the DHCP Server and Static Mappings

Back to Top

topology.png

The EdgeRouter will be configured to issue a DHCP assigned Static Mapping to the UAP-Pro access point.

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>
Enable: Checked

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

3. The dynamic DHCP assigned address for a known client can be easily converted to a static mapping.

Services > DHCP Server > LAN1 > Actions > View Leases

4. Select the Map Static IP option for the dynamic lease that needs to converted to a static mapping.

5. Change the IP address to the new value (192.168.1.240 in this example) and optionally change the name.

6. Navigate to the Static MAC/IP Mapping tab to verify or alter the new mapping. 

7.   From this menu, it is also possible to pre-configure a static mapping if a host is not yet assigned a dynamic address. 

Static MAC/IP Mapping > Create New Mapping

ID: uap-pro
MAC Address: <mac-address>
IP Address:
192.168.1.240

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

set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping uap-pro ip-address 192.168.1.240
set service dhcp-server shared-network-name LAN1 subnet 192.168.1.0/24 static-mapping uap-pro mac-address <mac-address>
commit ; save

Related Articles

Back to Top

EdgeRouter - Beginners Guide to EdgeRouter

EdgeRouter - DHCP Server

EdgeRouter - DHCP Server Using Dnsmasq

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?