Problema com isc-dhcp-server! [RESOLVIDO]

1. Problema com isc-dhcp-server! [RESOLVIDO]

Samuel Carlos
skldias

(usa Slackware)

Enviado em 13/08/2012 - 17:18h

Boa tarde pessoal e o seguinte estou motando um servidor com duas placas de rede onde a eth0 conecta na internet e a eth1 e minha intranet, mas toda vez que reinicio isc-dhcp-server da uma falha com o seguinte erro:

root@box-System-Product-Name:/etc# /etc/init.d/isc-dhcp-server restart
* Stopping ISC DHCP server dhcpd [fail]
* Starting ISC DHCP server dhcpd

* check syslog for diagnostics.

resultado no syslog

Aug 13 17:09:01 box-System-Product-Name dhcpd: Wrote 0 leases to leases file.
Aug 13 17:09:01 box-System-Product-Name dhcpd:
Aug 13 17:09:01 box-System-Product-Name dhcpd: No subnet declaration for eth1 (no IPv4 addresses).
Aug 13 17:09:01 box-System-Product-Name dhcpd: ** Ignoring requests on eth1. If this is not what
Aug 13 17:09:01 box-System-Product-Name dhcpd: you want, please write a subnet declaration
Aug 13 17:09:01 box-System-Product-Name dhcpd: in your dhcpd.conf file for the network segment
Aug 13 17:09:01 box-System-Product-Name dhcpd: to which interface eth1 is attached. **
Aug 13 17:09:01 box-System-Product-Name dhcpd:
Aug 13 17:09:01 box-System-Product-Name dhcpd:
Aug 13 17:09:01 box-System-Product-Name dhcpd: Not configured to listen on any interfaces!


mas eu ja configurei o dhcpd.conf em /etc/dhcpd/dhcpd.conf e o arquivo dhcpd.conf em /etc/default/dhcpd.conf colocando INTERFACES="eth1'
me conecto a internet sem ṕroblemas usando eth0 mas em eth1 nao gera e nenhum dos meus computadores recebem ip!
por favor me ajudem!


  


2. MELHOR RESPOSTA

Raphael Kennedy
raphakd

(usa Slackware)

Enviado em 13/08/2012 - 17:41h

# Minha configuracao
#VI SEU POST E NAO ACHEI ERROS TALVEZ SEJA NA CONFIGURACAO DO ISC-DHCP-SERVER

#eth0 internet
#eth1 rede local com DHCP ativo

#Configuracao abaixo /etc/network/interfaces
###########################################

auto lo
iface lo inet loopback

#eth0
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.1
gateway 192.168.1.1

#eth1
auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255

#Configuracao abaixo do arquivo /etc/default/isc-dhcp-server
################################################

INTERFACES="eth1"


#COnfiguracao abaixo /etc/dhcp/dhcpd.conf
###############################################
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "seu_dominio";
option domain-name-servers 8.8.8.8, 8.8.4.4;#Usei DNS google

default-lease-time 600;
max-lease-time 7200;

authoritative;
log-facility local7;

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.99;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
}



3. Re: Problema com isc-dhcp-server! [RESOLVIDO]

Danilo Silva Mattos
danilo.mattos

(usa Debian)

Enviado em 13/08/2012 - 17:27h

Posta seu dhcpd.conf ae pra gente


4. Re: Problema com isc-dhcp-server! [RESOLVIDO]

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 13/08/2012 - 17:31h

como o amigo falou
poste o seu dhcp.conf para podemos verificar o que pode ser



5. dhcpd.conf

Samuel Carlos
skldias

(usa Slackware)

Enviado em 13/08/2012 - 17:37h

galera esse e o dhcpd.conf

ddns-update-style none;
option domain-name "home";
option domain-name-servers 208.67.222.222,208.67.220.220;

default-lease-time 600;
max-lease-time 7200;

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.5 192.168.1.250;
option routers 192.168.1.1;

option broadcast-address 192.168.1.254;
}



6. Re: Problema com isc-dhcp-server! [RESOLVIDO]

Samuel Carlos
skldias

(usa Slackware)

Enviado em 13/08/2012 - 18:16h

raphakd escreveu:

# Minha configuracao
#VI SEU POST E NAO ACHEI ERROS TALVEZ SEJA NA CONFIGURACAO DO ISC-DHCP-SERVER

#eth0 internet
#eth1 rede local com DHCP ativo

#Configuracao abaixo /etc/network/interfaces
###########################################

auto lo
iface lo inet loopback

#eth0
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.1
gateway 192.168.1.1

#eth1
auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255

#Configuracao abaixo do arquivo /etc/default/isc-dhcp-server
################################################

INTERFACES="eth1"


#COnfiguracao abaixo /etc/dhcp/dhcpd.conf
###############################################
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "seu_dominio";
option domain-name-servers 8.8.8.8, 8.8.4.4;#Usei DNS google

default-lease-time 600;
max-lease-time 7200;

authoritative;
log-facility local7;

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.99;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 10.0.0.1;
option broadcast-address 10.0.0.255;
}



Raphakd


valeu funcionou certinho!!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts