Hello Darren,
it looks that you define manually the isolation and registration network
in dhcpd.conf (in /usr/local/pf/conf/).
The dhcp configuration is managed by pf and it generate a file in
var/conf/dhcpd.conf, so remove the 2 scopes you defined manually and do a:
bin/pfcmd configreload hard
bin/pfcmd service dhcpd restart
Regards
Fabrice
Le 2015-10-12 12:03, Morgan, Darren a écrit :
Hi,
We are trialing PF but cannot get the dhcpd service to run. It shows
the following errors on startup (dhcpd.conf and networks.conf copied
in after errors);
nternet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/usr/local/pf/var/conf/dhcpd.conf line 48: range declaration not
allowed here.
range
^
/usr/local/pf/var/conf/dhcpd.conf line 50: expecting a declaration
max-lease-time 30;
^
/usr/local/pf/var/conf/dhcpd.conf line 57: lease 192.168.120.10 is
declared twice!
range 192.168.120.10 192.168.120.246;
^
/usr/local/pf/var/conf/dhcpd.conf line 57: lease 192.168.120.11 is
declared twice!
range 192.168.120.10 192.168.120.246;
^
###### lots of lines cut out ######
/usr/local/pf/var/conf/dhcpd.conf line 57: lease 192.168.120.246 is
declared twice!
range 192.168.120.10 192.168.120.246;
Configuration file errors encountered -- exiting
This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the CentOS Bugs Database:
http://bugs.centos.org/
exiting.
dhcpd|not started 0m
###################
dhcpd.conf
###################
# dhcpd configuration
# This file is manipulated on PacketFence's startup before being given
to dhcpd
authoritative;
ddns-update-style none;
ignore client-updates;
#// Registration network definition
subnet 192.168.120.0 netmask 255.255.255.0 {
option routers 192.168.100.42;
option subnet-mask 255.255.255.0;
option domain-name "oundleschool.local";
option domain-name-servers 192.168.100.42;
range 192.168.120.10 192.168.120.249;
default-lease-time 300;
max-lease-time 300;
}
#// Isolation network definition
subnet 192.168.130.0 netmask 255.255.255.0 {
option routers 192.168.100.43;
option subnet-mask 255.255.255.0;
option domain-name "isolation.oundleschool.local";
option domain-name-servers 192.168.100.43;
range 192.168.130.10 192.168.130.249;
default-lease-time 300;
max-lease-time 300;
}
log-facility local6;
%%omapi%%
%%active%%
%%networks%%
##################
networks.conf
##################
[192.168.130.0]
dns=192.168.130.1
dhcp_start=192.168.130.10
gateway=192.168.130.1
domain-name=vlan-isolation.oundleschool.local
nat_enabled=disabled
named=enabled
dhcp_max_lease_time=30
fake_mac_enabled=disabled
dhcpd=enabled
dhcp_end=192.168.130.246
type=vlan-isolation
netmask=255.255.255.0
dhcp_default_lease_time=30
[192.168.120.0]
dns=192.168.120.1
dhcp_start=192.168.120.10
gateway=192.168.120.1
domain-name=vlan-registration.oundleschool.local
nat_enabled=disabled
named=enabled
dhcp_max_lease_time=30
fake_mac_enabled=disabled
dhcpd=enabled
dhcp_end=192.168.120.246
type=vlan-registration
netmask=255.255.255.0
dhcp_default_lease_time=30
Any ideas?
Darren Morgan
Systems Manager
Oundle School
Tel: 01832 277349
*ü***Please consider the environment before printing this e-mail
This email is sent from either Oundle School or Laxton Junior School
for The Corporation of Oundle School and is intended only for the
addressee named above. The Corporation of Oundle School is a Charity
incorporated under Royal Charter RC000396 and charity number 309921.
www.oundleschool.org.uk <http://www.oundleschool.org.uk>
------------------------------------------------------------------------
Scanned by iCritical.
------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users