Histórico: Eu tenho um minúsculo plugu servidor que eu quero conectar ao meu roteador ADSL (ou como você quiser chamá-lo) em uma extremidade (eth0), e na outra ponta (eth1) eu quero rodar um servidor dhcp para minha LAN. Estou preso a fazer com que a LAN funcione. SO é fedora 12. Eu configurei meu /etc/dhcp/dhcpd.conf assim:
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
option domain-name "unknown.org";
option domain-name-servers 192.168.44.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.44.255;
default-lease-time 86400;
max-lease-time 172800;
subnet 192.168.44.0 netmask 255.255.255.0
{
host fedorabigbox
{
hardware ethernet 00:19:66:8E:61:74;
fixed-address 192.168.44.21;
}
#host mobile
#{
# hardware ethernet ***;
# fixed-address 192.168.44.22;
#}
range 192.168.44.100 192.168.44.110;
option routers 192.168.44.1;
}
# this is just dummy, as read many howtos, some suggesting to add a subnet blah netmask blah for each interface
subnet 192.168.33.0 netmask 255.255.255.0
{
range 192.168.33.100 192.168.33.110;
option routers 192.168.33.1;
}
Mas o servidor não consegue iniciar ao tentar iniciá-lo via /etc/init.d/dhcpd start
Em geral, seria bom se alguém pudesse me indicar detalhadamente como funciona a rede, sou muito novo nesse assunto.
Pergunta mais concreta: como apontar as sub-redes para eth1 e a outra para eth0, como isso pode ser alcançado?
Alguém vê algum erro ou falha? A sintaxe deve estar correta, já verifiquei isso com a verificação de sintaxe do dhcpd.
Obrigado por qualquer ajuda
Apêndice:
O erro:
Internet Systems Consortium DHCP Server 4.1.0p1
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
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 eth0 (no IPv4 addresses).
** 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!
This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the Red Hat Bugzilla site:
http://bugzilla.redhat.com
exiting.