<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 2, 2015 at 6:45 PM, Shraddha Pandhe <span dir="ltr"><<a href="mailto:spandhe.openstack@gmail.com" target="_blank">spandhe.openstack@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>I am using dhcp-4.1.1-49.</div><div><br></div><div>What are the possible reasons for getting this error? I have been using the same dhcpd.conf without any issues. Today, I removed "dhcp-domain" option from the subnet definition and I started seeing this issue. Adding dhcp-domain back didn't help, so I am not sure if that caused anything.</div><div><br></div><div><br></div><div><br></div><div>My dhcpd config file:</div><div><br></div><div><br></div><div><div># dhcpd.conf</div><div>#</div><div># Sample configuration file for ISC dhcpd</div><div>#</div><div>log-facility local6;</div><div>allow booting;</div><div>deny unknown-clients;</div><div>ddns-update-style none;</div><div>default-lease-time 3600;</div><div><br></div><div>lease-file-name "/home/neutron/dhcpd/dhcpd.leases";</div><div>pid-file-name "/home/neutron/dhcpd/pid";</div><div><br></div><div>next-server <ip-address>;</div><div>server-name "<ip-address>";</div><div><br></div><div>omapi-port 7911;</div><div><br></div><div># Local subnet definition is required to start dhcpd</div><div>subnet <ip-address> netmask 255.255.255.255 {</div><div>}</div><div><br></div><div><br></div><div>if exists user-class and option user-class = "iPXE" {</div><div>   filename "init.ipxe";</div><div>}</div><div>elsif exists user-class and option user-class = "gPXE" {</div><div>   filename "init.gpxe";</div><div>}</div><div>else {</div><div>   filename "undionly.kpxe";</div><div>}</div><div><br></div><div>####################################################################</div><div>#           DHCP Subnet Definitions to follow               #</div><div>####################################################################</div><div># NETWORK_ID 0b00f86d-2dbd-4931-8a17-8ddaea74f475</div><div>subnet 192.168.122.0 netmask 255.255.255.0 {</div><div>  option broadcast-address 192.168.122.255;</div><div>  option domain-name-servers 192.168.122.1;</div><div>  range 192.168.122.2 192.168.122.254;</div><div>}</div></div><div><br></div></div></blockquote><div>Guessing here, but worth a try.<br></div><div>The "45" in the error message is probably the line number, but that would be the very end of your file, from what I see.  One possibility is that there is an invisible control character somewhere in the file, or some punctuation is unicode instead of ascii.<br></div><div>By any chance did you copy/paste from a work processor?  They often use different quote and hyphen characters that look similar but are not the right character.  <br><br>On Linux or Unix, try this:<br></div><div>    cat -v /etc/dhcpd.conf > /tmp/dhcpd.conf<br></div><div>    diff /etc/dhcpd.conf /tmp/dhcpd.conf<br></div><div>If there are any differences, delete and retype that line (do not copy/paste).<br></div><div><br></div><div>Or <br></div><div>Open in a plain text editor like Notepad on Windows or gedit on Linux and then save as a new file, and try the new file.<br><br></div><div>Or<br></div><div>Open in "vi" or "vim" and look for control characters - should show as "^" followed by some character, but you won't be able to search for the "^".<br><br>-- <br></div><div>Bob Harold<br><br></div><div><br><br></div></div></div></div>