Bonjour,

Je me permets d'écrire ce sujet car j'ai actuellement un soucis dans ma configuration dhcpd. En effet, lorsque je tape la commande pour vérifier ma configuration --> dhcpd -t -cf /etc/dhcp/dhcpd.conf.

J'obtiens ce résultat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
root:/etc/dhcp# sudo dhcpd -t -cf /etc/dhcp/dhcpd.conf
Internet Systems Consortium DHCP Server 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
 
/etc/dhcp/dhcpd.conf line 19: /etc/dhcp/dhcpd.conf_subnet: bad parse.
include "/etc/dhcp/dhcpd.conf_subnet"
         ^
Configuration file errors encountered -- exiting
 
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..
 
exiting.
Voici le contenu de mon fichier dhcpd.conf :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
# DHCP Server - Configuration file for Primary
 
# Global configuration
set vendorclass = option vendor-class-identifier;
 
# DHCP Failover, Primary
include "/etc/dhcp/dhcpd.conf_primary";
 
# "class" en fonction de la MAC
include "/etc/dhcp/dhcpd.conf_class";
 
# Subnet declaration
include "/etc/dhcp/dhcpd.conf_subnet";
 
# Static IP addresses
include "/etc/dhcp/dhcpd.conf_static";
Et voici une partie de mon dhcpd.conf_subnet :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
ddns-update-style interim;
ignore client-updates;
authoritative;
option octet code 46 = string ;
option option-66 code 66 = text;
option option-150 code 150 = ip-address;
 
subnet 10.X.X.0 netmask 255.255.252.0 
{
       pool {
               failover peer "relais";      
               deny dynamic bootp clients;
               range 10.X.X.10 10.X.X.240;
       }
       allow unknown-clients;
 
       authoritative;
       option routers    10.X.X.254;
       option subnet-mask              255.255.252.0;
}
 
subnet 10.Y.Y.0 netmask 255.255.252.0 
{
       pool {
               failover peer "relais";      
               deny dynamic bootp clients;
               range 10.Y.Y.10 10.Y.Y.240;
       }
       allow unknown-clients;
 
       authoritative;
       option routers    10.Y.Y.254;
       option subnet-mask              255.255.252.0;
       ddns-updates on;
}
Donc voilà, si vous avez une solution pour enlever cette erreur de "bad parse" au niveau de mon include "/etc/dhcp/dhcpd.conf_subnet" dans le dhcpd.conf, je suis preneur !

Merci d'avance et bonne journée !