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.
Install traceroute with this command:
sudo yum -y install traceroute
Then use this command:
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.