OS X EI Captain (version 10.11.5). This issues is consistent, whenever Mac awakes from sleep, My internet is disconnected. I tried the following options,
- Turn off wifi and turn back on.
- Restart network service by
sudo ifconfig em0 downand up.Basically restarting network services.
- Network settings to renew DHCP address, Prioritizing the wifi in service order.