Autor Tópico: Server LTSP com DHCP problemático  (Lida 1657 vezes)

Offline eduardomelo

  • Usuário Ubuntu
  • *
  • Mensagens: 16
    • Ver perfil
Server LTSP com DHCP problemático
« Online: 21 de Junho de 2010, 09:57 »
Olá pessoal!

Prestando suporte a um dos servidores LTSP que mantenho, esbarrei com o seguinte problema:

O dhcpd3-server é o pacote instalado num server LTSP Ubuntu 9.10
Abaixo segue o arquivo de configuração (/etc/ltsp/dhcpd.conf)

#
# Configuração do arquivo dhcpd.conf para o LTSP
#

authoritative;

subnet 192.168.15.0 netmask 255.255.255.0 {
    range 192.168.15.50 192.168.15.150;
    option domain-name "example.com";
    option domain-name-servers 192.168.15.254;
    option broadcast-address 192.168.15.255;
    option routers 192.168.15.254;
#    next-server 192.168.0.1;
#    get-lease-hostnames true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }
}

host aplicacao {
        hardware ethernet 6C:F0:48:F4:A4:15;
        fixed-adress 192.168.15.81;
}
host camera-externo {
        hardware ethernet 00:1A:4D:77:F7:E0;
        fixed-adress 192.168.15.63;
}

O dhcpd está apresentando o seguinte erro ao tentar ser iniciado:

root@ubuntu:~# /etc/init.d/dhcp3-server start
dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp3/dhcpd.conf line 26: semicolon expected.
        fixed-adress 192.
                     ^
/etc/dhcp3/dhcpd.conf line 30: semicolon expected.
        fixed-adress 192.
                     ^
Configuration file errors encountered -- exiting

O mais estranho é que se as seções referente aos hosts forem tiradas, o erro para de acontecer e o dhcpd inicia normalmente.

Alguém aí tem uma luz no fim do túnel?
« Última modificação: 21 de Junho de 2010, 13:07 por eduardomelo »