[Vista guest] Host interface : can ping but can't browse

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Rockz
Posts: 4
Joined: 6. Feb 2009, 20:38

[Vista guest] Host interface : can ping but can't browse

Post by Rockz »

Hello,

I set up a standard VirtualBox 2.1.2 host on a Debian Lenny amd64. It runs a Vista Home SP1 32 bits guest with guest additions installed properly.

For development testing purposes, I set up the guest virtual NIC as beeing the same as the host one (bridge), that's "host interface" in the vbox manual : interface is eth0, and I filled the virtual NIC MAC addresse with the real MAC address.

And here is the problem : in the guest, a 'ipconfig /all', a 'ping www.google.com', and so on, returns me the good information (good local IP address, good gateway, good DNS servers), the default desktop RSS widget accesses the web and feedbacks news with no problem.

But when I start Internet Explorer or Firefox, I simply get no display/loading, just a "Interrupted connection" message.

I tried two possible solutions with no success : reseting Windows Winsock, and adding an additional DHCP property in Windows registry. Also checked the MTU : it's set to 1500, and I estimated the best value to 1472, so it's not the cause either.

Note : last week, I had the exact same issue on the Debian host (I can't run Firefox anymore on host, but installed iceweasel and it now works fine). I wonder if it's related or not.

I encounter no issue with linking to guest virtual network through NAT.

Do you have an idea why this happens, and if this is a VirtualBox related issue ?

Just ask pieces of data that may be required to diagnose, thanks ;)
JackieKu
Posts: 5
Joined: 2. Jan 2009, 13:40

Re: [Vista guest] Host interface : can ping but can't browse

Post by JackieKu »

Rockz wrote:For development testing purposes, I set up the guest virtual NIC as beeing the same as the host one (bridge), that's "host interface" in the vbox manual : interface is eth0, and I filled the virtual NIC MAC addresse with the real MAC address.
You shouldn't do this, use the MAC address generated by vbox should work.
Rockz
Posts: 4
Joined: 6. Feb 2009, 20:38

Post by Rockz »

Thanks JackieKu, I tried your suggestion and here is the result :

- I use "Host networking" mode
- I can browse web from guest
- Guest NIC has a different MAC than host one
- Guest NIC has a DHCP-assigned IP on local network
- Guest NIC has a different local IP than host one

So, this is not "host networking", since my guest has a different local IP than my host. As well, it's no big deal since host and guest are now on the same LAN and that I can perform tests (example : reach a Tomcat server running on the host LAN IP).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Rockz, that's the whole point. Two computers can't have the same IP address on the same network. Just like you can't have the same phone number that your friend has. There will be a conflict as to where the data should go to (the host, or the guest, yours; or your friend's phone).
Host Interface means that it uses the interface from the Host to access the network, and not a software method like NAT.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply