6.3 修改/etc/dhcp/dhcpd.conf 配置文件,或直接创建一个dhcpd.conf空文件,内容如下:
ddns-update-style interim;
ignore client-updates;
filename "pxelinux.0"; #pxelinux 启动文件位置;
next-server 192.168.100.254; #TFTP Server 的IP地址;
subnet 192.168.100.0 netmask 255.255.255.0 {
option routers 192.168.100.254;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.100.10 192.168.111.20;
default-lease-time 21600;
max-lease-time 43200;
}
6.4 多网卡问题
还有一个问题:如果运行dhcpd的机器有多于一个的网卡,还需要告诉dhcpd是工作在哪块网卡接口上的:
[root@skype ~]# vi /etc/sysconfig/dhcpd
DHCPDARGS="eth1"
6.5 启动DHCP服务
# /etc/init.d/dhcpd start
# chkconfig dhcpd on