Include a file from dhcpd.conf in ISC DHCPD
Duane Cox
duanec at mail.illicom.net
Wed Nov 29 20:03:17 UTC 2006
UPGRADE to a more recent release. (3.0.5)
Here is my complete dhcpd.conf file.
root at apollo:~# cat /etc/dhcpd.conf
log-facility local0;
pid-file-name "/var/run/dhcpd/dhcpd.pid";
lease-file-name "/srv/dhcpd/dhcpd.leases";
include "/etc/omapi.key";
include "/srv/dhcpd/dhcpd.peer";
include "/srv/dhcpd/dhcpd.global";
include "/srv/dhcpd/dhcpd.vendor";
include "/srv/dhcpd/dhcpd.var";
include "/srv/dhcpd/dhcpd.eval";
include "/srv/dhcpd/dhcpd.class";
include "/srv/dhcpd/dhcpd.hosts";
#include "/srv/dhcpd/dhcpd.amino";
include "/srv/dhcpd/dhcpd.innomedia";
include "/srv/dhcpd/dhcpd.pools";
Duane Cox
----- Original Message -----
From: "Santi Saez" <santi at usansolo.net>
To: <dhcp-users at isc.org>
Sent: Wednesday, November 29, 2006 3:51 AM
Subject: Include a file from dhcpd.conf in ISC DHCPD
> Hello,
>
> I want to include a file from the main "dhcpd.conf" configuration
> file, I have search some examples using this syntax:
>
> include "/etc/dhcpd/test.conf"
>
> But if a I put "include" directive I get this error on a server
> running Debian Sarge and ISC DHPC 2.0pl5-19.1sarge2 (stable version):
>
> ==> /var/log/daemon.log <==
> Nov 29 10:51:34 pxe dhcpd: /etc/dhcpd.conf line 39: expecting a
> parameter or declaration.
> Nov 29 10:51:34 pxe dhcpd: include
> Nov 29 10:51:34 pxe dhcpd: ^
> Nov 29 10:51:34 pxe dhcpd: Configuration file errors encountered --
> exiting
> Nov 29 10:51:34 pxe dhcpd: exiting.
>
> There are a lot of examples using "include" directive.. what's wrong?
> Perhaps with a newer version of dhcpd will work? Thanks! :)
>
> Regards,
>
> --
> Santi Saez
>
>
More information about the dhcp-users
mailing list