17.4.1 APPLE iOS cannot be static in DHCP

iOS 17.4.1, tried with 3 separate devices

If I try to either convert existing lease to static OR create brand new entry (it does not matter if MAC is real or Private WiFi Address) the behaviour is always the same
In DHCP I see: offer, bound, declined

dhcp-vlan1 (defcon) client 2E:CE:6B:FC:93:A6 declines IP address 192.168.88.45

The only way is to leave the units as dynamic

But even the lease on DHCP is configured to 3 days, the units get new address every 24 hours

If using Microsoft DHCP server (obviously NOT on the same network!), I do not have any such issue with same devices

So it is only somehow Miktotik

Anybody eny ideas?

To be clear, are you taking about Apple iOS or Cisco IOS?

Apple iOS

Am I the only one with this issue?

Probably not

Can you reproduce the issue on a clean RouterOS install with a minimal configuration?

Do you have Private Wifi enabled on iOS? Also latest iOS installed, I think that’s 17.4.1?

Edit: never mind, I misread the OP.

Answers already in first post (if one reads all)

Well, it is called real life. One does not have luxury of clean router setup, and even if it works, it helps zero, because I need it working in the existing setup

Ok, with such an attitude I guess you are not seriously trying to resolve the issue then. If you are serious, be nice towards people who are trying to help you and read up on https://debug.guide/.

Debugging like that guide specifies is part of real life for technicians too!

@pimmie

Thanks for this link, many of none experience users need to read this.

Do you have any kind of “wlan extender” on your network? Has been the issue at least over here: http://forum.mikrotik.com/t/seen-this-dhcp-server-logs-client-declines-ip-several-times-a-second/108342/1

The principle to successfully debug is to remain unbiased. Therefore, do not immediately blame, for example, MikroTik. If the same devices work without issues in another network with a different DHCP server, the DHCP server may not necessarily be the cause. There are many other factors to consider, such as the differences in network configuration and clients.

Oh well, not much help here (not that I expected any)
I lost faith in this community some time ago.

No, I have no extenders. Each & any other device (but iOS) work perfectly fine

Same iOS device(s) on another network work perfectly fine.

So I am remaining unbias, but if you have only 2 devices involved (iOS & Mikrotik), then I see no other “culprit”

Thanks for this (not that I will spend much time reading)

This is not a RoS Issue … this is an Apple Setting that you must change if you want the Apple device to get a static IP
I will use an iPhone as an example:
On the iPhone Go to Settings and Wi-Fi THEN touch the i that is encircled
turn off ==>> Private Wi-Fi Address
This will enable your iPhone to get a static addess from your RoS DHCP server.
\

And on that Microsoft DHCP server you do have configured static IP addresses for your iOS devices too?

yeah, reading is one thing. Understanding is the part that will be tricky for you (with your attitude you show us).

It it were that easy… (already stated in OP - that nobody seems to actually read)
But thanks for trying (as opposed to other useless replies here)

I’ve had issues like this with iOS devices in the past. I’m not familiar with the iOS network stack, but suspect that iOS devices maintain some kind of internal list of recent DHCP leases and seem to think that leases are still bound when they are not. It could be that your Microsoft DHCP server works as it’s presumably serving a different IP range.

IIRC my issues seemed to be around specific addresses; forcing a different, previously unused address solved the issue. After a period (eg a day) , the device started to then accept the original address.

Does your issue occur with every address in the DHCP range in question?

Yes I did read your OP.
2 additional things that you can try

After turning off Private Wi-Fi Address turn off WiFi on your iPhone
In RoS DHCP Leases delete the entry for your iphone

Now turn on your iPhone Wi-Fi
Look for the dynamic lease to come back in your RoS DHCP Leases screen
Once you see the lease NOW make it static and ASSIGN the IP Address that you want it to have
Go Back to your iPhone and turn off the Wi-Fi and after 5 seconds turn the Wi-Fi back on … does this work for you ?

No, sorry, does NOT work (with any iPhone in the house)
Each & every one fails the exactly same (as per first post)

Dynamic works, Static never allows connection (Offer/Bound/Declined)

It does happen with ANY address (ie one that could have NEVER previously be issued/used like 192.168.88.250)

Ofcourse unless one knows easy way to get logs from iOS device itself, I have no idea what is going on inside there
And the declined comes definitely from iOS