[Ubuntu-BR] Pool de DHCP
Allison Almeida
allison.almeida em gmail.com
Sexta Junho 22 21:06:16 UTC 2007
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;
}
}
Em 22/06/07, Bruno Galindro da Costa <bruno.galindro em gmail.com> escreveu:
>
> Dae pessoal blza?
>
> Seguinte, eu preciso fazer com que o meu servidor dhcp envie endereços
> estáticos para as máquinas clientes da minha sub-rede e que envie
> endereços
> dinâmicos para máquinas (geralmente notebooks) que se conectam a esta
> sub-rede.
>
> O meu pool de endereços vai de 192.168.1.3 à 192.168.1.14.
>
> Gostaria de que os meus pcs clientes fixos da sub-rede recebecem somente
> os
> endereços que vão de 192.168.1.3 à 192.168.1.11 e os "desconhecidos" de
> 192.168.1.12 à 192.168.1.14.
>
> Mas tem um problema com a configuração do meu dhpcd.conf: se algum cliente
> desconhecido se conecta à sub-rede e, no momento em que ele solicita um ip
> para o servidor existir um IP de algum cliente fixo vago, o servidor
> entrega
> este IP ao cliente desconhecido. Ou seja, o servidor não passa para o
> cliente desconhecido o pool que eu coloquei por último para clientes
> desconhecidos que vai de 192.168.1.12 à 192.168.1.14.
>
> O que eu devo fazer pra evitar isso?
>
> Meu dhcpd.conf:
>
> 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;
# Clientes conhecidos
> pool {
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;
> }
> }
>
>
> alguém pode me ajudar?
>
> --
> Bruno Galindro da Costa
> bruno.galindro em gmail.com
> Imbituba - SC
> --
> Interessado em aprender mais sobre o Ubuntu em português?
> http://wiki.ubuntu-br.org/ComeceAqui -
> ubuntu-br mailing list
> ubuntu-br em lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-br
>
More information about the ubuntu-br
mailing list