By default, MikroTik distributes dynamic IP addresses and other network settings to all clients using the Dynamic Host Configuration Protocol (DHCP) protocol.
Sometimes you need to configure your MikroTik router so that a certain device gets the same static IP address every time it connects to the network.
This note shows how to set the static IP address for a MikroTik’s DHCP client from a command-line (terminal) or Winbox/Webfig.
Cool Tip: How to create a static DNS entry on a MikroTik router! Read more →
Set Static IP for MikroTik’s DHCP Client
List clients connected to a MikroTik’s DHCP server:
[admin@MikroTik] > /ip dhcp-server lease print - sample output - Flags: D, B - BLOCKED Columns: ADDRESS, MAC-ADDRESS, HOST-NAME, SERVER, STATUS, LAST-SEEN # ADDRESS MAC-ADDRESS HOST-NAME SERVER STATUS LAST-SEEN 0 D 192.168.88.246 0E:20:XX:XX:XX:XX Galaxy-M51 defconf bound 9s 1 D 192.168.88.247 D0:C6:XX:XX:XX:XX hp-440g6 defconf bound 4m39s 2 D 192.168.88.254 DC:A6:XX:XX:XX:XX raspberrypi defconf bound 55s
To make an IP address of one of the DHCP clients static, execute:
[admin@MikroTik] > /ip dhcp-server lease make-static numbers=<lineNumber> - example - [admin@MikroTik] > /ip dhcp-server lease make-static numbers=2 [admin@MikroTik] > /ip dhcp-server lease print - sample output - Flags: D, B - BLOCKED Columns: ADDRESS, MAC-ADDRESS, HOST-NAME, SERVER, STATUS, LAST-SEEN # ADDRESS MAC-ADDRESS HOST-NAME SERVER STATUS LAST-SEEN 0 D 192.168.88.246 0E:20:XX:XX:XX:XX Galaxy-M51 defconf bound 48s 1 D 192.168.88.247 D0:C6:XX:XX:XX:XX hp-440g6 defconf bound 18s 2 192.168.88.254 DC:A6:XX:XX:XX:XX raspberrypi defconf bound 1m34s
Note that the flag ‘D’ (dynamic) for the record #2 is not showing anymore.
Cool Tip: Show devices connected to a MikroTik router! Read more →
To set the static IP for the DHCP client using Winbox/Winfig, go to “IP” → “DHCP Server”, select the “Leases” tab, double-click on one of the connected devices and click on the “Make Static” button:

If you close the pop-up windows and double-click on the record once again, in the new pop-up window you will see the additional options, for example you be able to change the assigned IP address.