When Running Oracle VirtualBox on a Windows Host with a Linux Guest, What Does the Linux Guest Think Is the IP Address of the Host?

Problem scenario:  You have Oracle VirtualBox installed on a Windows host.  You have Linux CentOS as a guest VM. You want to test network connectivity (e.g., hostname resolution).  You want to know what IP address the Linux guest could use to interact with the Windows host.

Solution
Install traceroute with this command:

sudo yum -y install traceroute

Then use this command:

traceroute 8.8.8.8

The results of the above traceroute command will show you the packet hop from the Linux guest to the Windows host.  Thus you will know what IP address the Windows host has insofar as the Linux CentOS guest is concerned.

Leave a comment

Your email address will not be published. Required fields are marked *