网络无人职守安装linux
Writen BY HPLJ-2007.12.4
1 配置启动安装服务器
1)install and configure dhcp service
/etc/dhcpd.conf
such as
option domain-name "mydomain";
ddns-update-style none;
max-lease-time 7200;
server-name "bootserver";
default-lease-time 600;
allow booting;
allow bootp;
subnet 192.168.138.0 netmask 255.255.255.0 {
range 192.168.138.1 192.168.138.254;
}
group pxe {
filename "/pxelinux.0";
host client1 { hardware ethernet 00:0C:29:70:24:5B;
fixed-address 192.168.138.30;
}
}
#文件 pxelinux.0(在 TFTP 服务器的根目录中)将作为启动映像被网卡ROM里的PXE客户端载入内存并运行。
每增加一台需安装的机器,我们需在dhcpd.conf中增加一条host条目,将客户机的MAC地址输入进去,同时分配一个IP地址,如果
不输入MAC地址,客户机将无法通过DHCP取的IP地址。
2)install and configure tftp service
/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
}
#将disable = yes 改成disable = no
重启xinetd服务,以使tftp服务生效;
#service xinetd restart
