Problem scenario
On a CentOS server running in VirtualBox, networking is not working. You cannot ping the default gateway or get to the internet. When you try to ping something, you get the error message in a terminal “connect network is unreachable.” What should you do?
Solution
In Oracle VirtualBox, go to Devices -> Network Settings. Make sure the adapter is attached to “Bridged Adapter”.
…