Ubuntu – Network connection error after suspend Ubuntu 14.04

14.04networkingsuspend

I'm using ubuntu 14.04 and a DSL connection for internet. However, whenever I suspend and resume my session, I'm no longer able to connect to the internet. Could someone help me fix this?

Best Answer

Robbin's answer fixes it for me. To have this run every time the system wakes create a script with this content...

#!/bin/sh

case "${1}" in
    resume|thaw)
        service network-manager restart;;
esac

and put the script in /etc/pm/sleep.d and make it executable. (The script is a slight variation of the one on this page)