需要用到的服务:dhcp服务,tftp服务,ftp服务器或http服务器
1.dhcp服务器
装包,写配置,启服务
dnf install dhcp-server
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
filename "pxelinux.0";
next-server 192.168.147.128;
subnet 192.168.147.0 netmask 255.255.255.0 {
option routers 192.168.147.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 114.114.114.114;
range dynamic-bootp 192.168.147.200 192.168.147.254;
default-lease-time 60;
max-lease-time 60;
}
查看端口
netstat -lntup | grep dhcp
可以看到67号端口启用
2.ftp服务
dnf install tftp-server
[root@localhost ~]# systemctl status tftp.socket #查看状态