[Ubuntu-BR] Re. Re Pool de DCHP

Bruno Galindro da Costa bruno.galindro em gmail.com
Sábado Junho 23 20:56:13 UTC 2007


Allison, infelizmente sua solução não deu certo. Aparecem vários erros
quando eu inicio o dhcp3-server:

srv-sme:~# /etc/init.d/dhcp3-server start

dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcp3/dhcpd.conf line 12: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 13: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 14: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 15: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 16: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 17: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 18: no option named hardware
                    match if option hardware =
                                    ^
/etc/dhcp3/dhcpd.conf line 20: no option named hardware
                    match if option hardware =
                                    ^
Configuration file errors encountered -- exiting


Li a man page do dhcp (man dhcp.conf) e não achei nenhuma opção pra classe
do tipo hardware.

Você sabe o que pode ser?

obrigado pela atenção, aguardo resposta.


Bruno.
>
>
> Poderia separar em sub-redes diferentes, mas talvez baste apenas separar
> em
> classes.
>
> Tente isto:
>
> ddns-update-style none;
> subnet 192.168.1.0 netmask 255.255.255.240 {
>
>        option routers                           192.168.1.1;
>        option subnet-mask                  255.255.255.240;
>        option domain-name-servers      10.10.1.253;
>        default-lease-time                     21600;
>        max-lease-time                        43200;
>        option broadcast-address         192.168.1.15;
>
>             class "internos" {
>                      match if option hardware = 00:16:EC:21:B0:0E;
>                      match if option hardware = 00:16:EC:21:B0:00;
>                      match if option hardware = 00:16:EC:21:B0:2B;
>                      match if option hardware = 00:16:EC:21:B0:26;
>                      match if option hardware = 00:16:EC:21:B0:3C;
>                      match if option hardware = 00:16:EC:21:B0:3A;
>                      match if option hardware = 00:16:EC:21:B0:45;
>                      match if option hardware = 00:16:EC:21:B0:20;
>                      match if option hardware = 00:16:EC:21:B0:19;
>               }
>
>
>        # Clientes conhecidos
>        pool {
>            allow members of  "internos";
>            range            192.168.1.3 192.168.1.11;
>
>            host TI {
>                       hardware ethernet 00:16:EC:21:B0:0E;
>                       fixed-address 192.168.1.3;
>            }
>
>            host ADMINISTRACAO01 {
>                       hardware ethernet 00:16:EC:21:B0:00;
>                       fixed-address 192.168.1.4;
>            }
>
>            host ADMINISTRACAO02 {
>                       hardware ethernet 00:16:EC:21:B0:2B;
>                       fixed-address 192.168.1.5;
>            }
>
>            host ADMINISTRACAO03 {
>                       hardware ethernet 00:16:EC:21:B0:26;
>                       fixed-address 192.168.1.6;
>            }
>
>            host FINANCEIRO01 {
>                       hardware ethernet 00:16:EC:21:B0:3C;
>                       fixed-address 192.168.1.7;
>            }
>
>            host PEDAGOGICO01 {
>                       hardware ethernet 00:16:EC:21:B0:3A;
>                       fixed-address 192.168.1.8;
>            }
>
>            host PEDAGOGICO02 {
>                       hardware ethernet 00:16:EC:21:B0:45;
>                       fixed-address 192.168.1.9;
>            }
>
>            host SECRETARIA {
>                      hardware ethernet 00:16:EC:21:B0:20;
>                      fixed-address 192.168.1.10;
>            }
>
>            host ASSESSORIA01 {
>                       hardware ethernet 00:16:EC:21:B0:19;
>                       fixed-address 192.168.1.11;
>            }
>        }
>
>        # Clientes desconhecidos
>        pool {
>            range 192.168.1.12 192.168.1.14;
>        }
> }
>
>

-- 
Bruno Galindro da Costa
bruno.galindro em gmail.com
Imbituba - SC



More information about the ubuntu-br mailing list