|
|
||||||
| Fóruns | Wiki | Classificados | Reviews | Jogos | Grupos Sociais | RSS Feeds | FAQ | Termos de Uso | Contato | Sobre |
| Registrar | Fotos | Blogs | Calendário | Marcar Fóruns Como Lidos |
![]() |
|
|
LinkBack | Ferramentas do Tópico |
|
|
#1 (permalink) |
![]() |
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
__________________
Emanuel |
|
|
|
|
#2 (permalink) |
![]() |
# 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; } } }
__________________
Fernando Gonçalves Bona MSN :: fernandobona@gmail.com "Feche sua janela e abra suas portas. Seja livre, use Linux" "Close your windows and open your doors. Be free, use Linux" |
|
|
|
|
#3 (permalink) |
![]() |
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;
}
}
}
Código:
root@servidor:/etc# dhcpd Internet Systems Consortium DHCP Server V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit ISC DHCP 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 ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-server@isc.org 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. root@servidor:/etc#
__________________
Emanuel |
|
|
|
|
#4 (permalink) |
![]() |
os ips que vc colocou no arquivo de configuracao estao certos? qual a versao do server dhcp que voce esta usando e qual distro?
__________________
Fernando Gonçalves Bona MSN :: fernandobona@gmail.com "Feche sua janela e abra suas portas. Seja livre, use Linux" "Close your windows and open your doors. Be free, use Linux" |
|
|
|
|
#5 (permalink) |
![]() |
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;
}
}
}
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 ISC DHCP 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 ISC DHCP 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
__________________
Emanuel |
|
|
|
|
#7 (permalink) |
|
Super Moderador
![]() Registrado em: Jan 2003
Localização: Pará
Idade: 24
Posts: 3,081
Agradeceu: 2
Agradecido 42 vez(es) em 40 Posts
Reputação: 387 ![]() |
67/68 udp. veja na google para ver os respectivos usos de cada porta.
__________________
Better Safe Than Sorry Participe do Underlinux Wiki! http://www.under-linux.org/wiki/ |
|
|
![]() |
| Ferramentas do Tópico | |
|
|
Tópicos Similares
|
||||
| Tópico | Tópico Iniciado Por | Fórum | Respostas | Última Mensagem |
| bandlimit + varias faixas | Patrick | UnderLinux BandLimit | 6 | 30-05-2007 06:39 |
| Servidor DHCP para varias redes | flon | Proxy/NAT/Firewall | 3 | 14-12-2005 12:29 |
| DHCP em várias interfaces | smace | Proxy/NAT/Firewall | 0 | 24-11-2005 10:10 |
| DHCP para várias subredes | WhiteTiger | Redes/Protocolos | 11 | 04-08-2005 17:34 |
| DHCP - várias redes | bouncer | Adm. em Geral | 7 | 03-08-2005 21:58 |
| Divulgue |