Pages : 1
#1 Le 02/07/2020, à 08:20
- Guismo
DHCP ne démarre pas
Bonjour, à la commande dhcpd - j'ai une erreur
# dhcpd -t
Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 15: semicolon expected.
option
^
Configuration file errors encountered -- exiting
je vous montre ma config :
#option domain-name "example.org";
option domain-name "chris.lan"
#option domain-name-servers ns1.example.org, ns2.example.org;
option domain-name-servers 10.0.100.201, 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
###VLAN.3
subnet 10.0.100.0 netmask 255.255.255.128{
range 10.0.100.1 10.0.100.125;
option subnet-mask 255.255.255.128;
option routers 10.0.100.126;
option broadcast-address 10.0.100.127;
}
### VLAN.4
subnet 10.0.100.128 netmask 255.255.255.224{
range 10.0.100.129 10.0.100.157;
option subnet-mask 255.255.255.224;
option routers 10.0.100.158;
option broadcast-address 10.0.100.159;
La ligne 15 corrspond à cette ligne:
15 option domain-name-servers 8.8.8.8;
Voila depuis hier je cherche et je ne trouve rien si quelqu'un ici m'apporter des pistes ou la solution je le remercie pas avance
Dernière modification par Guismo (Le 02/07/2020, à 08:22)
L'Homme est l'espèce la plus insensée, il vénère un dieu invisible et massacre une nature visible ! Sans savoir que cette nature qu'il massacre est ce dieu invisible qu'il vénère !
Hors ligne
#2 Le 02/07/2020, à 08:51
- NicoApi73
Re : DHCP ne démarre pas
Bonjour,
Peux tu donner le retour de :
cat -n /etc/dhcp/dhcpd.conf
en incluant la commande et le prompt de retour STP
Hors ligne
#3 Le 02/07/2020, à 09:23
- Guismo
Re : DHCP ne démarre pas
chris@srvr-interne:~$ cat -n /etc/dhcp/dhcpd.conf
Oui, le voici:
chris@srvr-interne:~$ cat -n /etc/dhcp/dhcpd.conf
1
2 # dhcpd.conf
3 #
4 # Sample configuration file for ISC dhcpd
5 #
6 # Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
7 # configuration file instead of this file.
8 #
9
10 # option definitions common to all supported networks...
11 #option domain-name "example.org";
12 option domain-name "chris.lan"
13 #option domain-name-servers ns1.example.org, ns2.example.org;
14
15 option domain-name-servers 8.8.8.8;
16
17 default-lease-time 600;
18 max-lease-time 7200;
19
20 # The ddns-updates-style parameter controls whether or not the server will
21 # attempt to do a DNS update when a lease is confirmed. We default to the
22 # behavior of the version 2 packages ('none', since DHCP v2 didn't
23 # have support for DDNS.)
24 ddns-update-style none;
25
26 # If this DHCP server is the official DHCP server for the local
27 # network, the authoritative directive should be uncommented.
28 authoritative;
29
30 # Use this to send dhcp log messages to a different log file (you also
31 # have to hack syslog.conf to complete the redirection).
32 #log-facility local7;
33
34 # No service will be given on this subnet, but declaring it helps the
35 # DHCP server to understand the network topology.
36
37 #subnet 10.152.187.0 netmask 255.255.255.0 {
38 #}
39
40 # This is a very basic subnet declaration.
41
42 #subnet 10.254.239.0 netmask 255.255.255.224 {
43 # range 10.254.239.10 10.254.239.20;
44 # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
45 #}
46 ###VLAN.3
47
48 subnet 10.0.100.0 netmask 255.255.255.128{
49 range 10.0.100.1 10.0.100.125;
50 option subnet-mask 255.255.255.128;
51 option routers 10.0.100.126;
52 option broadcast-address 10.0.100.127;
53 }
54 ### VLAN.4
55 subnet 10.0.100.128 netmask 255.255.255.224{
56 range 10.0.100.129 10.0.100.157;
57 option subnet-mask 255.255.255.224;
58 option routers 10.0.100.158;
59 option broadcast-address 10.0.100.159;
60
61 }
62 ### VLAN.5
63 subnet 10.0.100.160 netmask 255.255.255.240{
64 range dynamic-bootp 10.0.100.161 10.0.100.173;
65 option subnet-mask 255.255.255.240;
66 option routers 10.0.100.174;
67 option broadcast-address 10.0.100.175;
68
69 }
70 ### VLAN.6
71 subnet 10.0.100.176 netmask 255.255.255.240{
72 range dynamic-bootp 10.0.100.177 10.0.100.189;
73 option subnet-mask 255.255.255.240;
74 option routers 10.0.100.190;
75 option broadcast-address 10.0.100.191;
76
77 }
78 ### VLAN 7
79 subnet 10.0.100.192 netmask 255.255.255.248{
80 option subnet-mask 255.255.255.248;
81 range dynamic-bootp 10.0.100.193 10.0.100.197;
82 option routers 10.0.100.198;
83 option broadcast-address 10.0.100.199;
84
85 }
86
87 # A slightly different configuration for an internal subnet.
88 #subnet 10.5.5.0 netmask 255.255.255.224 {
89 # range 10.5.5.26 10.5.5.30;
90 # option domain-name-servers ns1.internal.example.org;
91 # option domain-name "internal.example.org";
92 # option subnet-mask 255.255.255.224;
93 # option routers 10.5.5.1;
94 # option broadcast-address 10.5.5.31;
95 # default-lease-time 600;
96 # max-lease-time 7200;
97 #}
98
99 # Hosts which require special configuration options can be listed in
100 # host statements. If no address is specified, the address will be
101 # allocated dynamically (if possible), but the host-specific information
102 # will still come from the host declaration.
103
104 #host passacaglia {
105 # hardware ethernet 0:0:c0:5d:bd:95;
106 # filename "vmunix.passacaglia";
107 # server-name "toccata.example.com";
108 #}
109
110 # Fixed IP addresses can also be specified for hosts. These addresses
111 # should not also be listed as being available for dynamic assignment.
112 # Hosts for which fixed IP addresses have been specified can boot using
113 # BOOTP or DHCP. Hosts for which no fixed address is specified can only
114 # be booted with DHCP, unless there is an address range on the subnet
115 # to which a BOOTP client is connected which has the dynamic-bootp flag
116 # set.
117 #host fantasia {
118 # hardware ethernet 08:00:07:26:c0:a5;
119 # fixed-address fantasia.example.com;
120 #}
121
122 # You can declare a class of clients and then do address allocation
123 # based on that. The example below shows a case where all clients
124 # in a certain class get addresses on the 10.17.224/24 subnet, and all
125 # other clients get addresses on the 10.0.29/24 subnet.
126
127 #class "foo" {
128 # match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
129 #}
130
131 #shared-network 224-29 {
132 # subnet 10.17.224.0 netmask 255.255.255.0 {
133 # option routers rtr-224.example.org;
134 # }
135 # subnet 10.0.29.0 netmask 255.255.255.0 {
136 # option routers rtr-29.example.org;
137 # }
138 # pool {
139 # allow members of "foo";
140 # range 10.17.224.10 10.17.224.250;
141 # }
142 # pool {
143 # deny members of "foo";
144 # range 10.0.29.10 10.0.29.230;
145 # }
146 #}
chris@srvr-interne:~$
Dernière modification par Guismo (Le 02/07/2020, à 09:27)
L'Homme est l'espèce la plus insensée, il vénère un dieu invisible et massacre une nature visible ! Sans savoir que cette nature qu'il massacre est ce dieu invisible qu'il vénère !
Hors ligne
#4 Le 02/07/2020, à 10:13
- NicoApi73
Re : DHCP ne démarre pas
Il te manque un ; à la fin de la ligne 12. Tu dois avoir :
option domain-name "chris.lan";
Hors ligne
#5 Le 02/07/2020, à 11:30
- Guismo
Re : DHCP ne démarre pas
Il te manque un ; à la fin de la ligne 12. Tu dois avoir :
option domain-name "chris.lan";
Merci arff je la regardais pourtant et c'est pas vrai un truc pareil lol je me moque de moi d'ailleur. C'est bon le DHCP est op merci bonne journée NicoApi73
L'Homme est l'espèce la plus insensée, il vénère un dieu invisible et massacre une nature visible ! Sans savoir que cette nature qu'il massacre est ce dieu invisible qu'il vénère !
Hors ligne
Pages : 1