Page 1 of 1

How can two Linux guest servers establish network connectivity on a Windows host?

Posted: 9. Mar 2017, 00:38
by GeorgeRT
I am running two Linux CentOS guest VMs with Oracle VirtualBox. The host is a Windows 7 laptop. When I use

Code: Select all

ip addr show
on either of the VMs, they show the same IP address. How do I configure their IP addresses to be static and different from each other?

I tried configuring a static IP address. I configured the ifcfg-enp0s3 interface of the CentOS to have a static IP address. I rebooted the VM. When I am on the other guest server, I cannot ping this IP address. It says "destination host unreachable." I can reach the Internet however.

I get the same result when I try to ping one CentOS server from the CentOS server with the static IP address.

I just want to establish TCP/IP connectivity between the two hosts. What do I do?

Re: How can two Linux guest servers establish network connectivity on a Windows host?

Posted: 9. Mar 2017, 01:12
by socratis
GeorgeRT wrote:I just want to establish TCP/IP connectivity between the two hosts. What do I do?
Start by reading and understanding the different network modes provided by VirtualBox. User Manual, Ch. 6.2. Introduction to networking modes. The chapters that follow, have more details about each and every mode.

PS. When you're seeking help, it would really help if you provided details. For example you didn't even mention the IP addresses of the VMs, leaving me to guess that you've chosen NAT mode with DHCP enabled and both your VMs are getting the 10.0.2.15 IP. But, that's only a guess...