In Ubuntu sometimes we need to reset the networking for example after replacing the motherboard.
Just erase the file /var/lib/NetworkManager/NetworkManager.state
It will reset the network configuration and force ubuntu to reconfigure the network
Repair Networking in Ubuntu 14.04