Community discussions

MikroTik App
 
gfunkdave
newbie
Topic Author
Posts: 45
Joined: Tue Jan 09, 2018 12:05 am

DHCP server ignores a single static lease

Tue May 23, 2023 8:38 pm

I have a new RB5009 with several static DHCP leases configured. They all work fine, except for the one for the printer:
[david@MikroTik] /ip/dhcp-server/lease> export hide-sensitive
# may/23/2023 12:36:52 by RouterOS 7.9
# software id = U9U9-RERG
#
# model = RB5009UG+S+
/ip dhcp-server lease
add address=192.168.4.20 client-id=appletv mac-address=40:CB:C0:C6:31:9D
add address=192.168.4.90 client-id=inside-moca mac-address=D4:47:5A:00:74:3E
add address=192.168.4.30 client-id=office-sonos mac-address=38:42:0B:61:89:A6
add address=192.168.4.91 client-id=outside-moca mac-address=D4:47:5A:00:84:34
add address=192.168.4.10 client-id=pi mac-address=B8:27:EB:39:25:20
add address=192.168.4.11 client-id=pi-wifi mac-address=B8:27:EB:6C:70:75
add address=192.168.4.50 client-id=printer mac-address=CC:6B:1E:8E:86:BC
add address=192.168.4.5 client-id=zoidberg mac-address=D8:BB:C1:50:3B:DC
add address=192.168.4.6 client-id=zoidberg-wifi mac-address=7C:50:79:05:1F:77
I have disconnected/unplugged the printer several times. I've deleted the dynamic lease it gets. No matter what I do, it still comes back as 192.168.4.113.
[david@MikroTik] /ip/dhcp-server/lease> print where mac-address=CC:6B:1E:8E:86:BC
Flags: D, B - BLOCKED
Columns: ADDRESS, MAC-ADDRESS, HOST-NAME, SERVER
 #   ADDRESS        MAC-ADDRESS        HOST-NAME        SERVER
 6   192.168.4.50   CC:6B:1E:8E:86:BC
40 D 192.168.4.113  CC:6B:1E:8E:86:BC  BRWCC6B1E8E86BC  lan-dhcp-server
Does anyone know what else might be happening?
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: DHCP server ignores a single static lease  [SOLVED]

Tue May 23, 2023 8:45 pm

Did you create the static lease by allowing it to create a DHCP address and then converting that to a static, or did you manually create the static address from scratch? If the latter, likely the client ID does not match (which you did not show). Delete the static you created, and convert the DHCP assigned to static and modify the address to the desired address. Next time the printer renews the lease, the address should change to the desired address.
 
gfunkdave
newbie
Topic Author
Posts: 45
Joined: Tue Jan 09, 2018 12:05 am

Re: DHCP server ignores a single static lease

Tue May 23, 2023 8:54 pm

Aha, thanks! I knew it was something simple.

Who is online

Users browsing this forum: Ahrefs [Bot], onnyloh and 44 guests