一、dhcpd服务配置 1cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf 2vim /etc/dhcp/dhcpd.conf #dhcp根据实际环境配置 3subnet 192.168.1.0 netmask 255.255.255.0 { 4 range 192.168.1.100 192.168.1.200; 5 option domain-name-servers server.example.com; 6 option domain-name "8.8.8.8"; 7 option routers 192.168.1.254; 8 option broadcast-address 192.168.1.255; 9 next-server 192.168.1.89; 10 filename "pxelinux.0"; 11 default-lease-time 60000; 12 max-lease-time 720000; 13} 配置开机自启动 1systemctl restart dhcpd.service #启动dhcp服务 2systemctl enable dhcpd.service #随下次开机自动启动该服务 二、安装配置tftp-server syslinux tftp服务配置 1yum -y install syslinux tftp-server 2vim /etc/xinetd.d/tftp 3disa……
Continue reading