Problem with Network Bridging on Windows Server 2008

Discussions related to using VirtualBox on Windows hosts.
Post Reply
anthony.burns
Posts: 1
Joined: 24. Oct 2008, 01:46

Problem with Network Bridging on Windows Server 2008

Post by anthony.burns »

I'm attempting to set up a bridge between my host adapter and the tap adapter VirtualBox created. The host is connected directly to the Internet via the cable modem (no router). When I attempt to bridge the host adapter to the tap adapter, the bridge complains of not being able to obtain an IP address and my host adapter loses connection to the internet as well.
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 »

This is because your internet Modem keeps a record of connected MAC addresses and will only provide an IP for the first MAC address it sees. If you power cycle your modem, it will clear that cache. When you create a bridge in Windows, it will generate a new MAC address just for the bridge. As opposed to Linux, which uses the first physical interface as it's MAC.
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.
rab
Posts: 6
Joined: 28. Oct 2008, 18:55

Post by rab »

Sasquatch wrote:When you create a bridge in Windows, it will generate a new MAC address just for the bridge. As opposed to Linux, which uses the first physical interface as it's MAC.
So does that mean that packets from both the tap adapter and the host adapter will go out on the network with the bridge's mac address? Is there any way to have each source to the bridge send packets with distinct mac addresses?
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 »

They already send packets with distinct MAC addresses, and that is the whole problem. The Guest uses the MAC shown in the settings, the Host uses the MAC address given to the Bridge interface, not the physical interface. Power Cycle your modem and only the first request will obtain an IP.

Since you only have one computer attached to the modem, why do you want to bridge it? You can use NAT for internet just fine. And if you want to be able to communicate to your Guest from the Host, read the manual about port forwarding, or just leave the virtual interface and remove the bridge. Put an IP address in the same range on both ends of the TAP adapter (Host and Guest) and you're done.
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.
rab
Posts: 6
Joined: 28. Oct 2008, 18:55

Post by rab »

Sasquatch wrote:They already send packets with distinct MAC addresses, and that is the whole problem. The Guest uses the MAC shown in the settings, the Host uses the MAC address given to the Bridge interface, not the physical interface. Power Cycle your modem and only the first request will obtain an IP.

Since you only have one computer attached to the modem, why do you want to bridge it?
My problem is the opposite of the original poster's. I want both the guest and the host to use DHCP, but my DHCP server sees both requests as coming from the same mac address. I'm not using win2008 (XP in my case), and I see all packets from host and guest as having the bridge's mac address in the source field of the ethernet packets, as seen from the network. Is it possible the XP bridge is doing something like NAT but for ethernet?
yvonney
Posts: 16
Joined: 18. Aug 2008, 01:28

Post by yvonney »

with server 2008 host and a linux guest I'm able to use my computer wireless and VBox together to a bridge in server 2008 host of course.. much to my surprise no problems connecting.... and I have the bridge set to the gatwary of the router with a static ip address in the IP4 part of the bridge internet setting..

THING IS: I'm gonna have to report a bug or some incompatibility as I get a total blue screen after while ONLY when I'm running this way... as NAT all is fine...

best wishes everybody!!
hey, I heard that this could not be done with wireless being bridged to VBox guess..

thought?
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 »

Yes, wireless and bridge doesn't always work. According to MS, it depends if the driver for your wireless supports promiscuous mode. This is something that is most of the time not supported. Some are having success with that, they are just lucky.
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.
yvonney
Posts: 16
Joined: 18. Aug 2008, 01:28

Post by yvonney »

nice.. interesting. Thing is I've pondered that probably there a few ways to compensate, tweak etc. etc. as I do like the benefits of using the Host Interface feature....
I DO still get Linux Guest Freeze then a REBOOT once or twice a day though not like when I was using the network interface and bridging to my wireless card...

There's SO many variables I'll just enjoy and wait for what the updates may bring...

unless? hehehehe
Post Reply