加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码门户网 (https://www.92codes.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

pxe无人值守智能安装linux

发布时间:2016-09-26 17:43:06 所属栏目:Linux 来源:站长网
导读:目前为止安装操作系统的途径相当的多,有光盘安装,U盘安装(当今比较流行),还有就是我今天要谈到的网卡安装,对于普通的个人PC机而言使用光盘或者U盘安装完

配置dhcp服务器:一下是我的dhcpd.conf的配置参数,其中网段部分你可以根据自己的需求设置,要着重注意的是next-server参数(用于指明你的tftp服务器位置)和filename参数(指明你的pxe驱动位置)

#
# DHCP Server Configuration file.
ddns-update-style interim;
ignore client-updates;
subnet 192.168.111.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.111.254;
option subnet-mask 255.255.255.0;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.111.128 192.168.111.200;
default-lease-time 21600;
max-lease-time 43200;
# --- tftp server
next-server 192.168.111.10;
# --- pxe
filename "pxelinux.0";
}

启动dhcp服务

pxe无人值守智能安装linux

B.tftp服务器的搭建同样使用yum安装,有图有真相

pxe无人值守智能安装linux

对于tftp服务器,它的启动是用到超级守护进程的,所以要配置它的启动脚本/etc/xinetd.d/tftp,一下是我的配置参数

service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}

然后重新启动超级守护进程

pxe无人值守智能安装linux

(编辑:源码门户网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读