I'm having trouble connecting XP ( Guest system on VBOX ) to Debian Testing (host).

The version VirtualBox 4.1.12

Relevant parts of the output of commands.

ifconfig on debian:

inet addr:  Bcast:  Mask:

inet addr:  Bcast:  Mask:

ipconfig on XP:

IP Address 
Subnet mask

File->Preferences->Network->edit vboxnet0 yields the following dialogs:

Host-Only network Details
  Ipv4 Address:
  Subnet Mask:

DHCP Server
  Server Address:
  Server Mask:
  Lower Address Bound:
  Upper Address Bound:

I cannot ping either machine from the other. Any idea what the problem is?

  • Why is eth0 and vboxnet0 on the same network ?
    – daisy
    Jun 3, 2012 at 7:02
  • How you are getting the ip address in the host machine i.e. debian whether thru DHCP or u are statically assigning Aug 2, 2012 at 3:59
  • The subnet mask is not the same on the XP VM ( vs. Could easily be the cause.
    – dartonw
    Apr 4, 2013 at 4:58

3 Answers 3


Your host has two networks of the same ip range (192.168..) so the host routes all communication to its external (eth0) interface. You need to change the vboxnet0 to be a different one (172.16.. or something). As long as both do not have the same prefix (192.168) you should be fine.


The problem is that you have two times the same network on different devices.

To achieve your goal simply use the eth0 network bridge OR build a real bridge with brctl, and use that. - Use a different network not used by an external network card.


You have to change the Subnet mask in XP maching from to

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.