Thomas Mullaly

DevOps, Security and IT Leadership

DHCPD

[root@dhcpdns ~]# yum -y install dhcp
[root@dhcpdns ~]# vi /etc/dhcp/dhcpd.conf
# create new
# specify domain name
option domain-name "cs.umb.edu";
# specify DNS's hostname or IP address
option domain-name-servers 172.16.25.2;
# default lease time
default-lease-time 600;
# max lease time
max-lease-time 7200;
# this DHCP server to be declared valid
authoritative;
# specify network address and subnet mask
subnet 172.16.25.0 netmask 255.255.255.0 {
# specify the range of lease IP address
range dynamic-bootp 172.16.25.50 172.16.25.254;
# specify broadcast address
option broadcast-address 172.16.25.255;
# specify default gateway
option routers 172.16.25.2;
# filename "pxelinux.0";
# next-server <pxe host>;
}
[root@dlp ~]#
/etc/rc.d/init.d/dhcpd start
Starting dhcpd:
[  OK  ]
[root@dlp ~]# chkconfig dhcpd on