Networking Problems

Discussions related to using VirtualBox on Linux hosts.
Post Reply
DJMOtte
Posts: 3
Joined: 17. Jun 2009, 08:44
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Networking Problems

Post by DJMOtte »

Hi Folks,

I've got massive Problems using Network in my Guest. Primary - I can't ping the outside Host.

Here my Facts:

Host:
OS: Debian Etch
VirtualBox 2.2.4
Kernel 2.6.27.24

Guest:
OS: Windows XP

Virtualbox Guest.XML-Settings:
<Adapter slot="0" enabled="true" MACAddress="0800275AB582" cable="true" speed="0" type="Am79C973">
<HostOnlyInterface name="tap0"/>
</Adapter>

On my Host I've created a tap-interface:
tunctl -u root
/sbin/ifconfig tap0 192.168.20.1 netmask 255.255.255.0 up

On my Guest I've configured a static Network
IP:192.168.20.201
Mask: 255.255.255.0
Gateway: 192.168.20.1

But it is impossible to ping 192.168.20.1 from the Guest. Also it isn't possible to ping 192.168.20.201 from the Host.

I'm getting stupid - tryin for days without any effort.


Hope you've some ideas

Best regards
Michael
Harald
Posts: 7
Joined: 6. Feb 2009, 22:33

Re: Networking Problems

Post by Harald »

DJMOtte wrote:Virtualbox Guest.XML-Settings:
<Adapter slot="0" enabled="true" MACAddress="0800275AB582" cable="true" speed="0" type="Am79C973">
<HostOnlyInterface name="tap0"/>
</Adapter>

On my Host I've created a tap-interface:
tunctl -u root
/sbin/ifconfig tap0 192.168.20.1 netmask 255.255.255.0 up
Hm, apparently you have configured "Host-Only Interface", but then you create the TAP-device yourself. Shouldn't the Host-Only interface (on the host) be create by VirtualBox and be called something like vboxnet0? You either should use Bridged with a TAP interface, or Host-only with the interface created by VirtualBox.
DJMOtte
Posts: 3
Joined: 17. Jun 2009, 08:44
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: Networking Problems

Post by DJMOtte »

Hi there,

yep I was wrong. Now I'm using hostif with tap0 and no problems any more.


Thank you all.


Best regards
Michael
Post Reply