[root@www ~]# yum install tftp-server -y 安装tftp服务 安装完启动 [root@www mnt]# vi /etc/xinetd.d/tftp 修改tfpt配置service tftp{ disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -u nobody -s /tftpboot per_source = 11 cps = 100 2 flags = IPv4}[root@www ~]# netstat -tunlp |grep 69 确保69端口打开状态[root@www ~]# yum install dhcp -y 安装dhcp服务(安装过程出错,卸载dhclient安装成功)[root@www ~]# vi /etc/dhcp/dhcpd.conf 修改dhcp配置文件option domain-name "cnnb.com";option domain-name-server 220.189.220.67;filename "pxelinux.0";net-server 192.168.0.241;default-lease-time 600;max-lease-time 7200;subnet 192.168.0.0 netmask 255.255.255.0{range 192.168.0.242 192.168.0.243;option broadcast-address 192.168.0.0;}[root@www mnt]# mkdir -p /tftpboot 创建dhcp服务指定目录[root@www tftpboot]# cd /tftpboot/ 进入目录[root@localhost tftpboot]# yum install syslinux -y[root@www tftpboot]# cp /usr/share/syslinux/pxelinux.0 ./ 复制pxelinux.0配置文件到/tftpboot[root@www tftpboot]# mount -t iso9660 /dev/cdrom /mnt/cdrom/ 挂载centos系统镜像[root@localhost tftpboot]# cp /mnt/cdrom/isolinux/vmlinuz ./[root@localhost tftpboot]# cp /mnt/cdrom/isolinux/initrd.img ./[root@www tftpboot]# mkdir -p pxelinux.cfg 创建PXE服务的配置文件夹[root@www tftpboot]# cp /mnt/cdrom/isolinux//isolinux.cfg pxelinux.cfg/default 复制ISO镜像中的isolinux.cfg 并重命名为default[root@www tftpboot]# vi pxelinux.cfg/default 配置默认的配置default linux#prompt 1timeout 10display boot.msgmenu background splash.jpgmenu title Welcome to CentOS 6.0!menu color border 0 #ffffffff #00000000menu color sel 7 #ffffffff #ff000000menu color title 0 #ffffffff #00000000menu color tabmsg 0 #ffffffff #00000000menu color unsel 0 #ffffffff #00000000menu color hotsel 0 #ff000000 #ffffffffmenu color hotkey 7 #ffffffff #ff000000menu color scrollbar 0 #ffffffff #00000000display boot.msgF1 boot.msgF2 options.msgF3 general.msgF4 param.msgF5 rescue.msglabel linuxkernel vmlinuzappend ks=nfs:192.168.0.241:/centosinstall/ks.cfg ksdevice=eth0 initrd=initrd.imglabel linux menu label ^Install or upgrade an existing system menu default kernel vmlinuz append initrd=initrd.imglabel vesa menu label Install system with ^basic video driver kernel vmlinuz append initrd=initrd.img xdriver=vesa nomodesetlabel rescue menu label ^Rescue installed system kernel vmlinuz append initrd=initrd.img rescuelabel local menu label Boot from ^local drive localboot 0xffff
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索menu
, color
, root
, 配置
, www
, domain占用cp
tftp 烧写镜像
nfs tftp、tftp和nfs、tftpd32 dhcp配置、tftpd32 dhcp使用方法、tftpd32怎么设置dhcp,以便于您获取更多的相关知识。
时间: 2024-11-01 19:14:29