How to set up static DHCP reservations in WinBox

  1. Go to IP, then DHCP-Server
  2. Click on Leases
  3. Click the line that shows the IP address of the device you would like to make a DHCP Reservation for
    1. At this point you will be looking in the Active Address column, near the middle
  4. Click Make Static at the top of the window
  5. The Address and MAC Address columns will populate
  6. Double-click the device you are working on
  7. In Address, enter the permanent IP address you would like the device to have – an address outside of the DHCP range
  8. Click Comment and enter a description for the device.  e.g. “front yard IP camera”
  9. Click OK.
  10. At this point the device still has the OLD IP address that it got when it was first plugged in.
  11. Do whatever steps necessary to force the device to grab the new DHCP address.  This could be a reboot, pulling the network cable and plugging it back in, clicking Repair on the network connection on a PC, etc.
  12. The device should grab the new DHCP address.

This is how a standard DHCP lease looks:

This is what a standard DHCP lease looks like

Double-click it and open that DHCP Lease’s window.  When you click “Make Static”, the main DHCP Server window will update, but the DHCP Lease window will NOT update. You have to close it and reopen it to see the “General” tab. (see pic below)

Double-click that DHCP lease to open this window, and hit Make Static

DHCP Lease window after Make Static

In the Address field on the General tab, you can type in the permanent static DHCP address you would like the device to have.  (Ideally outside your DHCP Pool so the same address doesn’t get handed out twice.)  It will not change immediately – the device will grab the new IP the next time it goes to renew its DHCP lease. You can normally force this to happen by rebooting the device or unplugging the network cable and plugging it back in.

This is what a static DHCP reservation looks like

The Address is the static DHCP reservation.  The Active Address is what the device currently has.  After a reboot/dhcp refresh the Active Address will change to what is in the Address field.  Add a Comment to make your life easier and you’re done.

Semipro tip: I sometimes enter a static DHCP reservation for devices that have a hard-coded static IP address. Even though the DHCP reservation will never be ‘active’, it will be in the list with all the DHCP devices and it’s a great reminder that “Oh yeah, I do have a device at 192.168.1.248 that I forgot about.”

Tagged:

Comments

  1. TAS

    Hi, thanks for this very helpful. Three quick questions –

    1. Are you showing two different ways to get this done above? Sorry I am a newbie…. It looks like after step 12 you are showing a way to do it by double clicking the IP itself – true?

    2. Is it necessary to choose an address for a device that outside the pool? What is the likelihood the server would hand out the same address?

    3. Even when I hit make static, how come the “expires after” timer is still counting down? Is that the way it works or am I doing something wrong.

    Thanks in advance – and thanks for your help.

    1. admin Article Author

      1 – No it’s all the same way, but yes you can double-click the DHCP address to open that window, then click Make Static from there. You can also click Make Static with it just highlighted, it doesn’t really make a difference.
      2 – That’s just a “best practice.” I don’t know that a Mikrotik would have trouble with issuing the same address twice, but some lesser (consumer grade) routers do goofy things like that.
      3 – Because the device is still running DHCP, which inherently has a Lease Time. When the lease expires, the device will request a new DHCP address from the router. In this case, the Mikrotik will just hand it the same address again. Actually I believe the device will attempt to renew the same address at halfway through the lease time, and will request a new address at the end of the lease time if it’s not renewed. In theory you could set your devices with DHCP reservations to a really long lease time as to cut down on the traffic for requesting new addresses, but I can’t say I’ve actually ever needed to do that.

      Hope that helps!

Leave a Reply

Your email address will not be published. Required fields are marked *


− 2 = six

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting