服务器端:10.10.10.30
服务器端已配置好yum
客户端:10.10.10.211 Mac 00:0C:29:32:E0:0C
客户端Mac地址查询:
         Linux:ifconfig |grep eth0
    windows:ipconfig/all

一、安装DHCP服务器
yum install -y dchpd

二、修改dhcpd.conf配置文件
cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
vim /etc/dhcpd.conf
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  
#
ddns-update-style interim;
ignore client-updates;
subnet 10.10.10.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  10.10.10.30;
        option subnet-mask              255.255.255.0;

#       option nis-domain               "domain.org";
#       option domain-name              "domain.org";
#       option domain-name-servers      192.168.1.1;

        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.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 10.10.10.200 10.10.10.240;
        default-lease-time 21600;
        max-lease-time 43200;

        # we want the nameserver to appear at a fixed address
        host ns {
#               next-server marvin.redhat.com;
                hardware ethernet 00:0C:29:32:E0:0C;
                fixed-address 10.10.10.211;
        }
}

三、客户端测试
Linux客户端:/etc/init.d/network restart
         ifconfig