Community discussions

MikroTik App
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

17.4.1 APPLE iOS cannot be static in DHCP

Wed Apr 10, 2024 8:38 am

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?
Last edited by sebus46 on Tue Apr 16, 2024 11:15 pm, edited 4 times in total.
 
pimmie
newbie
Posts: 43
Joined: Fri Mar 27, 2015 4:51 pm

Re: 7.14.1 iOS cannot be static in DHCP

Wed Apr 10, 2024 9:23 am

To be clear, are you taking about Apple iOS or Cisco IOS?
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 iOS cannot be static in DHCP

Wed Apr 10, 2024 7:48 pm

Apple iOS
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Thu Apr 11, 2024 8:29 pm

Am I the only one with this issue?

Probably not
 
pimmie
newbie
Posts: 43
Joined: Fri Mar 27, 2015 4:51 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Thu Apr 11, 2024 10:00 pm

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?
 
CGGXANNX
Member Candidate
Member Candidate
Posts: 103
Joined: Thu Dec 21, 2023 6:45 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 5:47 am

Edit: never mind, I misread the OP.
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 8:45 am

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
 
pimmie
newbie
Posts: 43
Joined: Fri Mar 27, 2015 4:51 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 9:30 am

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!
 
User avatar
patrikg
Member Candidate
Member Candidate
Posts: 271
Joined: Thu Feb 07, 2013 6:38 pm
Location: Stockholm, Sweden

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 9:45 am

@pimmie

Thanks for this link, many of none experience users need to read this.
 
infabo
Forum Veteran
Forum Veteran
Posts: 735
Joined: Thu Nov 12, 2020 12:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 11:44 am

Do you have any kind of "wlan extender" on your network? Has been the issue at least over here: viewtopic.php?t=121207
 
infabo
Forum Veteran
Forum Veteran
Posts: 735
Joined: Thu Nov 12, 2020 12:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Fri Apr 12, 2024 11:48 am

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.
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 10:41 am

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"
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 10:43 am

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)
 
User avatar
mozerd
Forum Veteran
Forum Veteran
Posts: 896
Joined: Thu Oct 05, 2017 3:39 pm
Location: Canada
Contact:

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 11:14 am

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.
\
 
infabo
Forum Veteran
Forum Veteran
Posts: 735
Joined: Thu Nov 12, 2020 12:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 1:55 pm

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?
 
infabo
Forum Veteran
Forum Veteran
Posts: 735
Joined: Thu Nov 12, 2020 12:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 1:57 pm

(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).
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Sat Apr 13, 2024 6:51 pm

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)
 
PBondurant
just joined
Posts: 2
Joined: Sat Jun 05, 2021 9:09 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Mon Apr 15, 2024 12:39 pm

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?
 
User avatar
mozerd
Forum Veteran
Forum Veteran
Posts: 896
Joined: Thu Oct 05, 2017 3:39 pm
Location: Canada
Contact:

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Mon Apr 15, 2024 1:39 pm

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 ?
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 9:59 pm

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
 
User avatar
mozerd
Forum Veteran
Forum Veteran
Posts: 896
Joined: Thu Oct 05, 2017 3:39 pm
Location: Canada
Contact:

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 10:27 pm

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 ?
 
mt99
newbie
Posts: 44
Joined: Wed Jan 03, 2018 6:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 10:41 pm

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.
 
infabo
Forum Veteran
Forum Veteran
Posts: 735
Joined: Thu Nov 12, 2020 12:07 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 10:52 pm

reset network settings and see if the issue persists: https://support.apple.com/en-us/111786# ... 20Settings.
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 11:01 pm

17.4.1 no, no security apps (and what would any do anyway in case of dynamic vs static IP from same DHCP server?)
Last edited by sebus46 on Tue Apr 16, 2024 11:15 pm, edited 1 time in total.
 
sebus46
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Sat Jun 17, 2023 4:59 pm

Re: 7.14.1 APPLE iOS cannot be static in DHCP

Tue Apr 16, 2024 11:08 pm

...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

Who is online

Users browsing this forum: No registered users and 13 guests