码迷,mamicode.com
首页 > 系统相关 > 详细

pxe linux

时间:2018-09-14 21:39:31      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:ted   range   strong   substring   ESS   iso   tar.gz   update   tftp   

dhcp(client+server): isc dhcp(iso.org) 3.1.3比较小巧且能在2.6.32.27下编译通过,可用于pxe boot。
root [ /etc ]# cat dhcpd.conf 
#allow booting;
#allow bootp;

default-lease-time 3600;
max-lease-time 9200;
ddns-update-style ad-hoc;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.56.255;
option routers 192.168.56.2;
option domain-name-servers 192.168.1.1;

subnet 192.168.56.0 netmask 255.255.255.0 {
    range 192.168.56.130 192.168.56.139;
}

option space PXE;
class "PXEclients" {
    match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
    #where the next-server <server-ip> should be replaced with the IP address of the tftp server.
    filename "pxelinux.0";
    next-server 192.168.56.1;
    #option tftp-server-name "192.168.56.1";
}
 
inetutils: including ftpd, inetd, rexecd, rlogind, rshd, talkd, telnetd, tftpd, uucpd and whois
inetutils-1.5.tar.gz is in the lfs-6.3 live cd
./configure --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info --disable-clients --disable-logger --disable-syslogd
root [ /mnt/sdb1/src/inetutils-1.5 ]# cat /etc/inetd.conf 
tftp           dgram   udp   wait   root  /usr/sbin/tftpd       -l /boot

pxe linux

标签:ted   range   strong   substring   ESS   iso   tar.gz   update   tftp   

原文地址:https://www.cnblogs.com/realplay/p/9648856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!