My network went down. When I looked at the Openwrt log, I found AppleTV-2 entries repeating over and over before crash (sample of repeating entries below):
So AppleTV-2 is spamming the logs but not AppleTV-1. Far as I know, I have both AppleTVs configured the same but under different Apple-user accounts. Anybody seen this before, know how to fix it?
I was watching a stream on AppleTV-1 and it froze. I then tried to get on Internet with an iPad and it wouldn't work. Also ATA to phones was down. I looked at Openwrt log, saw the AppleTV-2 request/acks and then rebooted the AppleTV-2 and Internet worked again.
What is the pyhsical topology of your network?
And what is the DHCP lease time for your network? Let's take a look at your network config to understand what else might be going on.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
the lease time is 192 hours (too long for a client?)
I'm in the process of ordering a Cisco smart switch. But currently I have:
modem > router (openwrt) > unmanaged switch:
-openwrt dumb AP
-AppleTV-1
-AppleTV-2
-laptop
-desktop
-IP Phone
-ATA for wireless DECT phone
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
list server '/mask.icloud.com/'
list server '/mask-h2.icloud.com/'
list server '/use-application-dns.net/'
list server '127.0.0.1#5053'
list server '127.0.0.1#5054'
option doh_backup_noresolv '-1'
option noresolv '1'
list doh_backup_server '/mask.icloud.com/'
list doh_backup_server '/mask-h2.icloud.com/'
list doh_backup_server '/use-application-dns.net/'
list doh_backup_server '127.0.0.1#5053'
list doh_backup_server '127.0.0.1#5054'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '192h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
How did "list server '/mask.icloud.com/'" get in my dhcp? Does openwrt use that or did an Apple device insert that?
Oh. I identified a difference between the Apple TVs. AppleTV-2 user account makes use of iCloud for backing up photos taken with iPhone. AppleTV-1 does not use iCloud at all.
This is a rather important difference.... especially given that it appears you're not running the default dns situation (are you using DoH/DoT, or adblock or something else)?
I'm not sure how that got there, but I do think that those servers need to be accessable for icloud to work properly.
Try disabling the icloud features of AppleTV 2 and see if it stops having DHCP issues.
Possible, but unlikely IMO, since the device is requesting a lease... more than likely this is a DNS thing and the AppleTV isn't happy with the DNS situation so it's requesting another lease for some reason (maybe it believes the lease is bad or wahtever).
I believe it's solved. Going to wait awhile to be sure before marking this thread.
Apparently, someone at Apple thought it a good idea to spam router logs with DHCPREQUEST/DHCPACK if Apple TV user chooses to not add their Apple TV as an accessory to the Apple Home app.
Once Apple TV is added as accessory to Home app, the spamming stops.
Thanks so much to all who posted trying to help. Love you guys!