+ Responder ao Tópico



  1. #1

    Padrão AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Olá estou tentar reservar os Ip's dos terminais burro no arquivo /etc/ltsp/dhcpd.conf . Mas nao estou conseguindo. Ajuda, por favor!!

    Fiz algumas configurações no dhcpd.conf , quando coloquei as configurações para deixar os endereços estáticos, o serviço DHCP não inicia


    Comando: service isc-dhcp-server restart
    Erro:stop: Unknown instance:
    start: Job failed to start


    segue a copia do /etc/ltsp/dhcpd.conf




    #
    # Default LTSP dhcpd.conf config file.
    #
    authoritative;
    subnet 10.0.0.0 netmask 255.255.255.0 {
    range 10.0.0.101 10.0.0.105;
    option domain-name "js.local";
    option domain-name-servers 10.0.0.1;
    option broadcast-address 10.0.0.255;
    option routers 10.0.0.1;
    # next-server 10.0.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/images/i386.img";
    }
    }
    {
    host-01 {
    hardware ethernet 11:11:11:11:11:11;
    fixed-address 10.0.0.101;
    }
    host-02 {
    hardware ethernet 22:22:22:22:22:22;
    fixed-address 10.0.0.102;
    }
    host-03 {
    hardware ethernet 33:33:33:33:33:33;
    fixed-address 10.0.0.103;
    }
    host-04 {
    hardware ethernet 44:44:44:44:44:44;
    fixed-address 10.0.0.104;
    }
    host-05 {
    hardware ethernet 55:55:55:55:55:55;
    fixed-address 10.0.0.105;
    }
    }

  2. #2

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Citação Postado originalmente por heldernl Ver Post
    Olá estou tentar reservar os Ip's dos terminais burro no arquivo /etc/ltsp/dhcpd.conf . Mas nao estou conseguindo. Ajuda, por favor!!

    Fiz algumas configurações no dhcpd.conf , quando coloquei as configurações para deixar os endereços estáticos, o serviço DHCP não inicia


    Comando: service isc-dhcp-server restart
    Erro:stop: Unknown instance:
    start: Job failed to start


    segue a copia do /etc/ltsp/dhcpd.conf




    #
    # Default LTSP dhcpd.conf config file.
    #
    authoritative;
    subnet 10.0.0.0 netmask 255.255.255.0 {
    range 10.0.0.101 10.0.0.105;
    option domain-name "js.local";
    option domain-name-servers 10.0.0.1;
    option broadcast-address 10.0.0.255;
    option routers 10.0.0.1;
    # next-server 10.0.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/images/i386.img";
    }
    }
    {
    host-01 {
    hardware ethernet 11:11:11:11:11:11;
    fixed-address 10.0.0.101;
    }
    host-02 {
    hardware ethernet 22:22:22:22:22:22;
    fixed-address 10.0.0.102;
    }
    host-03 {
    hardware ethernet 33:33:33:33:33:33;
    fixed-address 10.0.0.103;
    }
    host-04 {
    hardware ethernet 44:44:44:44:44:44;
    fixed-address 10.0.0.104;
    }
    host-05 {
    hardware ethernet 55:55:55:55:55:55;
    fixed-address 10.0.0.105;
    }
    }
    Boa tarde.

    Fiz alguns ajustes do seu dhcpd.conf, e aqui funcionou

    Precisa mudar a forma de entrada na diretiva host, e também alguns blocos (of braces).

    Com base no seu código, repasso os ajustes abaixo:

    Código :
    #
    # Default LTSP dhcpd.conf config file.
    #
    authoritative;
    subnet 10.0.0.0 netmask 255.255.255.0 {
        range 10.0.0.101 10.0.0.105;
        option domain-name "js.local";
        option domain-name-servers 10.0.0.1;
        option broadcast-address 10.0.0.255;
        option routers 10.0.0.1;
        # next-server 10.0.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/images/i386.img";
        }
    }
     
    host wks-01 { hardware ethernet 11:11:11:11:11:11 ; fixed-address 10.0.0.101 ; }
    host wks-02 { hardware ethernet 22:22:22:22:22:22 ; fixed-address 10.0.0.102 ; }
    host wks-03 { hardware ethernet 33:33:33:33:33:33 ; fixed-address 10.0.0.103 ; }
    host wks-04 { hardware ethernet 44:44:44:44:44:44 ; fixed-address 10.0.0.104 ; }
    host wks-05 { hardware ethernet 55:55:55:55:55:55 ; fixed-address 10.0.0.105 ; }
     
    #
    #
    # EOF
    #
    #

    Espero ter sido útil.

    Saudações,

    Trober

  3. #3

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf (RESOLVIDO)

    Muito Obrigado! funcionou direitinho....

  4. #4

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf (RESOLVIDO)

    Citação Postado originalmente por heldernl Ver Post
    Muito Obrigado! funcionou direitinho....
    Que notícia boa!

    Saudações,

    Trober

  5. #5

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Olá Trober,

    O serviço está iniciando normal. Mas as reservas não estão funcionando. Tem mais alguns ajuste para ser realizados.

    Não tenho pratica com Linux

    Fico no aguardo.

  6. #6

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Citação Postado originalmente por heldernl Ver Post
    Olá Trober,

    O serviço está iniciando normal. Mas as reservas não estão funcionando. Tem mais alguns ajuste para ser realizados.

    Não tenho pratica com Linux

    Fico no aguardo.
    A sintaxe da diretiva host está correta. Tenho DHCP em produção, em vários clientes, inclusive uma prefeitura com 367 estações, todas com endereços dinâmicos reservados (fixed address), atribuídos por DHCP.

    De qualquer forma, usando suas configurações, montarei um ambiente de teste, semelhante como já fiz em outros momentos[1][2], e publico os resultados

    Conforme for, respondo ainda hoje.

    [1] https://under-linux.org/forums/erro-...95/#post562355
    [2] https://under-linux.org/forums/estud...11/#post576258

    Saudações,

    Trober

  7. #7

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Citação Postado originalmente por trober Ver Post
    Conforme for, respondo ainda hoje.
    Desculpe-me pela demora.

    Fiz os testes aqui, usando exatamente o arquivo de configuração acima, e obtive êxito. As reservas de endereços estão funcionando bem.

    Uso aqui ISC-DHCPD (Internet Systems Consortium DHCP Server 4.2.4-P2).

    Os valores dos endereços físicos (MAC Address), de seus hosts, estão corretamente inseridos em dhcpd.conf?

    Saudações,

    Trober

  8. #8

    Padrão Re: AJUDA!! Reservar IP terminais LTSP Ubuntu 12.04 - dhcpd.conf

    Olá

    O aquivo está no diretório: /etc/ltsp/dhcpd.conf.

    Nesse diretórios as reservas não funcionam.

    Obrigado pela atenção Trober!