MacBook – No Wi-Fi connectivity after waking up from sleep on MacBook

macbook proNetworksleep-wakewifi

I'm running a MacBook Pro (Retina, 13-inch, Early 2015) with OS X El Capitan. I have an Arris DG1760 Cable Modem/Wi-Fi Router from Time Warner Cable. I connect to the router via Wi-Fi (5G). No issues until after my MBP goes to sleep and then I wake it up, I am still connected to Wi-Fi but have no connectivity whatsoever. I diff'd the result of ifconfig with a good connection versus after sleep/wake, and there is only one line different.

Working:

inet 192.168.0.8 netmask 0xffffff00 broadcast 192.168.0.255

Not Working:

inet 169.254.150.25 netmask 0xffff0000 broadcast 169.254.255.255

Apparently (from whois), the non-working IP is a link-local address. Not sure exactly what that means to my situation, but any ideas on how to resolve this? I'd prefer to not have to turn Wi-Fi on/off each time I come back to my MacBook.

Best Answer

Had very similar problem. After wake up Wi-Fi icon shows "connected" status, but network does not work, i.e. even ping to my router does not work. The connectivity usually resumes on its own after some time (dozens of seconds to couple of minutes), or after I do manual DHCP renew or turn Wi-Fi off and then back on.

The problem gone after I disabled DoS attack protection on my router. It seems that my router treated Apple's rapid DHCP (https://cafbit.com/entry/rapid_dhcp_or_how_do) as DoS attack attempt.