Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Remove all files inside the folder /Library/Preferences/SystemConfiguration/ (before you do this create a backup of the folder) and then reset the NVRAM (This URL support.apple.com/kb/HT1379 explains how you do this).