How do I properly bridge a host NIC with a static IP to a guest virtual machine?
Posted on 2007-11-14
May I have some assistance to verify that I know how to setup a bridged network correctly:
The host machine is Windows XP running VM Workstation 6 with two NIC installed.
Nic 1 is DHCP dynamic IP for example 188.8.131.52 for regular internet surfing.
Nic 2 is static IP also a different subnet for example 184.108.40.206 to host webserver.
I want a VM guest to use Nic 2 for internet access and webserver will run here.
Seemed straightforward: Via Start Menu -> Manage Virtual Networks i selected the desired adapter for VMnet0. Set the guest machine to use VMnet0 in bridge mode. My understanding is that this makes the NIC available direct to the guest OS, as though it was an installed device.
Thus it would make sense that in the guest OS I enter the same IP, subnet, and gateway that the host NIC is setup with?
The guest OS, CentOS 5, cannot access the internet in this way and cannot initialize its eth0 reporting that the IP configured is already in use.
If that is the correct way to use bridged networking then maybe it is a CentOS configuration issue but as a first step I want to make sure I'm not embarassing myself by having no idea how to setup the bridge to begin with. Thanks!!