Autor Tópico: Problema no meu dhcp.conf ao instalar o LTSP  (Lida 3244 vezes)

Offline fredianelli

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Problema no meu dhcp.conf ao instalar o LTSP
« Online: 05 de Maio de 2007, 02:37 »
Olá pessoal !
Vasculhei o fórum todo e não consegui achar uma solução para  o meu problema.
É o seguinte:
Estou usando o Ubuntu 7.04 - the Feisty Fawn e meu /etc/dhcp3/dhcpd.conf está configurado da seguinte maneira:

Citar
#
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;

#default-lease-time 600;
#max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
##log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

#subnet 10.152.187.0 netmask 255.255.255.0 {
#}

# This is a very basic subnet declaration.

#subnet 10.254.239.0 netmask 255.255.255.224 {
#  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
#}

# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.

#subnet 10.254.239.32 netmask 255.255.255.224 {
#  range dynamic-bootp 10.254.239.40 10.254.239.60;
#  option broadcast-address 10.254.239.31;
#  option routers rtr-239-32-1.example.org;
#}

# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.100 192.168.0.200;
  option domain-name-servers 202.188.0.133, 202.188.1.5;
  option domain-name "tm.net.my";
  option routers 192.168.0.1;
  option broadcast-address 192.168.0.255;
  default-lease-time 600;
  max-lease-time 7200;
}

# Hosts which require special configuration options can be listed in
# host statements.   If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.

#host passacaglia {
#  hardware ethernet 0:0:c0:5d:bd:95;
#  filename "vmunix.passacaglia";
#  server-name "toccata.fugue.com";
#}

# Fixed IP addresses can also be specified for hosts.   These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
#  hardware ethernet 08:00:07:26:c0:a5;
#  fixed-address fantasia.fugue.com;
#}

# You can declare a class of clients and then do address allocation
# based on that.   The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.

#class "foo" {
#  match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}

#shared-network 224-29 {
#  subnet 10.17.224.0 netmask 255.255.255.0 {
#    option routers rtr-224.example.org;
#  }
#  subnet 10.0.29.0 netmask 255.255.255.0 {
#    option routers rtr-29.example.org;
#  }
#  pool {
#    allow members of "foo";
#    range 10.17.224.10 10.17.224.250;
#  }
#  pool {
#    deny members of "foo";
#    range 10.0.29.10 10.0.29.230;
#  }
#}

# Arquivo de configuração do servidor DHCP para o LTSP 4.2
# Por Carlos E. Morimoto e adaptado para Alexandre N. Fredianelli

#Configuração eth0
subnet 10.0.0.1 netmask 255.255.255.255 {
}

shared-network WORKSTATIONS {

    subnet 192.168.0.0 netmask 255.255.255.0 {

   default-lease-time            21600;
   max-lease-time                21600;

   # Configure as opções abaixo adicionando os endereços da sua rede:

   # Mascara de sub-rede:
   option subnet-mask            255.255.255.0;

   # Endereço de broadcast (é sempre o último endereço da rede, como em 192.168.0.255)
   option broadcast-address      192.168.0.255;

   # Default gateway (o micro que está compartilhando a conexão e do DNS da rede)
   option routers                192.168.0.1;
   option domain-name-servers    192.168.0.1;

   # Esta opção faz com que o servidor dhcp aceite apenas os clientes do
   # terminal server, não conflitando com um servidor dhcp já existente.

   deny unknown-clients;

   # Caso prefira que o servidor DHCP dê IPs de rede local também para os
   # demais micros da rede, que não estão cadastrados como terminais, comente
   # a linha acima e descomente a linha abaixo, informando a faixa de endereços
   # que será usada pelos clientes que não estejam cadastrados como terminais:

   # range 192.168.0.100 192.168.0.201;


   # IMPORTATE!! Substitua o "192.168.0.10" pelo endereço IP do servidor
   # Kurumin (esta máquina), se este endereço estiver errado o LTSP não
   # funcionará! Repita o mesmo endereço na opção "next-server", ela é um
   # workaround para um bug do dhcpd 3.03:

   option root-path   "192.168.0.1:/opt/ltsp/i386";
   next-server           192.168.0.1;

    }

}



group   {

   use-host-decl-names       on;

   # Aqui vão as configurações dos terminais, cada terminal deve
   # ser configurado com um endereço IP diferente e com o endereço
   # MAC de sua placa de rede.
 
   # Para saber o endereço MAC de cada terminal, basta dar um boot
   # Com o disquete do rom-o-matic, ele mostrará o endereço MAC
   # logo no início do boot.

   # Este endereço é único, exclusivo de cada placa de rede, é através
   # dele que o servidor sabe qual terminal é qual.

   # Adicione mais terminais caso necessário copiando e colando as linhas:


    # terminal 1:
    host ws001 {
   hardware ethernet     00:19:BB:EB:3A:06;
   fixed-address         192.168.0.11;
   filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    }

    # terminal 2:
    #host ws002 {
    #    hardware ethernet     00:D0:09:A2:9B:8D;
    #    fixed-address         192.168.0.12;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 3:
    #host ws003 {
    #    hardware ethernet     00:E0:7D:AB:E3:11;
    #    fixed-address         192.168.0.13;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 4:
    #host ws004 {
    #    hardware ethernet     00:C0:DF:09:05:55;
    #    fixed-address         192.168.0.14;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 5:
    #host ws005 {
    #    hardware ethernet     00:60:08:37:4F:15;
    #    fixed-address         192.168.0.15;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 6:
    #host ws006 {
    #   hardware ethernet 00:0C:29:6F:F4:AB;
    #   fixed-address 192.168.0.16;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 7:
    #host ws007 {
    #   hardware ethernet 00:08:0D:7B:E9:C8;
    #   fixed-address 192.168.0.17;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}

    # terminal 8:
    #host ws008 {
    #   hardware ethernet 00:0c:29:f4:34:19;
    #   fixed-address 192.168.0.18;
   #filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
    #}


# Esta chave fecha a sessão "group", finalizando a configuração. Não remova!
}


