How to ping guest system from host?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Innuendo108
Posts: 7
Joined: 24. Aug 2010, 18:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

How to ping guest system from host?

Post by Innuendo108 »

I am using Linux Ubuntu on my main machine. And I have another Linux in virtualbox. I need this Linux VM to be my server. But I can't make them even ping each other.

I configure bridged NET-adapter for virtualbox machine and make guest and host system the same gateway, mask.
For example, both in guest system and host system there is:
netmask: 255.255.255.0
gateway: 192.168.1.1
broadcast: 192.168.1.255
network 192.168.1.0

in guest system i type IP - 192.16.203.2, and in host - 192.16.203.3

And they can't ping each other?

Why does it happen?

May be because without any real cable inserted in my laptop - so main system 'thinks' that there is no network possible on system?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to ping guest system from host?

Post by Perryg »

If you do not have a real connection and router you will need to switch to host-only to be able to get the two to communicate.
Innuendo108
Posts: 7
Joined: 24. Aug 2010, 18:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: How to ping guest system from host?

Post by Innuendo108 »

But if I want to connect my host with wire with another PC. (only with wire, without router).

How should I config network, that virtual system will be server both of 2 of real PCs?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to ping guest system from host?

Post by Perryg »

Well you are going to need to learn a lot more about networking if you are going to go this route.
You would use Bridged mode and at the very least a network switch. (cross over cable will allow only one other PC)
Then you would be in a peer-to-peer network. Do you know how to set this up?
Innuendo108
Posts: 7
Joined: 24. Aug 2010, 18:44
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: How to ping guest system from host?

Post by Innuendo108 »

I have a switch, but I need only 2 PCs to connect.

I though it's easy to make such peer-to-peer network (just make the same gateway...) Isn't it?


If it is not, could you please give some links to read...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to ping guest system from host?

Post by Perryg »

Drop this peer-to-peer networking in google or your favorite search engine.

Normally peer-to-peer does not use a gateway just the IP address and subnet since they are in essence a direct connect.
Post Reply