Setup DHCP Server CentOS 6

-Install DHCP server
# yum -y install dhcp

-Backup dhcpd.conf
# mv /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.asli

-File sampel default konfigurasi dhcp ada di /usr/share/doc/dhcp-versidhcp/dhcpd.conf.sample
Copy file tersebut ke /etc/dhcpd.conf untuk diedit.
# cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

-Edit /etc/dhcp/dhcpd.conf:
# vi /etc/dhcp/dhcpd.conf

-Edit /etc/sysconfig/dhcpd disetting untuk listen pada eth1 (DHCP listen):
# vi /etc/sysconfig/dhcpd

-To make the dhcp server start at boot time, issue the commands:
# chkconfig dhcpd on

-Restart service DHCP
# service dhcpd restart

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *