欢迎来到天天文库
浏览记录
ID:27573725
大小:77.83 KB
页数:5页
时间:2018-12-03
《linux系统安装pxedhcpnfstftp完全解析》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Pxe+dhcp+nfs+tftp网络安装linux系统详细解析Pxe+dhcp+nfs+tftp网络安装centos一、介绍简单原理介绍:无光软驱服务器通过PXE网卡泊动,从dhcp服务器获取IP通过tftp下载pxelinux.O文件找到pxelinux.cfg里的配文件,桜配界文件找着vmlinuz引导centos进入安装界曲',之肜选择NFS方式安装系统。另:如需要实现全內动安装要安装Kickstart软件包并配置。本文并不讨论二、环境说明本文测试环境及用到的软件Server:centos5.2dhcpnfstftpip:192.168.1
2、.251(此IP只需要与服务器网片和连,不管是什么都可以)三、安装配过程及基木讲解:安装相应的软件:yum-yinstalldhcp*nfs*tftp*1、配置tftp[code]more/etc/xinetd.d/tftp林default:off林description:Thetftpserverservesfilesusingthetrivialfiletransfer井protocol.Thetftpprotocolisoftenusedtobootdiskless林workstations,downloadconfigurationfi
3、lestonetwork-awareprinters,林andtostarttheinstallationprocessforsomeoperatingsystems.林trad:liuyu林blog:liuyu.blog.51cto.com#bbs:www.linuxtone.orgservicetftpdisable=nosocket_typeprotocolwaituser#默汄是yes改为no=dgram=udp=yes=rootserverserver_argsper_sourcecpsflags=/usr/sbin/in.tftpd=
4、-unobody-s/tftpboot#添力口nobody可以访问=11=1002=IPv4}[/code]舉:启xinetd服务:/etc/init.d/xinetdrestart査看tftp是否启动:#chkconfig—list
5、greptftptftp:on2、配Hnfsmount/iso/CentOS-5.2-i386-bin-1of6.iso/mnt-tiso9660-oloop#我是挂载的镜像文件,你们可以挂载光驱echo”/tftpboot*(ro,sync)n»/etc/exportsecho"/mnt*(ro,sync)n»/e
6、tc/exports#此二步设置共享的H录一定要和ISO挂载的镜像在同-目录exportfs-a#使配R/k效/etc/init.d/portmapstart&&/etc/init.d/nfsstart#重后服务Showmount-elocalhost•查共享的M泉Exportlistforlocalhost:/mnt*/tftpboot*3、酉己置dhcpH接copy我的配置[code]#more/etc/dhcpd.conf林林DHCPServerConfigurationfile.林see/usr/share/doc/dhcp*/dhcpd.
7、conf.sample林林trad:liuyu林blog:liuyu.blog.51cto.com林bbs:www.linuxtone.orgddns-update-styleinterim;ignoreclient-updates;allowbooting;allowbootp;subnet192.168.1.0netmask255.255.255.0{optionrouters192.168.1.251;optionsubnet-mask255.255.255.0;optiondomain-name-servers192.168.1.251;#
8、木土也IPoptiontime-offset-18000;#EasternStandardTimerangedynamic-bootp192.168.1.12192.168.1.254;#要分区的IPdefault-lease-time21600;max-lease-time43200;井GroupthePXEbootablehoststogether林PXE-specificconfigurationdirectives...next-server192.168.1.251;filenamenpxennux.O";#方便查找配置文件}[/code
9、]/etc/init.d/dhcpdstart启动服务4、配置pxe所需要的文件fcode]Mkdir/tftpboot/
此文档下载收益归作者所有