You are not logged in.

#1 2008-07-18 09:12:29

ForeverNoob
Member
Registered: 2008-07-18
Posts: 13

Networking - Can't ping other hosts

Hi Folks,

I've installed Arch as a VirtualBox guest and configured network to use dhcp according to the wiki. I can only ping localhost, pinging other hosts 100% packet loss. What am I missing?

TIA

Offline

#2 2008-07-18 11:34:59

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: Networking - Can't ping other hosts

from : http://www.virtualbox.org/wiki/User_FAQ
   

* ping does not work with VirtualBox NAT networking

    VirtualBox's implementation of NAT networking is done entirely in user space. This means in particular that it has no way of passing on the ICMP IP packets which are used by the ping command from the guest, as these require special privileges to send from the host. The upshot of this is that you can't ping anything outside the local 10.0.2.x subnet from a NATed guest.

same thing if you want to connect to guest opertating system to different ports

p.s ping isn't a good benchmark to see if connection is working. try to query dns. nslookup google.com instead

Last edited by wonder (2008-07-18 12:03:20)


Give what you have. To someone, it may be better than you dare to think.
Blog

Offline

#3 2008-07-18 20:28:27

ForeverNoob
Member
Registered: 2008-07-18
Posts: 13

Re: Networking - Can't ping other hosts

wonder wrote:

from : http://www.virtualbox.org/wiki/User_FAQ
   

* ping does not work with VirtualBox NAT networking

    VirtualBox's implementation of NAT networking is done entirely in user space. This means in particular that it has no way of passing on the ICMP IP packets which are used by the ping command from the guest, as these require special privileges to send from the host. The upshot of this is that you can't ping anything outside the local 10.0.2.x subnet from a NATed guest.

same thing if you want to connect to guest opertating system to different ports

p.s ping isn't a good benchmark to see if connection is working. try to query dns. nslookup google.com instead

Ahhhh..... What I couldn't understand is why, although ping fails, its still gives me the IP of the destination host. Now I know.

Thanks a lot!

Offline

#4 2008-08-17 23:40:02

kalasmannen
Member
From: Örebro, Sweden
Registered: 2008-02-27
Posts: 29
Website

Re: Networking - Can't ping other hosts

If you are interrested in it, there is a guide that i found helpful, wich explains how to use TUN/TAP networking instead of the NAT-solution. tongue

http://www.linuxweblog.com/virtualbox-host-networking

Offline

#5 2008-08-18 04:28:48

ForeverNoob
Member
Registered: 2008-07-18
Posts: 13

Re: Networking - Can't ping other hosts

kalasmannen wrote:

If you are interrested in it, there is a guide that i found helpful, wich explains how to use TUN/TAP networking instead of the NAT-solution. tongue

http://www.linuxweblog.com/virtualbox-host-networking

I'll look into that. Thanks.

Offline

Board footer

Powered by FluxBB