+ Responder ao Tópico



  1. #1
    georgemattos
    Visitante

    Padrão Ajudaaa eu! Problema com dhcp + ltsp

    E aih galera?

    Estou implementando um projeto de um Cyber Café baseado em LTSP, já fiz isso uma vez usando o Debian e tudo ocorreu bem, mas este projeto é com o SuSE 10.0 e não estou conseguindo sanar alguns problemas.

    A primeira vista o serviço dhcpd está configurado corretamente, quando requisito um IP de uma máquina comum com HD a resposta vem fácil, mas quando requisito o boot pelo disquete aparece a mensagem:

    .No IP adress
    .No IP adress
    .No IP adress

    É como se a requisição de IP não estivesse sendo atendida.

    O comando tail -f /var/log/messages dá o seguinte retorno:

    Dec 11 23:15:26 linux dhcpd: DHCPDISCOVER from 00:d0:09:f1:4a:f8 via eth0
    Dec 11 23:15:27 linux dhcpd: DHCPOFFER on 192.168.0.252 to 00:d0:09:f1:4a:f8 via eth0
    Dec 11 23:15:29 linux dhcpd: DHCPDISCOVER from 00:d0:09:f1:4a:f8 via eth0
    Dec 11 23:15:29 linux dhcpd: DHCPOFFER on 192.168.0.252 to 00:d0:09:f1:4a:f8 via eth0
    Dec 11 23:15:33 linux dhcpd: DHCPDISCOVER from 00:d0:09:f1:4a:f8 via eth0
    Dec 11 23:15:33 linux dhcpd: DHCPOFFER on 192.168.0.252 to 00:d0:09:f1:4a:f8 via eth0

    quado deveria ser:

    Dec 11 23:03:22 linux dhcpd: DHCPDISCOVER from 00:d0:09:f1:4a:f8 (localhost) via eth0
    Dec 11 23:03:22 linux dhcpd: DHCPOFFER on 192.168.0.253 to 00:d0:09:f1:4a:f8 (localhost) via eth0
    Dec 11 23:03:22 linux dhcpd: DHCPREQUEST for 192.168.0.253 (192.168.0.1) from 00:d0:09:f1:4a:f8 (localhost) via eth0
    Dec 11 23:03:22 linux dhcpd: DHCPACK on 192.168.0.253 to 00:d0:09:f1:4a:f8 (localhost) via eth0

    Já destivei o Firewall também!

    Meus arquivos de configuração estão da seguinte forma:

    ************************************** dhcpd.conf *************************************************

    ddns-update-style ad-hoc;

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

    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
    option domain-name-servers 192.168.0.1;
    option domain-name "cylix"; # <--Fix this domain name

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

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

    use-host-decl-names on;
    option log-servers 192.168.0.1;
    filename "/lts/vmlinuz-2.6.9-ltsp-3";

    subnet 192.168.0.0 netmask 255.255.255.0 {
    range dynamic-bootp 192.168.0.1 192.168.0.253;
    }

    ***************************************** hosts *************************************************

    127.0.0.1 localhost

    # special IPv6 addresses
    ::1 localhost ipv6-localhost ipv6-loopback

    fe00::0 ipv6-localnet

    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    192.168.0.1 linux.cylix linux
    ## LTSP-begin ##
    #
    # The lines between 'LTSP-begin' and 'LTSP-end' were added
    # on: Sun Dec 11 21:48:13 2005, by the ltspcfg configuration tool.
    # For more information, visit the LTSP homepage
    # at http://www.LTSP.org
    #

    192.168.0.2 ws002.ltsp ws002
    192.168.0.3 ws003.ltsp ws003
    192.168.0.4 ws004.ltsp ws004
    192.168.0.5 ws005.ltsp ws005
    192.168.0.6 ws006.ltsp ws006
    192.168.0.7 ws007.ltsp ws007
    192.168.0.8 ws008.ltsp ws008
    192.168.0.9 ws009.ltsp ws009
    192.168.0.10 ws010.ltsp ws010

    *************************************** /etc/xinetd/tftp ************************************************

    # default: off
    # description: tftp service is provided primarily for booting or when a \
    # router need an upgrade. Most sites run this only on machines acting as
    # "boot servers".
    service tftp
    {
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /tftpboot/lts/
    disable = no
    }

    ************************************** hosts.allow *************************************************

    ## LTSP-begin ##
    #
    # The lines between 'LTSP-begin' and 'LTSP-end' were added
    # on: Sun Dec 11 21:43:55 2005, by the ltspcfg configuration tool.
    # For more information, visit the LTSP homepage
    # at http://www.LTSP.org
    #

    bootpd: 0.0.0.0
    in.tftpd: 192.168.0.
    portmap: 192.168.0.

    ## LTSP-end ##

    ******************************************* exports ***************************************************

    ## LTSP-begin ##
    #
    # The lines between 'LTSP-begin' and 'LTSP-end' were added
    # on: Sun Dec 11 21:47:54 2005, by the ltspcfg configuration tool.
    # For more information, visit the LTSP homepage
    # at http://www.LTSP.org
    #

    /opt/ltsp 192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
    /var/opt/ltsp/swapfiles 192.168.0.0/255.255.255.0(rw,no_root_squash,async)

    ## LTSP-end ##

    Acho que é só!

    Preciso muito da ajuda de vocês!

  2. #2

    Padrão Ajudaaa eu! Problema com dhcp + ltsp

    cara, deixa eu adivinhar: vc está usando o isc dhcpd versap 3.0.3??? estranhamente esta versão tem um bug ou sei lá o que que impossibilita que o cliente baseado no disquete do (esqueci o grupo agora) funcione. Tente usar a versão 3.0.1 que eu sei que funciona (quer dizer, o sambaloco40 e eu descobrimos depois que rachar a cabeca pensando e tentando)

  3. #3
    georgemattos
    Visitante

    Padrão Ajudaaa eu! Problema com dhcp + ltsp

    cara eu acho que vc tah certo, mas eu não toh conseguindo instalar o 3.0.1 no SuSE, consegui com o 3.0.4, mas parece que tem o mesmo bug.

  4. #4
    georgemattos
    Visitante

    Padrão Ajudaaa eu! Problema com dhcp + ltsp

    olha soh o erro que dá durante a compilação:


    DLINUX_MINOR=6 -c -o tr.o tr.c
    tr.c:62: error: syntax error before ‘__u16’
    tr.c:62: warning: no semicolon at end of struct or union
    tr.c:63: warning: data definition has no type or storage class
    tr.c:65: error: syntax error before ‘}’ token
    tr.c: In function ‘insert_source_routing’:
    tr.c:212: error: dereferencing pointer to incomplete type
    tr.c:213: error: dereferencing pointer to incomplete type
    tr.c:219: error: dereferencing pointer to incomplete type
    tr.c:220: error: ‘__u16’ undeclared (first use in this function)
    tr.c:220: error: (Each undeclared identifier is reported only once
    tr.c:220: error: for each function it appears in.)
    tr.c:220: error: syntax error before ‘rcf’
    tr.c:221: error: dereferencing pointer to incomplete type
    tr.c:222: error: ‘rcf’ undeclared (first use in this function)
    tr.c:227: error: dereferencing pointer to incomplete type
    tr.c: In function ‘save_source_routing’:
    tr.c:257: error: ‘__u16’ undeclared (first use in this function)
    tr.c:257: error: syntax error before ‘rcf’
    tr.c:265: error: dereferencing pointer to incomplete type
    tr.c:266: error: dereferencing pointer to incomplete type
    tr.c:274: error: ‘rcf’ undeclared (first use in this function)
    tr.c:276: error: dereferencing pointer to incomplete type
    tr.c:276: error: dereferencing pointer to incomplete type
    tr.c:278: error: dereferencing pointer to incomplete type
    tr.c:279: error: dereferencing pointer to incomplete type
    tr.c:284: error: invalid application of ‘sizeof’ to incomplete type ‘struct rout
    ing_entry’
    tr.c:292: error: dereferencing pointer to incomplete type
    tr.c:292: error: dereferencing pointer to incomplete type
    tr.c:293: error: dereferencing pointer to incomplete type
    tr.c:294: error: dereferencing pointer to incomplete type
    tr.c:299: error: dereferencing pointer to incomplete type
    tr.c:299: error: dereferencing pointer to incomplete type
    tr.c:301: error: dereferencing pointer to incomplete type
    tr.c:305: error: dereferencing pointer to incomplete type
    tr.c: In function ‘expire_routes’:
    tr.c:323: error: dereferencing pointer to incomplete type
    tr.c:324: error: dereferencing pointer to incomplete type
    tr.c:327: error: dereferencing pointer to incomplete type
    make[2]: *** [tr.o] Error 1
    make[2]: Leaving directory `/opt/dhcp/dhcp-3.0.1/work.linux-2.2/common'
    make[1]: *** [install] Error 1
    make[1]: Leaving directory `/opt/dhcp/dhcp-3.0.1/work.linux-2.2'
    make: *** [install] Error