servei dhcp inactiu

Hola.
De cop i volta l'aula de terminals ha deixat de funcionar a l'escola. Remenant, he mirat la configuarció de ltsp i he vist que el servei dhcp està instal.lat, activat però no està corrent.


eth0 192.168.0.202 255.255.255.0 192.168.0.0 255.255.255.255 <-----

Service Installed Enabled Running Notes
dhcpd Yes Yes no Version 3
tftpd Yes Yes Yes Has '-s' flag
portmapper Yes Yes Yes
nfs Yes Yes Yes
xdmcp Yes Yes Yes xdm, gdm, kdm Using: gdm

File Configured Notes
/etc/hosts Yes
/etc/hosts.allow Yes
/etc/exports Yes
/opt/ltsp/i386/etc/lts.conf Yes

Configured runlevel: 5 (value of initdefault in /etc/inittab)
Current runlevel: 5 (output of the 'runlevel' command)

Installation dir...: /opt/ltsp

intento activar-lo fent "rcdhcpd restart" i falla

serverltsp:~ # rcdhcpd status
Checking for DHCP server: unused
serverltsp:~ # rcdhcpd restart
Shutting down DHCP server done
Starting DHCP server Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/var/lib/dhcp///etc/dhcpd.conf line 12: expecting identifier.
get-lease-hostnames 1;
^
/var/lib/dhcp///etc/dhcpd.conf line 12: expecting a parameter or declaration
get-lease-hostnames 1;
^
Configuration file errors encountered -- exiting

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


si ho intento des del yast em diu "Error ocurred while restarting the DHCP deamon"

Que més puc fer?

eloi
Hola,

Segons pots consultar al manual de LTSP:

http://download-linkat.xtec.cat/d83/Linkat2_LTSP/LTSP_Linkat2.pdf

tens un exemple d'un fitxer de configuració del servei dhcp.

En concret, el problema que tens és que la línia:

get-lease-hostnames 1;

ha de dir:

get-lease-hostnames true;

Aquest canvi entre l'1 i el true m'imagino que ha estat a causa del YaST. La meva recomanació és que, si tens configurat el servidor de terminals (i per tant el dhcp) amb ltspadmin no configuris després el servei dhcp amb el YaST.

Jo el que faria és, un cop tinguis arreglat aquest fitxer, fes una còpia de seguretat:

cp /etc/dhcpd.conf /etc/dhcpd.conf.copia


Joan de Gracia
Hola.
El problema ja est? arreglat!. He canviat la linia de text i tot torna a funcionar perfectament.

Gr?cies

eloi
De res Eloi :-)



Joan