Two guest VM on internal network not able to ping each other

Discussions related to using VirtualBox on Windows hosts.
Post Reply
asaxena11
Posts: 1
Joined: 15. Oct 2009, 07:48
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Win XP + Win 2008

Two guest VM on internal network not able to ping each other

Post by asaxena11 »

Hi,

I don’t have any experience is setting up networks. I am trying to create a small lab environment to test my application
I have two VM (Win 2 k 3 64 bits and XP 32 bit). I am trying to set up network between these two. But the VM cannot ping each other.
Here is the configuration I have
Win2k3 VM: NAT and Internal network
Win X; internal Network

I ran following command
vboxmanage modifyvm Win2k3_X64Srvr -nic2 intnet
vboxmanage modifyvm Win2k3_X64Srvr -intnet2 intnet

vboxmanage modifyvm WINXP -nic1 intnet
vboxmanage modifyvm WINXP -intnet1 intnet

Also I did setup static IP on Win2k3 server machine using following command
netsh interface ipv4 set address name="Local Area Connection 2" source=static address=192.168.2.220 mask=255.255.255.0 gateway=192.168.1.1
Please guide me where am I going wrong.

Thanks
Amit
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Two guest VM on internal network not able to ping each other

Post by Sasquatch »

With peered connections, you don't need a gateway because there is none. Set the Guests to the same IP range, like 192.168.4.1 and 192.168.4.2. Disable the XP firewall or add a rule to allow ping (file and printer sharing is there by default, just needs to tick the checkbox).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply