Page 1 of 1

DHCP Static Assigned IP Issue

Posted: Fri Aug 31, 2018 9:39 am
by jacksony
Hi,

We have switched from Ubiquiti to MikroTik and so far, so good.

However there is one problem which we find it very strange and we need to know the best and easiest solution for this.

We have DHCP running, eg. 192.168.1.1/24.

What we want to do is to bind some devices like a printer to a fixed static DHCP IP, example 192.168.1.2.

We have set the static IP onto the printer (192.168.1.2).

However we noticed for all devices which we have set the static DHCP IP for, it will NOT show up in the DHCP Server (under leases).

When we tried to manually add a lease for it by adding the IP with its MAC Address, it is always having the "waiting" status.

The reason why we want these static assigned dhcp IP to appear on the "Leases" list is so that we can right click to make it "Static" so it will not be dynamically assigned other IPs.

Can you advise how we can resolve this issue?

Re: DHCP Static Assigned IP Issue

Posted: Fri Aug 31, 2018 12:20 pm
by pukkita
However we noticed for all devices which we have set the static DHCP IP for, it will NOT show up in the DHCP Server (under leases).

When we tried to manually add a lease for it by adding the IP with its MAC Address, it is always having the "waiting" status.

DHCP Server will inspect the ARP table for IPs being already used in the network (as those statically set up on other network devices), prior to handing them, that's why it won't assign any IP from the pool, doesn't matter if static or dynamic lease, it won't happen.

What we want to do is to bind some devices like a printer to a fixed static DHCP IP, example 192.168.1.2.

Proper method:
  1. Set all those network devices to DHCP
  2. Go to IP > DHCP Server | Leases tab. Devices that got an IP assigned will appear on Leases as Dynamic entries (D flag), bound state
  3. Locate those devices you want to have a fixed IP assigned always, i.e. the printer: right click -> Make Static
  4. Double click on the just created static lease (no D in front) and edit the IP, comment, etc.

This way DHCP Server will assign same fixed IP each time a given device asks for one.

This is also best practice: you control all the network devices from a single point, the router. No need to run after printers or PCs, ask for remote access, etc.

Re: DHCP Static Assigned IP Issue

Posted: Fri Aug 31, 2018 2:41 pm
by mkx
What we want to do is to bind some devices like a printer to a fixed static DHCP IP, example 192.168.1.2.

We have set the static IP onto the printer (192.168.1.2).

However we noticed for all devices which we have set the static DHCP IP for, it will NOT show up in the DHCP Server (under leases).
By setting printer with static IP address you actually switched off DHCP client on it. So it's just normal that DHCP server doesn't notice printer requesting IP address as it doesn't happen.

Instead you should do as @pukkita wrote: set printer to use dynamic address (enable DHCP) and then make binding for individual devices static.

Re: DHCP Static Assigned IP Issue  [SOLVED]

Posted: Mon Sep 03, 2018 3:18 am
by jacksony
Thanks. It is resolved.