$ yum install dhcp*
$ chkconfig dhcpd on
Copy dhcp ‘s sample file and configure dhcp server
usr/share/doc/dhcp*/dhcpd.conf.sample
$ cp /usr/share/doc/dhcp/dhcpd.conf.sample /etc/dhcpd.conf
$ vim /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.10.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
#option nis-domain "abc.com";
#option domain-name "abc.com";
option domain-name-servers 192.168.10.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
option netbios-name-servers 192.168.10.1;
# --- Selects point-to-point node (default is hybrid). Don't change this
unless
# -- you understand Netbios very well
# option netbios-node-type 2;
*#** range dynamic-bootp 192.168.1.100 192.168.1.100;*
default-lease-time 21600;
max-lease-time 43200;
#If you want to release IP for only your registered MAC address in your configuration
# we want the nameserver to appear at a fixed address
host COMPUTERNAME {
hardware ethernet 00:1A:64:A2:BB:88;
fixed-address 192.168.10.3;
}
host COMPUTERNAME2 {
hardware ethernet 00:1C:90:25:92:G1;
fixed-address 192.168.10.4;
}