Cenos7搭建PXE环境(Legacy/BIOS模式) | 您所在的位置:网站首页 › bios怎么改成legacy模式 › Cenos7搭建PXE环境(Legacy/BIOS模式) |
Cenos7搭建PXE环境(Legacy/BIOS模式)
由于工作中需要使用PXE环境进行一些网卡PXE功能验证,故自己尝试搭建了一个PXE环境,但不是很完善,不适用于企业级生产环境,只作为一个参考。 PXE=httpd+dhcp+tftp+xinetd 系统安装启动模式有两种,一种是UEFI模式,另外一种是Legacy模式,DELL服务器也叫BIOS模式,本文叫Legacy模式(Bios模式)。 物理OS: CentOS7.6 PXEOS: CentOS7.6 基于YUM安装DHCP、TFTP、HTTPD服务,命令如下: yum install httpd httpd-devel dhcp* tftp-server xinetd -y1. 配置 tftp,: cat>/etc/xinetd.d/tftp option routers 192.168.10.1; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.10.180 192.168.10.200; } EOF6.启动各个服务, systemctl start httpd systemctl start tftp systemctl start xinetd systemctl start dhcpd 在这里一般会遇到dhcpd启动失败的情况,多数都是配置文件的IP地址写错了 这个时候要检查 /var/lib/tftpboot/pxelinux.cfg/default /var/www/html/ks.cfg /etc/dhcp/dhcpd.conf |
CopyRight 2018-2019 实验室设备网 版权所有 |