No internet on CentOS 8 Oracle Virtual Box

Posted: July 4, 2020 in Uncategorized


Sometimes we can’t reach the internet when we install CentOS 8 on Oracle Virtualbox

Even ifconfig command could not show the IPaddress

Ping also fails. To resolve this follow the simple single command step


Run below command by Switching to root user or run with Sudo as prefix

# dhclient -v

Now check the ifconfig. This time you see the ip address and also ping works

But this is not the permanent solution. We need to add this at boot level

Edit the new file with the name net-autostart

vi /etc/init.d/net-autostart

# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
dhclient -v

Change permissions to 755

chmod 755 /etc/init.d/net-autostart

Now reboot machine. Now this time IP address get assigned automatically 🙂







Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s