No internet connection with a bridge network

Discussions related to using VirtualBox on Windows hosts.
Post Reply
neon
Posts: 2
Joined: 10. Sep 2010, 12:57
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 2008 R2 Server

No internet connection with a bridge network

Post by neon »

Hi,

my PC has two network cards. The first adapter is used for my normal usage. I will use the second one only for my virtual machine.

Adapter1: 192.168.0.2
Adapter2: 192.168.0.3

I disable the VirtualBox Host-Only Network, because I use the bridge configuration in the vm network settings. In the virtual machine, I use a static IP configuration but it is not possible to use the same IP like in the host system. So the ip of the vm is

VM: 192.168.0.4

Ok, know it works. I can find the pc in the network, but the server can't connect to the internet. Windows say, that the the DNS Server isn't available. I use the same setting like on the host system. Have any an idea how to solve the problem?

I just want to have the server in the same network. I think it is a good solution to use my second network adapter, but I don't know why I can't connect to the internet.

best regards,
neon
vongthep
Posts: 3
Joined: 10. Sep 2010, 04:17
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: win2k8 r2

Re: No internet connection with a bridge network

Post by vongthep »

Double check your adapter type. Under Network->Advanced->Adapter Type. I have mine set to Intel PRO 1000 MT Desktop (default) and the vm's are able to connect to the internet under a bridge network.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: No internet connection with a bridge network

Post by Perryg »

Check for firewall issues and make sure you defined a DNS server that sees the outside world on the guest.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: No internet connection with a bridge network

Post by BillG »

If you are planning to use one NIC exclusively for your guest OS, it does not need an IP when viewed from the host. Having two NICs in the host OS with IPs in the same IP subnet can lead to name resolution problems for the host. See this post on how to dedicate one NIC to the host and one to the guest in Windows 7.
http://forums.virtualbox.org/viewtopic.php?f=6&t=34383

Your setup should work fine. Your server should look just like an additional server on your LAN. What DNS server is it set to use? Your router or your ISP's DNS should work fine. So should a public DNS service like 4.2.2.2 .
Bill
neon
Posts: 2
Joined: 10. Sep 2010, 12:57
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 2008 R2 Server

Re: No internet connection with a bridge network

Post by neon »

Great, I do the steps from the other post and no it is working. And now it is like I want it. Only the vm can use the NIS :) Thank you a lot!
cleric28
Posts: 1
Joined: 13. Oct 2010, 06:29
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows Server 2003

Re: No internet connection with a bridge network

Post by cleric28 »

^How did you solve your problem bro? I am having the same problem as you are. Thanks in advance. :D
Post Reply