LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   CentOS VMware Server 2X and DHCP (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/centos-vmware-server-2x-and-dhcp-804860/)

metallica1973 04-28-2010 08:49 PM

CentOS VMware Server 2X and DHCP
 
I have setup a VM machine of XP pro using VMware Server 2X on a CentOS server and noticed that when windows boots up it grabs a ip address from the DHCPD server in VMware and not from the DHCP server from the CentOS server where is resides. So:
PHP Code:

CentOS--DHCPD---VMware Server 2X----DHCPD-----VM(XP Pro)--192.168.3.35
192.168.3.1
(gateway)            192.168.3.2(gateway

I want my XP pro box to grab an ip address from my CentOS box and not from the VMware Service itself. So:
PHP Code:

CentOS--DHCPD---VMware Server 2X----DHCPD-----VM(XP Pro)--192.168.3.35
192.168.3.1
(gateway)            192.168.3.1(gateway

I figured out how to disable dhcpd from the /etc/init.d/vmware script but I cant figure out how to get this configuration?

kbp 04-29-2010 12:56 AM

Why don't you just give the vm a bridged connection ?

metallica1973 04-29-2010 07:31 PM

I have bridged the connection and it still doesnt grab an ip address from the dhcpd server that it resides on? There is two interfaces, vmnet0 is bridged and vmnet8 is not. ??????

kbp 04-29-2010 07:46 PM

If the vm has a bridged network connection it shouldn't be getting DHCP offers from the vmware-dhcpd, they're only for nat and host-only connections

<edit>The vmnet0(bridged) connection should get a dhcp offer from the host and the vnnet8(NAT) connection should get it's dhcp offer from vmware</edit>

metallica1973 04-29-2010 08:26 PM

I want vmnet8 to grab it from the CentOS box and not from VMware.

kbp 04-29-2010 08:58 PM

The way dhcp works, the client will usually accept the first offer it receives, and the vmware-dhcpd listening on the vmnet8 interface will always be the quickest response. Maybe you could disable the vmware-dhcpd and make the host dhcpd bind to the vmnet interfaces but I don't think it's easy or even possible.. otherwise you would need a dhcp proxy etc...

<edit>can I ask why you need to do this ?... </edit>

metallica1973 04-29-2010 10:39 PM

I have this server inside the network and I dont need another dhcpd inside of it shelling out IP's and I want it to be part of the existing subnet. By the way thanks for all your help. Also I want to be more well versed with VMware and it network configurations.

kbp 04-30-2010 01:30 AM

The vmware dhcpd *only* provides addresses to virtual machines attached to vmnet1 and vmnet8 on the host, it is not accessible from outside your host so you don't need to worry about any conflicts etc with the rest of your network.

metallica1973 04-30-2010 06:34 PM

thanks


All times are GMT -5. The time now is 04:47 AM.