Page 1 of 1

17.4.1 APPLE iOS cannot be static in DHCP

Posted: Wed Apr 10, 2024 8:38 am
by sebus46
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?

Re: 7.14.1 iOS cannot be static in DHCP

Posted: Wed Apr 10, 2024 9:23 am
by pimmie
To be clear, are you taking about Apple iOS or Cisco IOS?

Re: 7.14.1 iOS cannot be static in DHCP

Posted: Wed Apr 10, 2024 7:48 pm
by sebus46
Apple iOS

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Thu Apr 11, 2024 8:29 pm
by sebus46
Am I the only one with this issue?

Probably not

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Thu Apr 11, 2024 10:00 pm
by pimmie
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?

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 5:47 am
by CGGXANNX
Edit: never mind, I misread the OP.

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 8:45 am
by sebus46
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?
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

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 9:30 am
by pimmie
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!

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 9:45 am
by patrikg
@pimmie

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

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 11:44 am
by infabo
Do you have any kind of "wlan extender" on your network? Has been the issue at least over here: viewtopic.php?t=121207

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Fri Apr 12, 2024 11:48 am
by infabo
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
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.

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 10:41 am
by sebus46
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"

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 10:43 am
by sebus46
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!
Thanks for this (not that I will spend much time reading)

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 11:14 am
by mozerd
Anybody eny ideas?
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.
\

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 1:55 pm
by infabo
If using Microsoft DHCP server (obviously NOT on the same network!), I do not have any such issue with same devices
And on that Microsoft DHCP server you do have configured static IP addresses for your iOS devices too?

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 1:57 pm
by infabo
(not that I will spend much time reading)
yeah, reading is one thing. Understanding is the part that will be tricky for you (with your attitude you show us).

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Sat Apr 13, 2024 6:51 pm
by sebus46
Anybody eny ideas?
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.
\
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)

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Mon Apr 15, 2024 12:39 pm
by PBondurant
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?

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Mon Apr 15, 2024 1:39 pm
by mozerd
It it were that easy... (already stated in OP - that nobody seems to actually read)
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 ?

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 9:59 pm
by sebus46
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

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 10:27 pm
by mozerd
And the declined comes definitely from iOS
I surmise based on the quoted comment you have an IOS app installed that is acting like a firewall preventing the action.

Which version of IOS is running and do u have any security apps running on your Apple device ?

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 10:41 pm
by mt99
Well, I can share what I do with the iDevices on my network. If I care about assigning an IP, I just give it a DHCP reservation with a client ID. That way I don't have to bother with turning off the private IP address feature. It's been a while since I set it up, but if you go into configure IP on the device I believe you see a field to enter any text you want as a client ID. Leave it as automatic through. Then in RouterOS, just do something like this:

/ip dhcp-server lease add address=reserved_IP allow-dual-stack-queue=no client-id=your_client_ID comment=whatever_you_like lease-time=your_lease_time

Or in Winbox, make an existing IP static then take out the MAC address and enter a client ID there and save. Either way, iOS devices get their IP with no issues here on both ROS 6 and 7. Worth a try at least? If this doesn't work, there might be some DHCP communication issues that need to be ruled out.

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 10:52 pm
by infabo
reset network settings and see if the issue persists: https://support.apple.com/en-us/111786# ... 20Settings.

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 11:01 pm
by sebus46
17.4.1 no, no security apps (and what would any do anyway in case of dynamic vs static IP from same DHCP server?)

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Posted: Tue Apr 16, 2024 11:08 pm
by sebus46
...make an existing IP static then take out the MAC address and enter a client ID there and save. Either way, iOS devices get their IP with no issues here on both ROS 6 and 7. Worth a try at least?
Will test more (with all devices), but quick test seems to have worked. Thanks

edit 1:
No dice, next day walked in the WiFi range, only to get in MT log:
dhcp-vlan1 (defcon) client EA:DB:B1:A9:69:C7 declines IP address 192.168.88.8
The only way to make it static, was to use static (and completely different IP) on the iOS device itself, DHCP issued IP gets always declined, definitely iOS doing some arp check

edit 2:
Day after the static IP no longer works (wifi seems to be connected, but it is not really), on device back to auto = existing reservation (that did not work yesterday) and... it works fine today

edit 3:
Next day reservation does not work (declines), back to dynamic
Complete madness