Working on PXE booting I used this script from...
http://eduardo-lago.blogspot.com/201...-diskless.html
... as my test DHCP script. Worked fine for loading (though the test got stuck on my init setup...) the first time I tried it. I had made a backup of my working config & pxeboot config, so I could swap them in and out of dhcpd.conf as needed (until I learn how to put them together into one one working config). When I copied the dhcpd.conf_pxeboot_config back to dhcpd.conf I got the error the service could not be started.
So I was wondering... what is wrong with this script:
vi dhcpd.conf_pxeboot_config
# dhcpd.conf
#
# DHCP configuration file for ISC dhcpd
#
# Use this to enble / disable dynamic dns updates globally.
ddns-update-style none;
# Definition of PXE-specific options
# Code 1: Multicast IP address of boot file server
# Code 2: UDP port that client should monitor for MTFTP responses
# Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
# Code 4: Number of seconds a client must listen for activity before trying
# to start a new MTFTP transfer
# Code 5: Number of seconds a client must listen before trying to restart
# a MTFTP transfer
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
subnet 192.168.1.0 netmask 255.255.255.0 {
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.5;
}
pool {
max-lease-time 86400;
default-lease-time 86400;
range 192.168.1.50 192.168.1.100;
allow unknown clients;
}
host rambox {
hardware ethernet 14:da:e9:af:02:f3;
fixed-address 192.168.1.201;
hostname rambox.sddomain.local;
}
}
#*************************************************************
#192.1168.1.5 = PXE server
#192.168.1.201 = PXE client