Page 1 of 1

Bridged networking of Win7 Guest does not work

Posted: 11. Oct 2012, 11:23
by Sandor
Hello,
I try to make my Win7 guest visible to the outside world and therefore configured bridged networking over my airport device. But this is not working. I am not able to connect to connect to the internet from within the win7-guest-system.

Here is my systems configuration:

Host-bridedifs
Name: en1: AirPort
GUID: 00316e65-0000-4000-8000-e4ce8f10305c
Dhcp: Disabled
IPAddress: 160.85.135.28
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: e4:ce:8f:10:30:5c
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-en1: AirPort

Name: en0: Ethernet
GUID: 00306e65-0000-4000-8000-c82a143aac2f
Dhcp: Disabled
IPAddress: 0.0.0.0
NetworkMask: 0.0.0.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: c8:2a:14:3a:ac:2f
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-en0: Ethernet

Host- ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether c8:2a:14:3a:ac:2f
media: autoselect (none)
status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether e4:ce:8f:10:30:5c
inet6 fe80::e6ce:8fff:fe10:305c%en1 prefixlen 64 scopeid 0x5
inet 160.85.135.28 netmask 0xffffff00 broadcast 160.85.135.255
media: autoselect
status: active
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr c8:2a:14:ff:fe:af:b4:f0
media: autoselect <full-duplex>
status: inactive
vboxnet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 0a:00:27:00:00:00

Guest- Win7-IP-Config
Windows IP Configuration

Host Name . . . . . . . . . . . . : sandor-PC
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
Physical Address. . . . . . . . . : 08-00-27-D4-73-C6
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5040:322c:78ff:264f%11(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.38.79(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 235405351
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-C1-C5-02-08-00-27-5E-5D-77

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{5AD5828A-6B01-4B33-9538-717860511974}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes


Does anyone know what I'm doing wrong?

Thanks for any help

regards Sandor

Re: Bridged networking of Win7 Guest does not work

Posted: 12. Oct 2012, 02:40
by BillG
I doubt that you will get that to work. It would require your ISP to issue you with an additional connection and an additional public IP for your vm. It cannot use the same one as the host.
Bridged networking is usually used in a private network behind a router where you can assign the vm a private IP.

Re: Bridged networking of Win7 Guest does not work

Posted: 13. Oct 2012, 20:38
by tringio
I have the same problem with AirPort on MAC OS X Guest.

Re: Bridged networking of Win7 Guest does not work

Posted: 14. Oct 2012, 10:34
by mpack
Good to know, although I wonder in that case why you didn't just read the previous answer.

Re: Bridged networking of Win7 Guest does not work

Posted: 14. Oct 2012, 17:58
by metrojack
Hi, I have the same problem and i've been pulling my hair out for a couple of days. I have virtualbox 4.2.1 r80871 on my macbook pro (OS X 10. 8) i have created a guest machine WIN 7. with bridged networking.

My macbook is connected via WIFI to my home network.
I have my home network router configured to bind mac addresses to IP addresses. Therefore my router assigns IP addresses to a computer based on the mac address of the machine.

Now this is the strange thing, if I switch off this 'bind IP to mac' security feature on my router, so that I am not forcing any particular IP address on the guest instance due to its MAC address, now the guest WIN 7 instance on my OSX host can access the internet correctly ie i can browse the web. However when I look at my router admin pages it is showing 2 instances of the HOST mac address are connecting, i.e. not the guest mac address.

When I switch on my secure 'Bind IP to MAC' feature, the router now sees the MAC address of the guest instance, correctly assigns it the IP address I want it to have. IP config on the guest machine shows it has the right IP address, however the internet connection drops off and I can no longer browse the web from the guest machine.
Note that in this situation I can ping the router, and other machines on my network from the Guest, but no other machine on my network can find/ping the Guest, despite that we know what IP the router assigned to it.

So basically I cannot have Bind IP to MAC address working with a virtual WIN 7 guest instance on a OS X host, using bridged networking.
PS my router is a DRAYTEK Vigor 2830 which I have always been happy with.

Has anyone come across this and got any suggestions??

Re: Bridged networking of Win7 Guest does not work

Posted: 15. Oct 2012, 06:21
by BillG
As you have proved yourself, it is your router which is causing problems for you, not VirtualBox. You will have the same problem if your router has a one connection, one MAC address per port security setting. It will not issue an IP to a vm using a bridged connection (because its MAC address is different from the host's, as it must be).

The vm has its own MAC address and will normally get its own IP address from DHCP. However the actual packet has to travel through the physical network between the router and the host NIC. It is only after it reaches the host NIC that the filter driver working with the NIC driver separates the traffic between host and guest (according to the MAC address of the packet). If your router security detects this and doesn't like it (assuming that it is some sort of threat), it will drop the traffic for the vm, or will not give it an IP address in the first place.

Re: Bridged networking of Win7 Guest does not work

Posted: 15. Oct 2012, 20:46
by metrojack
Not sure this is proved conclusively. after all ipconfig on the guest machine shows that the correct ip number has been assigned by the router. its just that it looks like the web packets are not being correctly routed via that ip across the bridge. I have written to Draytek in the meantime to find out if there is limitation on the number of mac numbers per port built into that router 2830 and I'll report back if so. I wasnt able to find any configuration for that particular setting.

Re: Bridged networking of Win7 Guest does not work

Posted: 15. Oct 2012, 21:08
by Y E T I
host = inet 160.85.135.28 netmask 0xffffff00 broadcast 160.85.135.255
guest = 169.254.38.79(Preferred)

Does not look like it is the same subnet. in fact it appears the guest is getting an apipa address to me.

Re: Bridged networking of Win7 Guest does not work

Posted: 16. Oct 2012, 02:45
by BillG
Indeed. And APIPA addresses are not routable (by design).

Re: Bridged networking of Win7 Guest does not work

Posted: 28. Oct 2012, 21:31
by metrojack
Unfortunately, after 2 emails Draytek have simply not replied to me. So im no longer such a big fan. thank god this wasnt a critical scenario. Anyway, I still cannot get the guest machine to surf the web reliably when the draytek vigor router is set to 'bind IP to mac'. If I switch that off then surfing the web works through the guest machine but of course thats not of much use to my home networking arrangement.