1.配Server IP为:192.168.0.20 ,安装镜像挂载到/mnt下。
2. 安装tftp 服务 、dhcp服务和ftp服务.
安装前先查看这些服务是否已安装
# rpm -qa |grep tftp
# rpm -qa |grep dhcp
# rpm -qa |grep vsftpd
未安装的进行安装
#cd /mnt/RedHat/RPMS/ 在RHEL5 中是cd /mnt/Server
#rpm �Civh dhcp-*
#rpm �Civh tftp-*
#rpm �Civh vsftpd*
3.配置启动DHCP服务
#cp cp /usr/share/doc/dhcp-
3.0.1
/dhcpd.conf.sample /etc/dhcpd.conf
#vi /etc/dhcpd.conf
添加filename "pxelinux.0"; //指定bootloader文件
next-server 192.168.0.20; //指定索取pxelinux.0的tftp服务器IP
添加的这两行可在大括号外面,也可在里面,next-server选项可不写,但建议最好写上
配置举例:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
filename "pxelinux.0";
next-server 192.168.0.20;
}
# vi /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
}
…………………………………………………………………………………………
|
#cd /mnt/ RedHat/RPMS/
#rpm �Civh *kickstart*
#system-config-kickstart (在图形界面终端打此命令)
根据需要配置ks.cfg.