配置文件位置 /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.60 192.168.10.119;
option domain-name-servers 192.168.10.61;
option domain-name "server.qv-china.com";
option routers 192.168.10.5;
option broadcast-address 192.168.10.255;
default-lease-time 60;
max-lease-time 720;
}
host demo1 {
hardware ethernet 08:00:07:26:c0:a5;
fixed-address 192.168.10.20;
}
指定配置文件运行
dhcpd -cf /dhcpd.conf
service dhcpd restart
/var/log/messages调试信息
多个网卡 指定网卡配置文件中网卡接口
DHCPDARGS=eth0;
/etc/sysconfig
vim dhcpd