射精一区欧美专区|国产精品66xx|亚洲视频一区导航|日韩欧美人妻精品中文|超碰婷婷xxnx|日韩无码综合激情|特级黄片一区二区|四虎日韩成人A√|久久精品内谢片|亚洲成a人无码电影

您現(xiàn)在的位置:首頁(yè) > IT認(rèn)證 > Linux認(rèn)證 >

DHCP+PXE配置文件


 #一個(gè)簡(jiǎn)單的默認(rèn)dhcp服務(wù)器配置文件/etc/dhcpd.conf ddns-update-style interim;

    subnet 172.16.0.0 netmask 255.255.255.0 { range 172.16.0.10 172.16.0.253;option routers 172.16.0.1;option subnet-mask 255.255.255.0;}

    #配置dhcp服務(wù)器

    ###################################

    #放在/etc/dhcpd.conf末尾就可以了option space PXE;option PXE.mtftp-ip code 1 = ip-address;class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";option vendor-class-identifier "PXEClient";vendor-option-space PXE;# At least one of the vendor-specific PXE options must be set in # order for the client boot ROMs to realize that we are a PXE-compliant # server. We set the MCAST IP address to 0.0.0.0 to tell the boot ROM # that we can't provide multicast TFTP (address 0.0.0.0 means no # address)。

    option PXE.mtftp-ip 0.0.0.0;# This is the name of the file the boot ROMs should download. filename "pxelinux.0";# This is the name of the server they should get it from. next-server 192.168.1.246; //tftp服務(wù)器,可以和dhcp服務(wù)器不在同一個(gè)機(jī)器上}

    ###################################

    #打開(kāi)tftp chkconfig tftp ——level 345 on vi /etc/xinetd.d/tftp #看看內(nèi)容,不用改

    cd /tftpboot/ mkdir pxelinux.cfg vi default

    ##################################

    #default的內(nèi)容如下DEFAULT install PROMPT 1 LABEL install FC5-x86 KERNEL vmlinuz APPEND initrd=initrd.img devfs=nomount ramdisk_size=16384

    #################################

    拷貝光盤(pán)的/images/pxeboot/或者FC5/isolinux下面的initrd.img和vmlinuz到/tftpboot下,注意,必須用光盤(pán)上的,不能用硬盤(pán)的。

    cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

    #啟動(dòng)tftp服務(wù)/etc/init.d/xinetd restart

相關(guān)文章

無(wú)相關(guān)信息
更新時(shí)間2022-03-13 11:11:02【至頂部↑】
聯(lián)系我們 | 郵件: | 客服熱線電話:4008816886(QQ同號(hào)) | 

付款方式留言簿投訴中心網(wǎng)站糾錯(cuò)二維碼手機(jī)版

客服電話: