Servidor DHCP [RESOLVIDO]

1. Servidor DHCP [RESOLVIDO]

Fernando Santos
bragax182

(usa Debian)

Enviado em 15/04/2016 - 12:01h

Pessoal estou tentando reservar alguns ips na minha rede, funciona tudo certinho, mas pensei em deixar todas as estações com ip fixo reservando no isc dhcp, minha dúvida é, qual o limite de ips que posso reservar no dhcp? existe um limite? Eu gostaria de reservar bastante máquina até, mas quando coloco mais que 16 reservas, o dhcp da erro.


  


2. Re: Servidor DHCP [RESOLVIDO]

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 15/04/2016 - 14:57h

e nesse erro o que ele mostra ?
já verificou nos logs ?



3. Re: Servidor DHCP [RESOLVIDO]

Fernando Santos
bragax182

(usa Debian)

Enviado em 15/04/2016 - 16:14h

Este é o erro que acontece:
root@servidor:~# dhcpd -d
Internet Systems Consortium DHCP Server 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
/etc/dhcp/dhcpd.conf line 83: hardware address parameter not allowed here.
hardware ethernet C8:9C:DC:C5:79:7E;
^
/etc/dhcp/dhcpd.conf line 84: fixed-address parameter not allowed here.
fixed-address 192.168.1.170;
^
/etc/dhcp/dhcpd.conf line 93: Bogus number GF: digit 16 not in base 16
hardware ethernet E0:CB:4E:BF:GF:3C;
^
/etc/dhcp/dhcpd.conf line 100: expecting a declaration

^
Configuration file errors encountered -- exiting

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..

exiting.
root@servidor:~#



4. Re: Servidor DHCP [RESOLVIDO]

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 15/04/2016 - 16:17h

tem como colocar todo sue dhcpd.conf ?



5. Re: Servidor DHCP [RESOLVIDO]

Fernando Santos
bragax182

(usa Debian)

Enviado em 15/04/2016 - 16:35h

default-lease-time 720;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.200;
option routers 192.168.1.1;
option domain-name-servers 8.8.8.8;
option broadcast-address 192.168.1.255;

#########################Maquinas com ip fixo#############################################################

############ Attiva Cursos ############################################
host cleiton-pc {
hardware ethernet 94:DE:80:F0:D7:05;
fixed-address 192.168.1.150;
}

host catriele-pc {
hardware ethernet 90:2B:34:F7:58:19;
fixed-address 192.168.1.151;
}

host Cordenacao-pc {
hardware ethernet 90:2B:34:F7:00:87;
fixed-address 192.168.1.152;
}

host Solange-pc {
hardware ethernet 00:1C:C0:EA:D6:73;
fixed-address 192.168.1.153;
}


################### Attiva Tecnocenter #################################
host scheila-pc {
hardware ethernet 6C:62:6D:FC:78:29;
fixed-address 192.168.1.160;
}

################### Attiva Tecnocenter #################################
host scheila-pc {
hardware ethernet 6C:62:6D:FC:78:29;
fixed-address 192.168.1.160;
}

host Recarga-pc {
hardware ethernet 1C:6F:65:F5:2E:C9;
fixed-address 192.168.1.161;
}

host Davs-pc {
hardware ethernet 94:DE:80:F2:4A:B2;
fixed-address 192.168.1.162;
}

host Note-Philco {
hardware ethernet 00:03:0D:D0:B8:FB;
fixed-address 192.168.1.163;
}

host Note-Sony {
hardware ethernet 00:19:7E:51:FC:7E;
fixed-address 192.168.1.164;
}

host Caixa-pc {
fixed-address 192.168.1.165;
hardware ethernet 90:2B:34:F5:58:65;
}

host Tecnica-pc {
hardware ethernet 00:19:21:9D:9C:4C;
fixed-address 192.168.1.166;
}

host Tec-Backup-pc {
hardware ethernet 00:1A:3F:B9:21:E1;
fixed-address 192.168.1.167;
}

host Suporte-pc {
hardware ethernet FC:AA:14:F6:54:1D;
fixed-address 192.168.1.168;
}

#host Professor1 {
# hardware ethernet C8:9C:DC:C5:79:7E;
# fixed-address 192.168.1.170;
#}

#host 1.1.1-pc {
# hardware ethernet 94:DE:80:F1:07:0C;
# fixed-address 192.168.1.171;
#}

#host 1.1.2-pc {
# hardware ethernet E0:CB:4E:BF:GF:3C;
# fixed-address 192.168.1.172;
#}

#host 1.2.1 {
# hardware ethernet 90:2B:34:FE:91:89;
# fixed-address 192.168.1.173;
#}

#host 1.2.2 {
# hardware ethernet 0A:00:27:00:00:00;
# fixed-address 192.168.1.174;
#}

#host 1.2.3 {
# hardware ethernet 00:E0:4D:31:67:A5;
# fixed-address 192.168.1.175;
#}

#host 1.3.1 {
# hardware ethernet 08:00:27:00:3C:8C;
# fixed-address 192.168.1.176;
#}
}





Deixem esses comentados porque que não reiniciava o dhcp, dava este erro que postei ali em cima.


6. Re: Servidor DHCP [RESOLVIDO]

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 15/04/2016 - 16:40h

verifica esse MAC

E0:CB:4E:BF:GF:3C

Tem certeza que é a Letra G ?



7. Re: Servidor DHCP [RESOLVIDO]

Fernando Santos
bragax182

(usa Debian)

Enviado em 15/04/2016 - 16:56h

Pedir para os outros fazerem teu serviço é f..., muito obrigado amigão, era esse o problema mesmo, vlw






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts