视窗
loading...
您现在的位置:首页 > IT认证 > Linux认证 >

DHCP+PXE配置文件


 #一个简单的默认dhcp服务器配置文件/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服务器

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

    #放在/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服务器,可以和dhcp服务器不在同一个机器上}

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

    #打开tftp chkconfig tftp ——level 345 on vi /etc/xinetd.d/tftp #看看内容,不用改

    cd /tftpboot/ mkdir pxelinux.cfg vi default

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

    #default的内容如下DEFAULT install PROMPT 1 LABEL install FC5-x86 KERNEL vmlinuz APPEND initrd=initrd.img devfs=nomount ramdisk_size=16384

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

    拷贝光盘的/images/pxeboot/或者FC5/isolinux下面的initrd.img和vmlinuz到/tftpboot下,注意,必须用光盘上的,不能用硬盘的。

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

    #启动tftp服务/etc/init.d/xinetd restart

閵嗏偓

閵嗏偓

閵嗘劕鍘ょ拹锝咃紣閺勫骸鎷伴悧鍫熸綀鐠囧瓨妲戦妴锟�
閺堫剛鐝柈銊ュ瀻娣団剝浼呴弶銉︾爱娴滃簼绨伴懕鏃傜秹閿涳拷鐎电娴嗘潪鐣屾畱娣団剝浼呴幋鎴滄粦閸旀稒鐪伴弽鍥ㄦ娣団剝浼呴惃鍕毉婢跺嫸绱�閹存垳婊戠亸濠囧櫢娴f粏鈧懐娈戦悧鍫熸綀閽佹ぞ缍旈弶鍐跨礉鐎佃鍨滄禒顒冩祮鏉炵晫娈戞穱鈩冧紖婵″倹婀佸鍌濐唴閹存牗婀佹笟鍨綀閹存牞绻氬▔鏇氫繆閹垵顕崣濠冩閼辨梻閮撮幋鎴滄粦閿涘本婀扮粩娆庣窗缁斿宓嗛崚鐘绘珟閿涳拷鐎电懓甯崚娑樺敶鐎硅鍨滄禒顒佸姽閹板繑鏁禒姗€鈧倸缍嬮惃鍕归柊顒婄礉閼辨梻閮撮弬鐟扮础閿涙岸鍋栨禒锟�:webmaster@jscj.com閵嗏偓閻絻鐦介敍锟�4008816886

相关文章

无相关信息
更新时间2022-03-13 11:11:02【至顶部↑】
联系我们 | 邮件: webmaster@jscj.com | 客服热线电话:4008816886(QQ同号) |  娣诲姞瀹㈡湇寰俊

付款方式留言簿投诉中心网站纠错二维码手机版

客服电话: