Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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?

share|improve this question
Why is eth0 and vboxnet0 on the same network ? – warl0ck Jun 3 '12 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 – pradeepchhetri Aug 2 '12 at 3:59
The subnet mask is not the same on the XP VM ( vs. Could easily be the cause. – dartonw Apr 4 '13 at 4:58

3 Answers 3

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

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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