Erro na configuraçao dhcpd.conf [RESOLVIDO]
dtgfranca
(usa Debian)
Boa noite pessoal, hj gostaria de pedir um grande favor eu estou dando assistencia a um telecentro na qual eles usam um sistema chamado tucunaré baseado em debian , esses dias o pessoal pediram para mudar o dns , so que quando mudei , a rede dos thinclient parou e pegar entao resolvi, por o dns dentro do dhcpd.conf,alterei o dns na linha "option domain-name-servers" entao toda vez que eu tento reiniciar o serviço da erro , então logo abaixo esta minha configuraçao do dhcpd.conf
"authoritative;
log-facility local7;
get-lease-hostnames true;
use-host-decl-names on;
next-server 192.168.17.254;
option root-path " 192.168.17.254:/opt/ltsp-4.2/i386";
option routers 192.168.17.254;
option domain-name-servers 200.198.6.171;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.17.255;
subnet 192.168.17.0 netmask 255.255.255.0 {
range 192.168.17.21 192.168.17.250;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/lts/2.6.20.9-ltsp-1/pxelinux.0";
} else {
filename "/lts/vmlinuz-2.6.20.9-ltsp-1";
}
host comp001 {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.17.1;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/lts/2.6.20.9-ltsp-1/pxelinux.0";
} else {
filename "/lts/vmlinuz-2.6.20.9-ltsp-1";
}
}
host comp002 {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.17.2;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/lts/2.6.20.9-ltsp-1/pxelinux.0";
}
"
Ficaria muito grato se puderem me ajudar
BrunoTecnico
(usa Sabayon)
Melhor resposta
[
2 ] Enviado em 03/08/2012 - 21:13h:
Re: Erro na configuraçao dhcpd.conf [RESOLVIDO]
# Vc tem os seguintes endereços:
Eth0: 192.168.
0 .1
Eth1: 192.168.
52 .1
Mas no arquivo
dhcpd.conf vc configurou com range x.x.
17 .x
blá blá
blá blá
option broadcast-address 192.168.17.255;
subnet 192.168.17.0 netmask 255.255.255.0 {
range 192.168.17.21 192.168.17.250;
blá blá
blá blá
# Sua Rede eth0 = usa range "0"
# Sua Rede eth1 = usa range "52"
assim vc deixa seu "dhcp" doido.
- - -
Vc precisa configurar o arquivo de acordo com suas redes.
BrunoTecnico
(usa Sabayon)
# Vamos ver se há algum erro com o arquivo "dhcpd.conf":
dhcpd -d
dtgfranca
(usa Debian)
depois eu usei o comando dhcp3 -d e apareceu isso:
####################################################
No subnet declaration for eth1 (192.168.52.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 (192.168.0.1).
** 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!
######################################################
aqui estará minha configuraçao do interfaces eth1:
###################################################
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
################################################################
######### NAO ALTERE AS LINHAS DENTRO DESTE BLOCO ############
################################################################
# Interface primaria de rede
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
################################################################
################################################################
allow-hotplug eth1
iface eth1 inet static
address 192.168.52.1
netmask 255.255.255.0
gateway 192.168.52.254
dns-nameservers 200.198.6.171
#################################################################
BrunoTecnico
(usa Sabayon)
# Parece um probleminha com IP's/range.
Vejamos...
ifconfig
cat /etc/network/interfaces
dtgfranca
(usa Debian)
Parceiro aqui esta o ifconfig
eth0 Link encap:Ethernet Endere輟 de HW 00:11:6b:97:24:a8
inet end.: 192.168.0.1 Bcast:192.168.0.255 Masc:255.255.255.0
endere輟 inet6: fe80::211:6bff:fe97:24a8/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 M騁rica:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
coliss:0 txqueuelen:1000
RX bytes:11396 (11.1 KiB) TX bytes:10390 (10.1 KiB)
IRQ:20 Endere輟 de E/S:0xa000
eth1 Link encap:Ethernet Endere輟 de HW 00:11:6b:94:ec:f3
inet end.: 192.168.52.1 Bcast:192.168.52.255 Masc:255.255.255.0
endere輟 inet6: fe80::211:6bff:fe94:ecf3/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 M騁rica:1
RX packets:700 errors:0 dropped:0 overruns:0 frame:0
TX packets:685 errors:0 dropped:0 overruns:0 carrier:0
coliss:0 txqueuelen:1000
RX bytes:426855 (416.8 KiB) TX bytes:144984 (141.5 KiB)
IRQ:19 Endere輟 de E/S:0xa400
lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endere輟 inet6: ::1/128 Escopo:M痃uina
UP LOOPBACKRUNNING MTU:16436 M騁rica:1
RX packets:109 errors:0 dropped:0 overruns:0 frame:0
TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
coliss:0 txqueuelen:0
RX bytes:25825 (25.2 KiB) TX bytes:25825 (25.2 KiB)
****************************************************************
E aqui o resultado cat /etc/network/interfaces:
######### NAO ALTERE AS LINHAS DENTRO DESTE BLOCO ############
################################################################
# Interface primaria de rede
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
################################################################
################################################################
allow-hotplug eth1
iface eth1 inet static
address 192.168.52.1
netmask 255.255.255.0
gateway 192.168.52.254
dns-nameservers 200.198.6.171
#auto eth1
#auto eth0
dtgfranca
(usa Debian)
entao vc me recomenda trocar os numeros da subnet da interface alterando para x.x.17.x?
wosores
(usa Debian)
olá
Verifica as chaves {}, vê se não está faltando alguma ou tem alguma a mais
<< Primeira | Anterior
1
Próxima | Última >>