+ Responder ao Tópico



  1. #1
    garupeiro
    Visitante

    Padrão dhcpd.conf

    Estou tentando configura o meu dhcp mas nao to tento sucesso: segue abaixo as informações dos meus arquivos:
    Meu ip: 192.168.14.21
    minha mascara de rede: 255.255.255.128
    gateway 192.168.14.1

    segue agora o arquivo dhcpd.conf
    ddns-update-style none;
    ignore client-updates;

    subnet 192.168.1.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;

    option nis-domain "domain.org";
    option domain-name "servidor.com.br";
    option domain-name-servers 127.0.0.1;

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1;
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.1.11 192.168.0.20;
    default-lease-time 21600;
    max-lease-time 43200;
    "/etc/dhcpd.conf" 31L, 850C 21,2-9
    Agora a mensagem de erro que da ao tentar iniciar o dhcp


    Iniciando dhcpd: Internet Systems Consortium DHCP Server V3.0.1
    Copyright 2004 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    Address range 192.168.1.11 to 192.168.0.20, netmask 255.255.255.0 spans multiple subnets!

    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 [email protected]
    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.
    FALHOU
    ficarei muito grato se alguem poder me ajudar!!!

  2. #2

    Padrão dhcpd.conf

    essa ta facil arruamar
    vc ta querendo definir o range de uma subnet mas esta especificando duas : 192.168.1.11 to 192.168.0.20

    vc tem q separar isso asssim:

    subnet 192.168.1.0 netmask 255.255.255.0{

    range 192.168.1.11 192.168.1.254
    blabla
    blabla
    }

    subnet 192.168.0.0 netmask 255.255.255.0{
    range 192.168.0.20 blablaa
    blabla
    }

    ou vc soh tinha digitado errado o range e queria de 192.168.1.11 ateh 192.168.1.20?



  3. #3
    garupeiro
    Visitante

    Padrão dhcpd.conf

    Continuo Dando o mesmo erro:
    o esquema aki esta assim to pegando o sinal pela wlan0 e to querendo que a placa de rede comece a servir ips, via dhcp, so que ainda nao tem nada plugado na eth0 e eu desabilitei ela na iniciação sera que isso ta implicando em algo?

    dhcpd.conf
    ddns-update-style none;
    ignore client-updates;

    subnet 192.168.1.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;

    option nis-domain "domain.org";
    option domain-name "servidor.com.br";
    option domain-name-servers 127.0.0.1;

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1;
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.1.11 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;

    # we want the nameserver to appear at a fixed address
    host ns {
    next-server marvin.redhat.com;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 207.175.42.254;
    }
    }
    A mensagem apos tentar carregar o DHCP
    Iniciando dhcpd: Internet Systems Consortium DHCP Server V3.0.1
    Copyright 2004 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    Address range 192.168.1.11 to 192.168.0.254, netmask 255.255.255.0 spans multiple subnets!

    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 [email protected]
    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.
    FALHOU
    Valeu Ice pela ajuda so que ainda nao funciono :toim:

  4. #4

    Padrão dhcpd.conf

    cara vc ainda nao separou as redes!

    vc tem q ter 2 entradas

    subnet xxxxxx{
    }

    subnet xxxxx{
    }

    uma pra 192.168.0.0 e outra pra 192.168.1.0
    se colocar as duas juntas nao vai funcionar

    olha ai no teu conf:
    range dynamic-bootp 192.168.1.11 192.168.0.254;

    da tudo numa subnet soh



  5. #5

    Padrão dhcpd.conf

    Teu range ta errado ... coloca ele na mesma rede de 192.168.1.11 até 192.168.1.254 falow !!!!!!!!

  6. #6
    garupeiro
    Visitante

    Padrão dhcpd.conf

    Agora fiz tudo do jeito q vc falo PSY so q ta dando esse erro agora
    da ate vergonha ops:

    Iniciando dhcpd: Internet Systems Consortium DHCP Server V3.0.1
    Copyright 2004 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.

    No subnet declaration for wlan0 (192.168.14.21).
    ** Ignoring requests on wlan0. If this is not what
    you want, please write a subnet declaration
    in your dhcpd.conf file for the network segment
    to which interface wlan0 is attached. **


    Not configured to listen on any interfaces!

    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 [email protected]
    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.
    FALHOU



  7. #7

    Padrão dhcpd.conf

    psy?

    bom, tenta declarar a sua subnet assim:

    subnet 192.168.14.21 MASCARA{

    }

    ao inves de
    subnet 192.168.1.0 mascaraa {

    }

  8. #8

    Padrão dhcpd.conf

    ddns-update-style none;
    ignore client-updates;

    subnet 192.168.1.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;

    option nis-domain "domain.org";
    option domain-name "servidor.com.br";
    option domain-name-servers 127.0.0.1;

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1;
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.1.11 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;

    # we want the nameserver to appear at a fixed address
    host ns {
    next-server marvin.redhat.com;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 207.175.42.254;
    }
    }
    Esse seu arquivo esta meio confuso, tente algo assim:

    authoritative;
    default-lease-time 36000; ### 10 hrs ###
    max-lease-time 86400; ### 01 dia ###
    option broadcast-address 192.168.1.255;
    option domain-name "localhost";
    option domain-name-servers 127.0.0.1;
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;

    subnet 192.168.1.0 netmask 255.255.255.0{
    range 192.168.1.11 192.168.1.254;
    option domain-name-servers 127.0.0.1;
    option routers 192.168.1.1;
    }

    host ns {
    next-server marvin.redhat.com;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 207.175.42.254;
    }

    Espero ter ajudado, abracos.



  9. #9
    Moderador Avatar de Bruno
    Ingresso
    Nov 2002
    Localização
    Guarapuava-PR
    Posts
    3.928
    Posts de Blog
    1

    Padrão dhcpd.conf

    seguionte tu ta querendo fornecer ip a uma rede onde vc não pertence



    vc é da rede 192.168.14.0/255.255.255.128 pu seja a te o ip 128

    no seu dhcp vc ta querendo fornecer 192.168.1.0/255.255.255.0


    ai naum



    a maquina que sera o servidor de dhcpd tem que estar na faixa de ip


    ex:

    seu ip 192.168.0.1/24

    e seu subnet 192.192.168.0 /24
    com range 192.168.0.2-192.168.0.254



    entendeu ???

  10. #10
    Moderador Avatar de Bruno
    Ingresso
    Nov 2002
    Localização
    Guarapuava-PR
    Posts
    3.928
    Posts de Blog
    1

    Padrão dhcpd.conf

    e quase como o nosso amigo cristianff disse



  11. #11
    Visitante

    Padrão dhcpd.conf

    Citação Postado originalmente por garupeiro
    Continuo Dando o mesmo erro:
    o esquema aki esta assim to pegando o sinal pela wlan0 e to querendo que a placa de rede comece a servir ips, via dhcp, so que ainda nao tem nada plugado na eth0 e eu desabilitei ela na iniciação sera que isso ta implicando em algo?

    dhcpd.conf
    ddns-update-style none;
    ignore client-updates;

    subnet 192.168.1.0 netmask 255.255.255.0 {

    # --- default gateway
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;

    option nis-domain "domain.org";
    option domain-name "servidor.com.br";
    option domain-name-servers 127.0.0.1;

    option time-offset -18000; # Eastern Standard Time
    # option ntp-servers 192.168.1.1;
    # option netbios-name-servers 192.168.1.1;
    # --- Selects point-to-point node (default is hybrid). Don't change this unless
    # -- you understand Netbios very well
    # option netbios-node-type 2;

    range dynamic-bootp 192.168.1.11 192.168.0.254;
    default-lease-time 21600;
    max-lease-time 43200;

    # we want the nameserver to appear at a fixed address
    host ns {
    next-server marvin.redhat.com;
    hardware ethernet 12:34:56:78:AB:CD;
    fixed-address 207.175.42.254;
    }
    }
    A mensagem apos tentar carregar o DHCP
    Iniciando dhcpd: Internet Systems Consortium DHCP Server V3.0.1
    Copyright 2004 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    Address range 192.168.1.11 to 192.168.0.254, netmask 255.255.255.0 spans multiple subnets!

    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 [email protected]
    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.
    FALHOU
    Valeu Ice pela ajuda so que ainda nao funciono :toim:

  12. #12
    ajust
    Visitante

    Padrão preste atenção

    Amigão, preste atenção:

    TODOS os ips tem que estar na SUA rede : 192.168.(UM).x

    você ta trocando o (UM) por zero, coloque tudo no 192.168.0.0 se este é o ip que seus dedos digitam automaticamente.

    seu problema aí é só esse.

    abração

    Ajust