marvinoliveiras
(usa Slackware)
Enviado em 05/12/2011 - 11:33h
como está acabando meu tempo de testes e estou com uma máquina mais limitada vou usá-lo manual mesmo, depois com outra máquina farei mais testes. Uma coisa que ainda me preocupa é o meu dhcp que não está funcionando (segui o tutorial q o @saitam indicou e outros da net) vejam como está o meu /etc/dhcpd.conf:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
authoritative;
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.11 192.168.2.254;
option routers 192.168.2.1;
option domain-name-servers 200.165.132.147;
option domain-name-servers 200.165.132.154;
option broadcast-address 192.168.2.255;
}
e o meu rc.dhcpd:
#!/bin/sh
#Start/stop/restart the DHCP server
INTERFACES="eth0"
case "$1" in
'start')
dhcpd eth0
;;
'stop')
killall dhcpd
;;
'restart')
killall dhcpd
dhcpd eth0
;;
*)
ECHO "usage $0 start|stop|restart"
esac
o erro apresentado:
Internet Systems Consortium DHCP Server 4.1.1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit
https://www.isc.org/software/dhcp/
Can't open lease database /var/state/dhcp/dhcpd.leases: No such file or directory --
check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.
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.