+ Responder ao Tópico



  1. #1

    Padrão DHCP server com varias faixas de ip´s

    Ola pessoal, queria saber se alguem ja configurou um servidor DHCP com varias faixas de ip tipo, aki pra kda cliente eu uso uma faixa de ip com mascara 252 as vezes uso 248, 240 depende muito de quantos ip o cliente va utilizar.
    pra isso queria deixar o dhcp server atribuindo ip pelo mac e limitar a mascara.
    desde ja grato

  2. #2

    Padrão

    # dhcpd.conf
    #
    # Configuration file for ISC dhcpd (see 'man dhcpd.conf')
    #

    default-lease-time 86400;
    max-lease-time 864000;
    ddns-update-style none;
    option domain-name "myauth.com.br";
    option domain-name-servers 10.10.10.254, 200.209.105.253;
    option netbios-node-type 1;
    option netbios-scope "";
    log-facility local7;

    shared-network Redelocal {

    subnet 10.0.0.0 netmask 255.255.255.0 {
    option broadcast-address 10.0.0.23;
    option routers 10.0.0.1;
    host cliente1 {
    hardware ethernet 00:a0:bc:de:f0:12;
    fixed-address 10.0.0.45;
    }
    }

    subnet 10.0.1.0 netmask 255.255.255.0 {
    option broadcast-address 10.0.1.255;
    option routers 10.0.1.1;
    host cliente2 {
    hardware ethernet 00:b0:cd:ef:01:23;
    fixed-address 10.0.1.22;
    }
    }

    }



  3. #3

    Padrão opa

    Ola so, fiz assim pra realizar um teste:
    Código :
    # dhcpd.conf
    #
    # Configuration file for ISC dhcpd (see 'man dhcpd.conf')
    #
    default-lease-time 86400;
    max-lease-time 864000;
    ddns-update-style none;
    option domain-name "meu_dominio.net";
    option domain-name-servers 189.23.***.**4, 189.23.***.**5;
    option netbios-node-type 1;
    option netbios-scope "";
    log-facility local7;
    shared-network Redelocal {
    subnet 193.168.1.0 netmask 255.255.255.252 {
    option broadcast-address 193.168.1.3;
    option routers 193.168.1.1;
    host cliente1 {
    hardware ethernet 00:15:14:FF:E4:1C;
    fixed-address 193.168.1.2;
    }
    }
     
    }

    eo seguinte erro aparece quando do um dhcpd :
    Código :
    [email protected]:/etc# dhcpd
    Internet Systems Consortium DHCP Server V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit [URL="http://www.isc.org/sw/dhcp/"]ISC DHCP[/URL]
    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 eth1 (10.0.0.1).
    ** Ignoring requests on eth1.  If this is not what
       you want, please write a subnet declaration
       in your dhcpd.conf file for the network segment
       to which interface eth1 is attached. **
     
    No subnet declaration for eth0 (189.23.***.**4).
    ** Ignoring requests on eth0.  If this is not what
       you want, please write a subnet declaration
       in your dhcpd.conf file for the network segment
       to which interface eth0 is attached. **
     
    Not configured to listen on any interfaces!
    If you did not get this software from [URL="ftp://ftp.isc.org"]ftp.isc.org[/URL], please
    get the latest from [URL="ftp://ftp.isc.org"]ftp.isc.org[/URL] and install that before
    requesting help.
    If you did get this software from [URL="ftp://ftp.isc.org"]ftp.isc.org[/URL] and have not
    yet read the README, please read it before requesting help.
    If you intend to request help from the [EMAIL="[email protected]"][email protected][/EMAIL]
    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.
    [email protected]:/etc#
    Alguma fica?

  4. #4

    Padrão

    os ips que vc colocou no arquivo de configuracao estao certos? qual a versao do server dhcp que voce esta usando e qual distro?



  5. #5

    Padrão ok

    cabra estou usando o Slackware 11 eo DHCPD e av er. 3
    veja so como esta agora meu dhcpd.conf
    Código :
    # dhcpd.conf
    #
    # Configuration file for ISC dhcpd (see 'man dhcpd.conf')
    #
    authoritative;
    default-lease-time 86400;
    max-lease-time 864000;
    ddns-update-style none;
    option domain-name "myauth.com.br";
    option domain-name-servers 10.10.10.254, 200.209.105.253;
    option netbios-node-type 1;
    option netbios-scope "";
    log-facility local7;
     
    shared-network teste {
    subnet 10.0.0.0 netmask 255.255.255.0 {
    option broadcast-address 10.0.0.255;
    option routers 10.0.0.1;
     
    host cliente1 {
    hardware ethernet 00:15:14:ff:e4:1c ;
    fixed-address 10.0.0.133;
    }
    }
    }

    aki esta a msg dos log
    Código :
    Oct 22 13:17:26 servidor dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Oct 22 13:17:26 servidor dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Oct 22 13:17:26 servidor dhcpd: All rights reserved.
    Oct 22 13:17:26 servidor dhcpd: For info, please visit [url=http://www.isc.org/sw/dhcp/]ISC DHCP[/url]
    Oct 22 13:17:26 servidor dhcpd: Internet Systems Consortium DHCP Server V3.0.4
    Oct 22 13:17:26 servidor dhcpd: Copyright 2004-2006 Internet Systems Consortium.
    Oct 22 13:17:26 servidor dhcpd: All rights reserved.
    Oct 22 13:17:26 servidor dhcpd: For info, please visit [url=http://www.isc.org/sw/dhcp/]ISC DHCP[/url]
    Oct 22 13:17:26 servidor dhcpd: Wrote 0 deleted host decls to leases file.
    Oct 22 13:17:26 servidor dhcpd: Wrote 0 new dynamic host decls to leases file.
    Oct 22 13:17:26 servidor dhcpd: Wrote 0 leases to leases file.
    Oct 22 13:17:26 servidor dhcpd: Listening on Socket/eth1/teste
    Oct 22 13:17:26 servidor dhcpd: Sending on   Socket/eth1/teste

    o pc não recebe o ip do DHCP

  6. #6

    Padrão ok

    o negocio aki deu certo, o problema eo firewall q uso como padrao o DROP rs.
    alguem sabe qual a porta do servidor DHCP?



  7. #7

    Padrão

    67/68 udp. veja na google para ver os respectivos usos de cada porta.

  8. #8