Page 1 of 1

Virtualbox 3: Bridged Networking, Now?

Posted: 8. Jul 2009, 11:29
by tkalfaoglu
How do we exactly configure bridged networking for a Windows guest?
I booted the windows client and defined it for static IP, and gave the gateway address of the Linux host's gateway address. I also configured VirtualBox's GUI to use eth0 and bridged networking..
I wanted to give this VM its own IP address..

The Centos linux host has 10 IP's assigned to it, as subinterfaces of eth0.. I removed one of the subinterfaces, and put:

/etc/vbox/interfaces
# <interface name> <user name> [<bridge>]
vbox0 turgut br0

What else do I need to do? I mean don't I need to define something manually about that IP address?
Should I have left it defined as a sub-interface of eth0 ?
Do I need to route anything particularly?

I read the manual which just touts how easy it is to set it all up.. :(

thanks, -t

Re: Virtualbox 3: Bridged Networking, Now?

Posted: 8. Jul 2009, 16:20
by Perryg
I have a few questions:
  • Do you have a router?
  • How is the Host connected to the Internet?
  • Have you tried just using DHCP in the guest to see if it will work correctly? (You can switch back to static once you get it to work).

Re: Virtualbox 3: Bridged Networking, Now?

Posted: 8. Jul 2009, 16:24
by tkalfaoglu
Perryg wrote:I have a few questions:
  • Do you have a router?
  • How is the Host connected to the Internet?
  • Have you tried just using DHCP in the guest to see if it will work correctly? (You can switch back to static once you get it to work).
Hi there..Yes there is a router upstream, it's a data center.
eth0 is the connection point of the host.
No, I haven't tried DHCP, but I don't want to use NAT networking -- because the clients need to provide services.

Thanks, -turgut

Re: Virtualbox 3: Bridged Networking, Now?

Posted: 8. Jul 2009, 17:42
by Perryg
Well what I would try is to unbind the address that you want to use for the guest from the host. (You might need to reboot the host for this to truly clear)
Put that address in the guest (static) along with the netmask and the gateway that the data center provided and make sure that you have the right DNS in the guest.
Put it in bridged and give it a shot. You may also need to set the Win guest to use the IntelPro/1000 server for the virtual adapter.

I am also confused by this:
/etc/vbox/interfaces
# <interface name> <user name> [<bridge>]
vbox0 turgut br0
I let VBox setup the bridge and do not need these entries in my Ubuntu host to get the bridge to work. Of course I have not tried this in CentOS and it may be necessary.