# for explanation in french go to : http://www.delafond.org/traducmanfr/man/man5/dhcpd.conf.5.htmlddns-update-style none;allow booting;allow bootp;# Your dhcp server is not master on your network !#not authoritative;# Your dhcpd server is master on your network !authoritative;#not authoritative;#Interface where dhcpd is activeDHCPD_INTERFACE = "eth0";# Definition of PXE-specific options# Code 1: Multicast IP address of bootfile# 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 secondes a client must listen for activity before trying# to start a new MTFTP transfer# Code 5: Number of secondes a client must listen before trying to restart# a MTFTP transfer# define Option for the PXE classoption 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;#Define options for pxelinuxoption space pxelinux;option pxelinux.magic code 208 = string;option pxelinux.configfile code 209 = text;option pxelinux.pathprefix code 210 = text;option pxelinux.reboottime code 211 = unsigned integer 32;site-option-space "pxelinux";# These lines should be customized to your setup#option pxelinux.configfile "configs/common";#option pxelinux.pathprefix "/pxelinux/files/";#filename "/pxelinux/pxelinux.bin"; option pxelinux.magic f1:00:74:7e;option pxelinux.reboottime 30;#if exists dhcp-parameter-request-list { # Always send the PXELINUX options# append dhcp-parameter-request-list 208, 209, 210, 211;# append dhcp-parameter-request-list 208,211;# }#Class that determine the options for Etherboot 5.x requestsclass "Etherboot" {#if The vendor-class-identifier equal Etherboot-5.0match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";# filename define the file retrieve by the client, there nbgrub# our tftp is chrooted so is just the path to the filefilename "/etherboot/nbgrub";#Used by etherboot to detect a valid pxe dhcp serveroption vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer # if this field is not set the pxe client will ignore the answer !option vendor-class-identifier "Etherboot";vendor-option-space PXE;option PXE.mtftp-ip 0.0.0.0;# IP of you TFTP servernext-server ;}# create the Class PXEclass "PXE" {# if the "vendor-class-identifier" is set to "PXEClient" in the client dhcp requestmatch if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; # filename define the file retrieve by the client, there pxelinux.0# our tftp is chrooted so is just the path to the file# If you prefer use grub, use pxegrub compiled for your ethernet card.#filename "/PXEClient/pxegrub";filename "/X86PC/linux/linux.0";# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer# if this field is not set the pxe client will ignore the answer !option vendor-class-identifier "PXEClient"; vendor-option-space PXE;option PXE.mtftp-ip 0.0.0.0;# IP of you TFTP servernext-server ;}# the class know exist just for deny the response to other DHCP requestclass "known" { match hardware; one-lease-per-client on; ddns-updates on; ddns-domainname = ""; option domain-name ""; option domain-name-servers ; ddns-hostname = pick-first-value(ddns-hostname, option host-name); option fqdn.no-client-update on; set vendor_class_identifier = option vendor-class-identifier;}# TAG: COMPUTER_LIST_BEGIN#host compute9{# hardware ethernet 00:02:b3:3f:7e:b7;# fixed-address compute9;# TAG: COMPUTER_LIST_END# subnet 192.168.200.0 netmask 255.255.255.0 {subnet netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option routers 255.255.0.0; default-lease-time 28800; max-lease-time 86400; option domain-name ""; option domain-name-servers ; next-server ; pool { range 128.1.1.2 128.1.1.9;# deny members of "PXE";# deny members of "Etherboot"; }# pool {# range 192.168.200.200 192.168.200.254;# give an address of the the pool for PXE client and deny the other#allow members of "PXE";#deny members of "known";#allow members of "Etherboot";# }}
Internet Systems Consortium DHCP Server 4.1.2Copyright 2004-2010 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp//etc/dhcpd.conf line 76: semicolon expected.} ^/etc/dhcpd.conf line 100: expecting a parameter or declaration} ^/etc/dhcpd.conf line 122: subnet declarations not allowed here.subnet ^/etc/dhcpd.conf line 144: unexpected end of file}^Configuration file errors encountered -- exitingIf you did not get this software from ftp.isc.org, pleaseget the latest from ftp.isc.org and install that beforerequesting help.If you did get this software from ftp.isc.org and have notyet read the README, please read it before requesting help.If you intend to request help from the dhcp-server@isc.orgmailing list, please read the section on the README aboutsubmitting bug reports and requests for help.Please do not under any circumstances send requests forhelp directly to the authors of this software - pleasesend them to the appropriate mailing list as described inthe README file.exiting.
# for explanation in french go to : http://www.delafond.org/traducmanfr/man/man5/dhcpd.conf.5.htmlddns-update-style none;allow booting;allow bootp;# Your dhcp server is not master on your network !#not authoritative;# Your dhcpd server is master on your network !authoritative;#not authoritative;#Interface where dhcpd is activeDHCPD_INTERFACE = "eth0:9";# Definition of PXE-specific options# Code 1: Multicast IP address of bootfile# 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 secondes a client must listen for activity before trying# to start a new MTFTP transfer# Code 5: Number of secondes a client must listen before trying to restart# a MTFTP transfer# define Option for the PXE classoption 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;#Define options for pxelinuxoption space pxelinux;option pxelinux.magic code 208 = string;option pxelinux.configfile code 209 = text;option pxelinux.pathprefix code 210 = text;option pxelinux.reboottime code 211 = unsigned integer 32;site-option-space "pxelinux";# These lines should be customized to your setup#option pxelinux.configfile "configs/common";#option pxelinux.pathprefix "/pxelinux/files/";#filename "/pxelinux/pxelinux.bin"; option pxelinux.magic f1:00:74:7e;option pxelinux.reboottime 30;#if exists dhcp-parameter-request-list { # Always send the PXELINUX options# append dhcp-parameter-request-list 208, 209, 210, 211;# append dhcp-parameter-request-list 208,211;# }#Class that determine the options for Etherboot 5.x requestsclass "Etherboot" {#if The vendor-class-identifier equal Etherboot-5.0match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";# filename define the file retrieve by the client, there nbgrub# our tftp is chrooted so is just the path to the filefilename "/etherboot/nbgrub";#Used by etherboot to detect a valid pxe dhcp serveroption vendor-encapsulated-options 3c:09:45:74:68:65:72:62:6f:6f:74:ff;# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer # if this field is not set the pxe client will ignore the answer !option vendor-class-identifier "Etherboot";vendor-option-space PXE;option PXE.mtftp-ip 0.0.0.0;# IP of you TFTP servernext-server 192.168.1.2;}# create the Class PXEclass "PXE" {# if the "vendor-class-identifier" is set to "PXEClient" in the client dhcp requestmatch if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; # filename define the file retrieve by the client, there pxelinux.0# our tftp is chrooted so is just the path to the file# If you prefer use grub, use pxegrub compiled for your ethernet card.#filename "/PXEClient/pxegrub";filename "/X86PC/linux/linux.0";# Set the "vendor-class-identifier" field to "PXEClient" in dhcp answer# if this field is not set the pxe client will ignore the answer !option vendor-class-identifier "PXEClient"; vendor-option-space PXE;option PXE.mtftp-ip 0.0.0.0;# IP of you TFTP servernext-server 192.168.1.2;}# the class know exist just for deny the response to other DHCP requestclass "known" { match hardware; one-lease-per-client on; ddns-updates on; ddns-domainname = ""; option domain-name ""; option domain-name-servers 192.168.1.2; ddns-hostname = pick-first-value(ddns-hostname, option host-name); option fqdn.no-client-update on; set vendor_class_identifier = option vendor-class-identifier;}# TAG: COMPUTER_LIST_BEGIN#host compute9{# hardware ethernet 00:02:b3:3f:7e:b7;# fixed-address compute9;# TAG: COMPUTER_LIST_END# subnet 192.168.200.0 netmask 255.255.255.0 {subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option routers 255.0.0.0; default-lease-time 28800; max-lease-time 86400; option domain-name ""; option domain-name-servers 192.168.1.2; next-server 192.168.1.2; pool { range 192.168.1.65 192.168.1.254;# deny members of "PXE";# deny members of "Etherboot"; }# pool {# range 192.168.200.200 192.168.200.254;# give an address of the the pool for PXE client and deny the other#allow members of "PXE";#deny members of "known";#allow members of "Etherboot";# }}
Internet Systems Consortium DHCP Server 4.1.2Copyright 2004-2010 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config fileWrote 0 class decls to leases file.Wrote 0 leases to leases file.Listening on LPF/wlan0/1c:4b:d6:7a:dc:e9/192.168.1.0/24Sending on LPF/wlan0/1c:4b:d6:7a:dc:e9/192.168.1.0/24Sending on Socket/fallback/fallback-netThere's already a DHCP server running.get the latest from ftp.isc.org and install that before[root@localhost michal]# requesting help.If you did get this software from ftp.isc.org and have notyet read the README, please read it before requesting help.If you intend to request help from the dhcp-server@isc.orgmailing list, please read the section on the README aboutsubmitting bug reports and requests for help.Please do not under any circumstances send requests forhelp directly to the authors of this software - pleasesend them to the appropriate mailing list as described inthe README file.exiting.
18:12:14.478005 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:08:0d:90:57:64 (oui Unknown), length 54818:12:16.592603 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:08:0d:90:57:64 (oui Unknown), length 54818:12:20.657100 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:08:0d:90:57:64 (oui Unknown), length 54818:12:28.730950 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:08:0d:90:57:64 (oui Unknown), length 54818:12:44.823844 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:08:0d:90:57:64 (oui Unknown), length 548
dhcpd -dInternet Systems Consortium DHCP Server 4.1.2Copyright 2004-2010 Internet Systems Consortium.All rights reserved.For info, please visit https://www.isc.org/software/dhcp/Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config fileWrote 0 class decls to leases file.Wrote 0 leases to leases file.Listening on LPF/wlan0/1c:4b:d6:7a:dc:e9/192.168.1.0/24Sending on LPF/wlan0/1c:4b:d6:7a:dc:e9/192.168.1.0/24Sending on Socket/fallback/fallback-netThere's already a DHCP server running.If you did not get this software from ftp.isc.org, pleaseget the latest from ftp.isc.org and install that beforerequesting help.If you did get this software from ftp.isc.org and have notyet read the README, please read it before requesting help.If you intend to request help from the dhcp-server@isc.orgmailing list, please read the section on the README aboutsubmitting bug reports and requests for help.Please do not under any circumstances send requests forhelp directly to the authors of this software - pleasesend them to the appropriate mailing list as described inthe README file.exiting.
Transfer timed out.
filename "/X86PC/linux/linux.0";
option PXE.mtftp-ip 0.0.0.0;