Page 1 of 1

No internet access from guest using bridged. (FAQ question)

Posted: 17. Jun 2012, 02:59
by femur
Using: Windows 7 Host. Ubuntu guest. VB 4.1.16. Comcast wireless broadband.

I'm doing web development on the guest that I'll need to access from the host (to test IE). From all I've read I need to use a bridged adapter. This works for accessing my dev site from the host but then I lose the internet connection from my guest. I can ping the host gateway from the guest, but that's all. Can't ping/nslookup google or anything. Guest says, "Wired network connection 'auto eth0' active." According to the FAQ (below), it looks like I'm out of luck? But I've been told that it's doable. Could this be cured by sticking an ethernet cable in my notebook? My knowledge is very limited in the networking area. Any suggestions?


From the FAQ...

Code: Select all

Q: I set up a bridge with my wireless adapter, but it doesn't work. My Guest does not get an IP address or access the internet when I manually set one.
A: Creating a bridge with a wireless network card does not work. This is because of the limitations of the current bridge functionality. Please use NAT for Internet on the Guest system, or use Internet Connection Sharing to the virtual Interface without the use of a bridge.

Since 2.1.0, you can select the NIC directly. Wireless will work with this. Though not all wireless adapters support the first option VB will use when accessing the network, and that is changing the source MAC address. VB will fall back and use the physical MAC address to get network access. Some DHCP servers keep track of these MAC addresses with their lease table and deny a new IP address if the MAC is already linked to an IP.

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Jun 2012, 03:31
by Perryg
If you have a router it will work. If not then you need to use the Host-Only adapter so the host and guest can communicate. Add a second adapter set to NAT if the guest needs the Internet

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Jun 2012, 04:49
by femur
Perryg wrote:If you have a router it will work. If not then you need to use the Host-Only adapter so the host and guest can communicate. Add a second adapter set to NAT if the guest needs the Internet

Thanks. I don't have a router. All of the tabs to add a second adapter are disabled (img). Any suggestions?

img38. imageshack. us/img38/9599/vbissue.jpg

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Jun 2012, 05:04
by Perryg
Shut down the guest as you can not add adapters to a running or saved guest.

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Jun 2012, 05:49
by femur
Works perfect. Thanks much Perryg!!

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Feb 2016, 19:07
by wasimjee
I used Same and i am able to get the result, but i need something this

Lets take an Example,

i am having two ip address which is public

1. First IP
IP: 136.243.106.21
Gateway: 136.243.106.1
Netmask: 255.255.255.192

1. Second IP
IP: 136.243.106.22
Gateway: 136.243.106.1
Netmask: 255.255.255.192


First IP has been issued to the Server ( Windows 2012 R2)

I installed Virtualbox and created a VM with Windows 7

Now i need to issue jthe Second IP to VM that i created.

I tried many things, but now working, Please guide me where i am wrong.

Re: No internet access from guest using bridged. (FAQ questi

Posted: 17. Feb 2016, 19:35
by scottgus1
Wasimjee's post is a double post. see viewtopic.php?f=6&t=76306