OpenWRT - Adding DHCP Entry

  1. SSH to Server

  2. Edit /etc/config/dhcp

  3. Use the following template to add entry in the correct location (Ordered by IP):

# Template:
config host
        option mac 'MAC Address'
        option name 'Server Name'
        option dns '1'
        option ip 'IP Address'

# Example:
config host
        option mac '84:F5:A1:21:E6:17'
        option name 'Server-01'
        option dns '1'
        option ip '192.168.1.20'

Note: No restart is required, this updates in real time, but if you need the devices to reconnect to the router probably a restart is appropriate and easy.

Last updated