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

Discussions about using Linux guests in VirtualBox.
Post Reply
GeorgeRT
Posts: 13
Joined: 21. Jan 2017, 16:31

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

Post 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?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

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

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply