[Linux-Biella] DHCP

PaulTT linux@ml.bilug.linux.it
Wed, 03 Mar 2004 20:30:53 +0100


Luca Bertoncello wrote:

>Ciao a tutti!
>
>Intanto che maledico la scheda di rete, provo a configurare il Dhcp (si, lo so!
>Non sono normale!).
>Allora, questo e' il mio /etc/dhcpd.conf:
>
>subnet 192.168.1.0 netmask 255.255.255.0 {
>              range 192.168.1.2 192.168.1.20;
>              default-lease-time 600;
>              max-lease-time 7200;
>              option subnet-mask 255.255.255.0;
>              option broadcast-address 192.168.1.255;
>              option routers 192.168.1.1;
>              option domain-name-servers 192.168.1.1;
>              option domain-name "lucabert.intra";
>            }
>
>Se avvio il demone, ricevo pero' questi messaggi:
>
>[root@bilbo /root]# /etc/rc.d/init.d/dhcpd start
>Starting dhcpd: Internet Software Consortium DHCP Server 2.0
>Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
>All rights reserved.
>
>Please contribute if you find this software useful.
>For info, please visit http://www.isc.org/dhcp-contrib.html
>
>Can't open lease database /var/state/dhcp/dhcpd.leases: File o directory
>inesistente -- check for failed database rewrite attempt!
>Please read the dhcpd.leases manual page if you.
>don't know what to do about this.
>exiting.
>                                                           [FAILED]
>
>Chevvoddi'? Che l'e' questo /var/state/dhcp/dhcpd.leases?
>  
>
e' dove si va a mettere i riferimeni macaddress-indirizzi che assegna.
verifica che esista la vartella /var/state/dhcp/, magari non c'e' essa...

-- 
"devi cominciare dal labirinto di folken..."