vi /etc/dhcp/dhcpd.conf #文件里
subnet 192.168.80.0 netmask 255.255.255.0{ ##网段和掩码
range 192.168.80.88 192.168.80.99; ##地址范围
option boradcast-address 192.168.80.255;广播地址
option domain-name-servers 202.96.128.166; ## 202.96.128.166dns服务器地址,可按照这个填写
option domain-name "domain.example.org"; ##domain.example.org该网段的域名,可以省略
option routers 192.168.80.255; ##网关或者路由器地址
default-lease-time 600; ## 租约时间
max-lease-time 7200; ## 最大租约时间}
host 250
{
hardware ethernet 00:0c:29:9b:c8:34; ##00:0c:29:9b:c8:34是你要给的那台客户机的网卡编号
fixed-address 192.168.80.92; ##你给那台客户机的固定ip