PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : dhcpd Problem ;(



Jakez
10.11.03, 20:32
Nabend, habe gerade meinen DHCP Server eingerichtet, er läuft auch (running), jedoch kriegen die clients keine IPs ;(( Habe ich in der Config was falsch gemacht, oder was anderes wichtiges vergessen?

Hier ist meine dhcpd.conf:

----------------------------------------------------------------------


ddns-update-style ad-hoc;

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


option domain-name "p-3.ath.cx";
option domain-name-servers 217.5.113.240, 194.25.2.129;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.2 192.168.0.10;
}

Doh!
10.11.03, 20:54
mach "ddns-update-style none" infos dazu unter man dhcpd.conf, das ist aber nicht das Problem.


Bist Du sicher das er läuft? Wenn Du Ihn nämlich über ein Startskript laufen lässt kriegst Du meist ein Running, weil viele der Fehler erst nach dem Start auftreten und er sich dann wieder beendet. Das Startskript kriegt das aber nicht mehr mit und zeigt "running". Überprüfe bei jedem Start erts noch die letzten Zeilen der /var/log/messages

Jakez
10.11.03, 20:59
p-3:/home/Jakez # rcdhcpd start
Starting DHCP server startproc: exit status of parent of /usr/sbin/dhcpd: 1
Internet Software Consortium DHCP Server V3.0.1rc10
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Internet Software Consortium DHCP Server V3.0.1rc10
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.

No subnet declaration for eth0 (192.168.1.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!

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.




Das kriege ich jetzt.... der DHCP Server soll auf der eth1 schnittstelle lauschen, und IPS verteilen.........

:(


gruß
Dennis

malko
10.11.03, 21:46
Also ich würde sagen du hast entweder in der DHCP.conf das falsche Subnet angegeben oder deine NIC (eth0) falsch belegt.

Er sagt ja

No subnet declaration for eth0 (192.168.1.1).
...

aber du deklarierst das Subnet

subnet 192.168.0.0 netmask 255.255.255.0

Ändere das mal entsprechend ab, dann sollte es funktionieren. Denke ich.