Mas quando peço para reiniciar o servidor DHCP com o comando /etc/init.d/dhcp3-server restart segue a seguinte mensagem: >:(

Citar
* Stopping DHCP server dhcpd3                                            [fail]
* Starting DHCP server dhcpd3                                            [fail]
[/b]

Digitando o comando sudo dhcpd3 me retorna a seguinte mensagem: >:(
Citar
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth1/00:08:54:28:a3:2a/WORKSTATIONS
Sending on   LPF/eth1/00:08:54:28:a3:2a/WORKSTATIONS
Listening on LPF/eth0/00:13:d4:c0:03:0f/10.0.0.1/32
Sending on   LPF/eth0/00:13:d4:c0:03:0f/10.0.0.1/32
Sending on   Socket/fallback/fallback-net


Alguém POR FAVOR poderia me ajudar?
Já vasculhei a net tentando resolver o problema, mas não achei nada que me ajudasse.
Estou tentando instalar o LTSP pelo tutorial http://www.guiadohardware.net/guias/17/index1.php, não creio que seja algo errado com o tutorial e sim com a minha configuração.
Muito Obrigado desde já !
;D
« Última modificação: 06 de Maio de 2007, 14:29 por fredianelli »

Offline wjnanet

  • Usuário Ubuntu
  • *
  • Mensagens: 17
    • Ver perfil
Re: Problema no meu dhcp.conf ao instalar o LTSP
« Resposta #1 Online: 24 de Julho de 2007, 08:01 »
subnet 10.0.0.1 netmask 255.255.255.255 {
} //exclui isso.
--> Vc está colocando informação em conflito. Vc jah declarou acima uma subnet 192.168.0.0

# terminal 1:
host ws001 {
hardware ethernet     00:19:BB:EB:3A:06;
fixed-address         192.168.0.11;
filename "lts/2.6.17.3-ltsp-1/pxelinux.0";
} //exclui isso

--> Aqui vc está declarando um ip fixo para uma máquina, mas vc está com o dhcp ativado. Então exclua esse bloco.

Suponho que vc jah foi no site rom-o-matic e criou o seu disco de boot.

O Edubuntu, e o próprio ubuntu já funcionam com o LTSP 5 que roda em cima de ssh. É muito fácil fazer funcionar... e já vem praticamente pronto. Experimente.

Offline jadirorza

  • Usuário Ubuntu
  • *
  • Mensagens: 9
    • Ver perfil
Re: Problema no meu dhcp.conf ao instalar o LTSP
« Resposta #2 Online: 14 de Setembro de 2007, 15:39 »
Não concordo com o wjnanet.
A configuração dos hosts aí serve para travar o hardware pelo MAC.
Sem isso não é possível utilizar maoses ou monitores diferentes, por exemplo.
Creio a parte "subnet  10.1.1.1 netmask 255.255.255.255" esteja errada.
Os meus estão "subnet  10.1.1.0 netmask 255.255.255.0"
Confira aí:

Citar
ddns-update-style            none;

default-lease-time           21600;
max-lease-time               21600;

option subnet-mask           255.255.255.0;
option broadcast-address     10.1.1.255;
option domain-name-servers   200.184.26.3;
option domain-name           "server";

option root-path             "10.1.1.1:/opt/ltsp/i386";

option option-128 code 128 = string;
option option-129 code 129 = text;

subnet  10.1.1.0 netmask 255.255.255.0 {
    range dynamic-bootp 10.1.1.3 10.1.1.14;
    if substring (option vendor-class-identifier, 0, 9) = "PXEClient"
    {
        filename             "/tftpboot/lts/2.6.9-ltsp-3/pxelinux.0";
    }
    else if substring (option vendor-class-identifier, 0, 9) = "Etherboot"
    {
   filename             "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
    }

}


group   {

   use-host-decl-names       on;



#Terminal 1
host ws001 {
hardware ethernet 00:08:54:20:A5:FA;
fixed-address 10.1.1.3;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 2
host ws002 {
hardware ethernet 00:E0:7D:F5:3E:AC;
fixed-address 10.1.1.4;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 3
host ws003 {
hardware ethernet 00:E0:7D:FB:51:7B;
fixed-address 10.1.1.5;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 4
host ws004 {
hardware ethernet 00:08:54:20:9D:86;
fixed-address 10.1.1.6;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 5
host ws005 {
hardware ethernet 00:08:54:11:D5:F7;
fixed-address 10.1.1.7;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 6
host ws006 {
hardware ethernet 00:E0:7D:F5:7E:06;
fixed-address 10.1.1.8;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 7
host ws007 {
hardware ethernet 00:E0:4C:78:6D:84;
fixed-address 10.1.1.9;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 8
host ws008 {
hardware ethernet 00:E0:4E:20:0D:0B;
fixed-address 10.1.1.10;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 9
host ws009 {
hardware ethernet 00:40:F4:4F:47:C3;
fixed-address 10.1.1.11;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 10
host ws010 {
hardware ethernet 00:E0:4C:36:A6:2D;
fixed-address 10.1.1.12;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}

#Terminal 11
host ws011 {
hardware ethernet 00:E0:4C:78:44:39;
fixed-address 10.1.1.13;
filename "/tftpboot/lts/vmlinuz-2.6.9-ltsp-3";
}


}