How To Add DHCP Static Map in Edgerouter

EdgeRouter uses ISC DHCP server by default.

Check the current configuration

ubnt@ubnt:~$ configure
[edit]
ubnt@ubnt# show service dhcp-server
 disabled false
 hostfile-update disable
 shared-network-name LAN {
     authoritative enable
     subnet 192.168.1.0/24 {
         default-router 192.168.1.1
         dns-server 1.1.1.1
         lease 86400
         start 192.168.1.38 {
             stop 192.168.1.243
         }
     }
 }
 static-arp disable
 use-dnsmasq disable
[edit]

Edit config

ubnt@ubnt# edit service dhcp-server shared-network-name LAN subnet 192.168.1.0/24
[edit service dhcp-server shared-network-name LAN subnet 192.168.1.0/24]

We are going to add a static entry for my second router which has IP address 192.168.1.1 and MAC address 30:23:03:c5:0e:ae

If you don’t know the mac address of the device that is already connected to the network, you can use show dhcp leases command inside edgerouter shell.