Here's what you need to do. Go to
/Library/Preferences and look for SystemConfiguration folder. Move that folder to the desktop.
2. Restart the machine
3. Go to network in system preferences and create a new location
4. Click Automatic on the top and edit location, give it a name then press done...