Project

General

Profile

Actions

Bug #2020

closed

dhcpd fails to start when a static lease's hostname is numerical.

Added by Jeff Shaw about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP (IPv4)
Target version:
Start date:
11/22/2011
Due date:
% Done:

100%

Estimated time:
0.10 h
Plus Target Version:
Release Notes:
Affected Version:
2.1-IPv6
Affected Architecture:

Description

For instance, I had a static dhcp lease with the hostname set to 6013. However, when I enabled this interface's dhcpd service, dhcpd would fail to start. The syslog would contain this entry:

"php: /status_services.php: The command '/usr/local/sbin/dhcpd user dhcpd -group _dhcp -chroot /var/dhcpd -cf /etc/dhcpd.conf bge0_vlan2 bge0_vlan7 bge0_vlan10' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server 4.2.1-P1 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcpd.conf line 161: expecting string. option host-name 6013; ^ Configuration file errors encountered - exiting If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help dire"

I fixed this by logging into pfSense, and editing /etc/inc/services.inc.

ee /var/inc/services.inc
ctrl-e
option host-name
change {$dhhostname} to \"{$dhhostname}\"

I haven't found the official documentation saying this is correct, but I suspect it is.

Actions #1

Updated by Seth Mos about 13 years ago

  • Status changed from New to Resolved
  • Assignee set to Seth Mos
  • Target version set to 2.0.1
  • % Done changed from 0 to 100
  • Estimated time set to 0.10 h
  • Affected Version set to 2.1-IPv6

Fixes checked in, thank you for your report.

Actions

Also available in: Atom PDF