Problème lancement dhcpd

Sinon voila mon fichier de conf :


option domain-name-servers 126.0.0.100;
option domain-name "mondomaine.fr";
subnet 126.0.50.0 netmask 255.255.255.0 {
        option routers 126.0.50.254;
        option domain-name-servers 126.0.0.100;
        option subnet-mask 255.255.255.0;
        range 126.0.50.50 126.0.50.100;
        }

Et voici l’erreur que ca me met lorsque je démarre le service dhcpd :


Starting DHCP server Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit [www.isc.org...](http://www.isc.org/sw/dhcp/)
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file

** You must add a global ddns-update-style statement to /var/lib/dhcp///etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **

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 dhcp-server@isc.org
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 directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                                     failed

J’ai donc rajouter la ligne “ddns-update-style ad-hoc;” a mon fichier de conf et lorsque je veut démarrer voici la nouvelle erreur :


Starting DHCP server Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit [www.isc.org...](http://www.isc.org/sw/dhcp/)
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for eth0 (192.168.36.150).
** Ignoring requests on eth0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth0 is attached. **


Not configured to listen on any interfaces!

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 dhcp-server@isc.org
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 directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                                     failed

Une idée ?

Ici sur eth0 je suis sur 192.168.36.50 mais est-il possible que cette mm interface envoi des trame dhcp sur un reseau 126.0.50.0 sur la mm interface ?

Merci
Edité le 10/03/2008 à 07:57

Salut,

personnellement je pense qu’il faille une autre carte Ethernet pour pouvoir avoir une autre plage d 'Ip différente. Je ne vois pas comment avec une seule “PATTE montée” avec une IP réseau de type 192.x.x.x on peut avoir un DHCP qui donne du 126.x.x.x mais ce n’est que mon avis.

+1, impossible a faire sur une seul et même carte réseaux, l’adresse est tributaire de l’adresse MAC, donc à une adresse MAC n’est attribuable qu’une adresse IP, et donc une plage d’IP.

Installe une deuxième Carte réseaux, et fait écouter ton serc dhcpd sur le eth1, avec la même config, sa devrais marché, même si je ne vois pas pourquoi il t’emmerde avec un serveur ldap …