Configure a static and dynamic dhcp server on CentOS 5.2
Posted by Martin Perron on Oct 29, 2008 in HowTo - Linux • No commentsyum -y install dhcp
mv /etc/dhcpd.conf /etc/dhcpd.conf.ori
cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf
to configure your server, your got all the example:
vi /etc/dhcpd.conf
to force an interface, add the following line: DHCPDARGS=eth0
vi /etc/sysconfig/dhcpd
Verify that the dhcp server start at bootup:
chkconfig –list | grep dhcp
If not:
chkconfig –levels 235 dhcpd on
Start the service:
/etc/init.d/dhcpd start
Reference: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-server.html
