Take the 2-minute tour ×
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:

eth0    
inet addr:192.168.158.5  Bcast:192.168.158.255  Mask:255.255.255.0

vboxnet0  
inet addr:192.168.158.199  Bcast:192.168.158.255  Mask:255.255.255.0

ipconfig on XP:

IP Address 192.163.158.200 
Subnet mask 255.255.0.0

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

Host-Only network Details
 Adaptor:
  Ipv4 Address:192.168.158.199
  Subnet Mask: 255.255.255.0


DHCP Server
  Server Address: 192.168.158.198
  Server Mask:255.255.255.0
  Lower Address Bound: 192.168.158.200
  Upper Address Bound:192.168.158.254

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 (255.255.0.0 vs. 255.255.255.0). Could easily be the cause. –  dartonw Apr 4 '13 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.

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

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

share|improve this answer

Your Answer

 
discard

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.