Página 1 de 2 12 ÚltimoÚltimo
+ Responder ao Tópico



  1. Pessoal,

    Estou com um problema em minha configuração de DHCP. Fiz toda a configuração, criei uma shared network para colocar duas subnets que saem pela mesma placa de rede do servidor (eth1 e eth1:0).

    O que acontece é que quando o cliente pede uma requisição de DHCP (todos são atribuidos pelo MAC Address do cliente, não tem range na subnet) dá no free leases.

    Citação Postado originalmente por MENSAGEM
    Jun 28 11:12:14 ns2 dhcpd: DHCPDISCOVER from 00:0e:35:XX:XX:XX via eth1: network ClientesAPs: no free leases
    Jun 28 11:13:19 ns2 last message repeated 3 times
    Outro problema que notei hoje é que aparece a seguinte mensagem no meu /var/log/messages:

    Citação Postado originalmente por /var/log/messages
    Jun 28 11:18:41 ns2 dhcpd: DHCPINFORM from 192.168.167.44 via eth1: not authoritative for subnet 192.168.167.0
    Jun 28 11:18:41 ns2 dhcpd: If this DHCP server is authoritative for that subnet,
    Jun 28 11:18:41 ns2 dhcpd: please write an `authoritative;' directive either in the
    Jun 28 11:18:41 ns2 dhcpd: subnet declaration or in some scope that encloses the
    Jun 28 11:18:41 ns2 dhcpd: subnet declaration - for example, write it at the top
    Jun 28 11:18:41 ns2 dhcpd: of the dhcpd.conf file.
    O que é isso e como arrumar?

    Qualquer ajuda é bem vinda.[/quote]

  2. #2
    sadirj
    Posta seu dhcpd.conf pra eu dar uma olhada... aqui em casa uso da mesma forma e funfa.



  3. Ola...

    Meu /etc/dhcpd.conf está assim:

    [root@ns2 ~]# cat /etc/dhcpd.conf
    server-identifier ns2;
    ddns-update-style ad-hoc;

    shared-network ClientesAPs{

    subnet 200.163.208.64 netmask 255.255.255.192{
    option domain-name "cnett.com.br";
    option domain-name-servers 200.163.208.65;
    option subnet-mask 255.255.255.192;
    option routers 200.163.208.65;

    host IndyAutoPecas {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.74;}
    host TransTrovao {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.75;}
    host NBInformatica {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.86;}
    host CelsoSchuber {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.87;}
    host Dilger {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.92;}
    host SaoFranciscoFM {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.93;}
    host CampoAbertoStreaming {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 200.163.208.126;}

    }

    subnet 192.168.167.0 netmask 255.255.255.0{
    option domain-name "cnett.com.br";
    option domain-name-servers 192.168.167.1;
    option subnet-mask 255.255.255.0;
    option routers 192.168.167.1;

    host NelsonAraujo {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.6;}
    host MarciaMendes {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.7;}
    host ElianyFurlan {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.9;}
    host ElShaddai {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.10;}
    host MarisaCunha {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.11;}
    host ManfredWeidt {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.12;}
    host RobertoCaprini {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.13;}
    host LidioKalinoski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.14;}
    host GeonelMarochi {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.15;}
    host JoseBueno {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.16;}
    host NeliBonatto {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.17;}
    host EBMMadeiras {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.18;}
    host Tiago {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.19;}
    host SandraRocha {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.20;}
    host LucianoBagdenski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.21;}
    host GracieleCastilho {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.22;}
    host ClaudioOliveira {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.23;}
    host WelingtonTomacheski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.24;}
    host MariaCarrer {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.25;}
    host AdrianaSouthier {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.26;}
    host FabioGarcia {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.27;}
    host AntonioVidal {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.28;}
    host OsmarSobsak {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.29;}
    host CirleneBrzezinski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.30;}
    host LucianoNorberto {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.31;}
    host TaniaBoldrini {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.33;}
    host VilmaNantes {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.34;}
    host SandroAlves {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.35;}
    host LuizFerreira {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.36;}
    host DeoceliaKarpinski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.37;}
    host MarcoAurelioPinto {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.38;}
    host NelciWolff {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.39;}
    host DaianePassarin {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.40;}
    host ClairtonTosetto {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.41;}
    host ASBFanuchi {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.42;}
    host ClaudecirGarcia {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.44;}
    host PauloGava {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.45;}
    host GilmarDysarsz {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.46;}
    host EscolaLeocadio {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.47;}
    host PedroSoares {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.48;}
    host CassianoMoura {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.49;}
    host ElciDWL900 {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.50;}
    host ElciContabilidade {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.51;}
    host ElciMetalurgica {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.52;}
    host GuilhermeTonial {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.53;}
    host ReinerBack {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.54;}
    host ElciContabilidade1 {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.55;}
    host EmersonMaurer {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.56;}
    host PubioBrittes {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.57;}
    host MariliaPiovesan {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.58;}
    host ACILS {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.59;}
    host SindicatoRural {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.60;}
    host LasaSeguros {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.61;}
    host TereCaldat {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.62;}
    host MauricioOliveira {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.63;}
    host TatianaNavroski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.64;}
    host TalitaAmarante {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.65;}
    host RobertaMarochi {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.66;}
    host MariaCarvalho {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.67;}
    host LeidaMaria {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.68;}
    host ClairBortoluzzi {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.69;}
    host ConstrueCIA {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.70;}
    host AndreiaRoque {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.71;}
    host EmersonPortela {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.72;}
    host FiatCar {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.73;}
    host RosanePiovesan {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.74;}
    host LuizOliboni {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.75;}
    host AlfredoNogueira {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.76;}
    host AlmirMachado {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.77;}
    host LeniceDelong {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.78;}
    host RobertoCavassola {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.79;}
    host FaustoPneus {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.80;}
    host SilvanaChagas {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.81;}
    host JosetteSouthier {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.82;}
    host JoaoAires {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.83;}
    host EscolaFlorindoPelizari {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.84;}
    host GutoskiWET11 {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.85;}
    host MarceloGuerra {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.86;}
    host LotMileniumMatriz {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.87;}
    host LotMileniumFilial {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.88;}
    host KlausSpassin {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.89;}
    host FagnerSchineider {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.90;}
    host ValdineiWachikoswski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.91;}
    host AndersonNava {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.92;}
    host OvislinkPauloPerez {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.96;}
    host PauloPerezGabi {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.97;}
    host PauloPerezCami {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.98;}
    host GutoskiPanelinha {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.100;}
    host RodrigoDalastra {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.102;}
    host NBAutoCenter {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.103;}
    host Getel {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.107;}
    host DivaZocche {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.158;}
    host CirleneBenvenuti {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.159;}
    host GutoskiGutoski {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.161;}
    host AlexandreCarvalho {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.164;}
    host NadiaIrionAlmeida {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.165;}
    host CleversonSantos {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.170;}
    host NeusaPiovesan {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.171;}
    host PMLJSEngenharia {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.176;}
    host JoseMolinari {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.177;}
    host JoseHenriqueKlug {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.182;}
    host PauloMachado {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.183;}
    host EversomMesquita {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.188;}
    host MaluCalcados {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.189;}
    host ClinicaProVida {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.194;}
    host SantaRita {hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.167.195;}

    }

    }

    subnet 192.168.165.0 netmask 255.255.255.0{
    option domain-name "cnett.com.br";
    option domain-name-servers 192.168.165.1;
    option subnet-mask 255.255.255.0;
    option routers 192.168.165.1;
    range 192.168.165.6 192.168.165.26;

    }
    Removi os MACs para não ter clone... hehehehe...

  4. #4
    sadirj
    Bom, quanto ao no free-leases, após ddns-update-style ad-hoc; adicione deny unknown-clients;, isso vai fazer com que a politica padrão seja negar qualquer um que não esteja listado. Já na última sub-net, adicione logo após subnet 192.168.165.0 netmask 255.255.255.0{ a opção allow unknown-clients;, pois qualquer placa que não esteja declarada receberá um IP dessa range.

    Agora, quanto ao erro do autoritative, apenas adicione lá em cima, antes ou depois do deny unknown-clients; a opção authoritative;

    Faz isso e posta o resultado. Se alguém tiver outra solução ou eu estiver errado, posta aí também.

    Abraços.



  5. SadiRJ,

    Fiz o que tu postou como dica e logo em seguida tive a conexão de um cliente e no log apareceu isso:

    Jun 30 07:49:27 ns2 dhcpd: DHCPDISCOVER from XX:XX:XX:XX:XX:XX (PAULOPIN) via eth2
    Jun 30 07:49:27 ns2 dhcpd: DHCPOFFER on 192.168.165.8 to XX:XX:XX:XX:XX:XX (PAULOPIN) via eth2
    Jun 30 07:49:27 ns2 dhcpd: if PAULOPIN.cnett.com.br IN A rrset doesn't exist add PAULOPIN.cnett.com.br 21600 IN A 192.168.165.8: not authorized.
    O que seria o "not authorized"?






Tópicos Similares

  1. como abilitar gateway no free
    Por pojucano no fórum Sistemas Operacionais
    Respostas: 4
    Último Post: 22-10-2005, 00:48
  2. duas placas de rede no free
    Por pojucano no fórum Servidores de Rede
    Respostas: 2
    Último Post: 30-09-2005, 07:29
  3. Implantando quotas no free/BSD. Dúvida!!!
    Por ubiratamuniz no fórum Sistemas Operacionais
    Respostas: 0
    Último Post: 03-05-2005, 12:52
  4. ADSL no Free BSD 5.1
    Por sameck no fórum Sistemas Operacionais
    Respostas: 1
    Último Post: 07-08-2004, 17:31
  5. Quero comecar no free bsd !!!!
    Por aspenbr no fórum Servidores de Rede
    Respostas: 3
    Último Post: 13-10-2003, 15:32

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L