DHCP and centos

Hello
i have create vistual machine on local server with centos 5 OS
main OS is windows 2008

is it possible to run dhcp on centos and all other local device get their ip from this vm ?

if you mean to have a virtual centos dhcp server and the win2008 host box gets its ip address from that, it would only work as long as you do not reboot/shutdown the win2008 box ...

if your win2008 host box already has a static ip address or gets its dhcp address from another dhcp server (i.e., your router) and you want the centos box to serve dhcp addresses to other boxes in the subnet, there should be no problem doing so as long as your centos dhcp server is online before and while any of the other servers are online ...

yep i use VMware Workstation
windows 2008 has this network details:
ip:192.168.1.3
gateway:192.168.1.1
and get its ip from router

and so linux-centos-vm use the same network .(vmware network )
192.168.1.13

now i want to run dhcp service on linux box.
so any device try to connect internet, connect to this vm and get ip from linux instead of main router or main win2008

im confused on dhcp configuration
subnet gateway

that could work as long as the other devices are on the same subnet as the centos dhcp server ... as for dhcp, configuration -- see man dhcpd ...

1 Like

so for configure server to only share internet for other device :
run dhcp and configure it (check gateway subnet) ?
no other network configuration should i do ?