[vbox-dev] NAT/slirp issue?

2008-12-18 Thread Huihong Luo
I have a windows xp host PC that has two network interfaces, one is for 
internal local network without internet connection, the other can connect to 
internet. These two interfaces have 2 different IPs.
 
Somehow, vbox vm (configured as NAT) running on this pc can NOT browse any 
internet websites, but it works for the local network. I checked the settings 
inside vm, the adapter and ip are correct, and there is traffice between this 
vm and the host.
 
It seems somehow the vm is hooked to the internal network on host, rather than 
the one that can browse internet. I don't know how slirp works internally, but 
I assume it uses windows socket api to send/receive packets. Any chance that 
traffic is bounded to a specific interface?
 
Huihong___
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev


Re: [vbox-dev] NAT/slirp issue?

2008-12-18 Thread Frank Mehnert
On Thursday 18 December 2008, Huihong Luo wrote:
 I have a windows xp host PC that has two network interfaces, one is for
 internal local network without internet connection, the other can connect
 to internet. These two interfaces have 2 different IPs. 
 Somehow, vbox vm (configured as NAT) running on this pc can NOT browse any
 internet websites, but it works for the local network. I checked the
 settings inside vm, the adapter and ip are correct, and there is traffice
 between this vm and the host. 
 It seems somehow the vm is hooked to the internal network on host, rather
 than the one that can browse internet. I don't know how slirp works
 internally, but I assume it uses windows socket api to send/receive
 packets. Any chance that traffic is bounded to a specific interface? 

Please try again in NAT mode. Then have a look at the VBox.log
file yourself. Search for 'NAT: ...' lines and have a look at
lines which mention name servers. Please check if the correct
name server is passed to the guest.

Kind regards,

Frank
-- 
Dr.-Ing. Frank MehnertSun Microsystemshttp://www.sun.com/


signature.asc
Description: This is a digitally signed message part.
___
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev


Re: [vbox-dev] NAT/slirp issue?

2008-12-18 Thread Frank Mehnert
On Friday 19 December 2008, Huihong Luo wrote:
 Yes, you are right. From the vbox.log, I found those NAT: DNS lines, it
 indeed picked the wrong DNS server. It basically pick the DNS from the
 internal network, rather the interface that can browse internet. 
 I also verified that IE works from vm is using ip address directly, so it's
 purely DNS issue. 
 Perhaps, can perform some kind of checks, and pick the DNS that can resolve
 internet names? 

Yes, this is a long planned feature to solve this annoying bug.

Thanks for your feedback,

Frank
-- 
Dr.-Ing. Frank MehnertSun Microsystemshttp://www.sun.com/


signature.asc
Description: This is a digitally signed message part.
___
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev