预览加载中,请您耐心等待几秒...
1/5
2/5
3/5
4/5
5/5

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

安装tftp-server,dhcp,httpd,通过httpd提供安装所需文件的下载 [root@localhost~]#yum-yinstalltftp-servertftpxinetdhttpddhcp 配置tftp提供下载: [root@localhost~]#vim/etc/xinetd.d/tftp servicetftp { socket_type=dgram protocol=udp wait=yes user=root server=/usr/sbin/in.tftpd server_args=-s/tftpboot disable=no##把yes改为no per_source=11 cps=1002 flags=IPv4 } [root@localhost~]#/etc/init.d/xinetdrestart##重启xinetd服务器,使配置生效 [root@localhost~]#mkdir/tftpboot##建立tftp服务根目录 [root@localhost~]#cp/mnt/isolinux/*.msg/tftpboot/ [root@localhost~]#cp/usr/lib/syslinux/pxelinux.0/tftpboot/ [root@localhost~]#cp/mnt/isolinux/vmlinuz/mnt/isolinux/initrd.img/tftpboot/ [root@localhost~]#mkdir/tftpboot/pxelinux.cfg [root@localhost~]#cp/mnt/isolinux/isolinux.cfg/tftpboot/pxelinux.cfg/default [root@localhost~]#vim/tftpboot/pxelinux.cfg/default defaultlinux prompt1 timeout60##把原来600改成60,设置等待时间 displayboot.msg F1boot.msg F2options.msg F3general.msg F4param.msg F5rescue.msg labellinux kernelvmlinuz appendinitrd=initrd.imgks=http://192.168.5.2/ks.cfg##设置获取自动安装的配置文件ks.cfg的路方法 #NFS获取ks.cfg配置文件 #ks=nfs:192.168.0.254:/ks.cfg #ftp获取ks.cfg配置文件 #ks=ftp://192.168.5.2/ks.cfg labeltext kernelvmlinuz appendinitrd=initrd.imgtext labelks kernelvmlinuz appendksinitrd=initrd.img labellocal localboot1 labelmemtest86 kernelmemtest append- 配置dhcp服务器: [root@localhost~]#cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf [root@localhost~]#vim/etc/dhcpd.conf ddns-update-stylenone; default-lease-time3600; max-lease-time7200; next-server192.168.5.2;#tftp服务器地址 filename"/pxelinux.0";#安装所需文件 subnet192.168.5.0netmask255.255.255.0{ #---defaultgateway optionrouters192.168.5.1; optionsubnet-mask255.255.255.0; optionnis-domain"linuxdemon.com"; optiondomain-name"linuxdemon.com"; optiondomain-name-servers192.168.5.2; optiontime-offset-18000;#EasternStandardTime rangedynamic-bootp192.168.5.100192.168.5.200; default-lease-time21600; max-lease-time43200; #wewantthenameservertoappearatafixedaddress #hostns{ #next-servermarvin.redhat.com; #hardwareeth