PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : DHCp Server startet nicht :(



Sveniboy1984
15.08.05, 13:43
Moin Moin,

ich hab ein Problem mit meinem DHCP Server :(
Der will aufs Verrecken nicht starten.
Weiß nicht mehr was ich machen sollen, ich hab viel im Internet gelesen aber nichts hat geholfen.
Darum hoffe ich das ihr mir vielleicht weiterhelfen könnt.

Ich hab in meiner Suse Linux 9.3 Kiste 2 identische Netzwerkkarten installiert.
Beide Karten sind aber an 2 verschiedene Switch angeschlossen.

Ich wollte eine Netzwerkkarte zum DHCP-Server machen.
Brauch den DHCP Server für meinen Ltsp Server der auf dem selben Rechner laufen soll.

eht0 --> DHCP Server + Ltsp Server
eht1 --> Firmennetzwerk

Hab unter Yast schön alles eingestellt und wenn ich auf Beenden mache und Linux alles konfiguriert dann kommt die Fehlermeldung:
"Konnte den DHCP Daemon nicht starten"

Wenn ich in der Shell "dhcpd start" eingebe, kommt folgendes:

dhpcd start:
Internet Systems Consortium DHCP Server V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start 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.


Meine dhcpd.conf:

default-lease-time 604800;
max-lease-time 691200;

option subnet-mask 255.255.255.1;
option broadcast-address 192.168.84.255;
option domain-name "ltsp";
option domain-name-servers 192.168.1.254;
option routers 192.168.84.1;
ddns-update-style none;

option root-path "192.168.84.1:/lts/2.4.26-ltsp-3/pxelinux.cfg/default";

subnet 192.168.84.1
netmask 255.255.255.1

{
default-lease-time 25200;
max-lease-time 691200;
}


/etc/sysconfig/dhcpd:

## Path: Network/DHCP/DHCP server
## Description: DHCP server settings
## Type: string
## Default: ""
## ServiceRestart: dhcpd
#
# Interface(s) for the DHCP server to listen on.
#
# Instead of the interface name, the name of its configuration can be given.
# If the configuration file is named
# /etc/sysconfig/network/ifcfg-eth-id-00:50:fc:e4:f2:65
# then id-00:50:fc:e4:f2:65 would be suitable to identify the configuration.
#
# Examples: DHCPD_INTERFACE="eth0"
# DHCPD_INTERFACE="eth0 eth1 eth2 tr0 wlan0"
# DHCPD_INTERFACE="internal0 internal1"
# DHCPD_INTERFACE="id-00:50:fc:e4:f2:65 id-00:a0:24:cb:cc:5c wlan0"
#
DHCPD_INTERFACE="eth-id-00:05:5d:fb:5d:93"

## Type: yesno
## Default: yes
## ServiceRestart: dhcpd
#
# Shall the DHCP server dhcpd run in a chroot jail (/var/lib/dhcp)?
#
# Each time you start dhcpd with the init script, /etc/dhcpd.conf will
# be copied to /var/lib/dhcp/etc/.
#
# Some files that are important for hostname to IP address resolution
# (/etc/{hosts,host.conf,resolv.conf,localtime}, /lib/libnss_dns.so.2,
# /lib/libresolv.so.2) will also be copied to the chroot jail by the
# init script when you start it (about 100kB altogether).
#
# The pid file will be in /var/lib/dhcp/var/run/dhcpd.pid.
#
DHCPD_RUN_CHROOTED="yes"

## Type: string
## Default: ""
## ServiceRestart: dhcpd
#
# Since version 3, dhcpd.conf can contain include statements.
# If you enter the names of any include files here, _all_ conf
# files will be copied to $chroot/etc/, when dhcpd is started in the
# chroot jail. (/etc/dhcpd.conf is always copied.)
#
# For your convenience, you can also specify entire directories, like
# "/etc/dhcpd.conf.d".
#
# Example: "/etc/dhcpd.conf.shared /etc/dhcpd.conf.bootp-clients"
#
DHCPD_CONF_INCLUDE_FILES=""

## Type: string
## Default: "dhcpd"
## ServiceRestart: dhcpd
#
# Leave empty or enter "root" to let dhcpd run as root.
# Enter "dhcpd" to run dhcpd as user 'dhcpd'.
#
DHCPD_RUN_AS="dhcpd"

## Type: string
## Default: ""
## ServiceRestart: dhcpd
#
# Other arguments that you want dhcpd to be started with
# (e.g. "-p 1234" for a non-standard port to listen on)
#
DHCPD_OTHER_ARGS=""

## Type: string
## Default: ""
## ServiceRestart: dhcpd
#
# You may specify another dhcpd binary to be run.
#
# This can be employed to use /usr/sbin/dhcpd.lpf, a dhcpd binary that is
# compiled with the Linux packet filter API instead of BSD sockets.
# Only in rare cases (e.g. non-RFC compliant clients) should this be needed.
#
#
# If empty, the default applies.
#
DHCPD_BINARY=""


Was mach ich verkehrt?
Wenn ihr noch mehr Confs braucht, dann sagt bescheid.

RichieX
15.08.05, 14:28
Also so eine verkorkste dhcpd.conf habe ich noch nie gesehen, das kann ja niemals funktionieren.

bis zur Zeile


ddns-update-style none;

siehts ja noch ganz gut aus. Die nächste Zeile kann u.U. OK sein, kenn ich jetzt nicht. Aber der Rest ist ganz großer Unfug.

Ab da solltest du's so mal probieren:


subnet 192.168.84.0 netmask 255.255.255.0 {
range 192.168.84.1 192.168.84.99;
}
...

Der Rest kann erstmal weg.

Und was ist das eigentlich für eine Netzmaske: 255.255.255.1 :ugly: Du hast hoffentlich nicht diese für das IF konfiguriert.

Sveniboy1984
15.08.05, 14:51
So, hab die dhcpd.conf umgeändert:

default-lease-time 604800;
max-lease-time 691200;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.84.255;
option domain-name "ltsp";
option domain-name-servers 192.168.1.254;
option routers 192.168.84.1;
ddns-update-style none;

option root-path "192.168.84.1:/lts/2.4.26-ltsp-3/pxelinux.cfg/default";

subnet 192.168.84.0 netmask 255.255.255.0

{
range 192.168.84.1 192.168.84.20;
default-lease-time 604800;
max-lease-time 691200;
}

Jetzt kommt aber immer noch der folgende Fehler:

Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **


Not configured to listen on any interfaces!


Und was ist das eigentlich für eine Netzmaske: 255.255.255.1 Du hast hoffentlich nicht diese für das IF konfiguriert.

Ich hatte davor die Netmask 255.255.255.0, aber der DHCP immer rummeckerte das bei der 0 ein schwerer Fehler war, hab ich das in 1 umgeändert.
Jetzt hab ich wieder 0 und es geht ja.

RichieX
15.08.05, 16:18
subnet 192.168.84.0 netmask 255.255.255.0

{
range 192.168.84.1 192.168.84.20;
default-lease-time 604800;
max-lease-time 691200;
}

So kann das nicht funktionieren. Zwischen der letzten Null von der Netzmaske darf/muss nur _ein_ Leerzeichen stehen und nichts anderes:


subnet 192.168.84.0 netmask 255.255.255.0 {
range 192.168.84.1 192.168.84.99;
default-lease-time 604800;
max-lease-time 691200;
}


Den LDAP-Fehler kann ich nicht zuordnen.

Sveniboy1984
16.08.05, 08:37
So, meine geänderte Config:

default-lease-time 604800;
max-lease-time 691200;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.84.255;
option domain-name "ltsp";
option domain-name-servers 192.168.1.254;
option routers 192.168.84.1;
ddns-update-style none;

option root-path "192.168.84.1:/lts/2.4.26-ltsp-3/pxelinux.cfg/d

subnet 192.168.84.0 netmask 255.255.255.0 {
range 192.168.84.1 192.168.84.20;
default-lease-time 604800;
max-lease-time 691200;
}



Der Fehler bleibt aber da!
Ich verstehs nicht :(

mamue
16.08.05, 09:04
Den LDAP-Fehler kann ich nicht zuordnen.

Der LDAP-Fehler ist kein Fehler. SuSE 9.x's DHCP versteht sich auch optional mit ldap als Backend. Kann man machen, muß man aber nicht. Lässt man die Angaben weg, bekommt man einen Hinweis, das man da etwas verpaßt, mehr nicht.

Was sagt denn "dhcpd -t" ?
Steht etwas im Logfile, das weiterhelfen könnte?
Hast Du wirklich ein Interface mit der IP 192.168.84.0? Du mußt AFAIK eine gültige Interface Adresse unterbringen, ifconfig sagt Dir, welche Du hast.
Im Übrigen endet
option root-path "1...
nicht mit dem nötigen "; das kann natürlich auch ein copy-paste Fehler sein.
option root-path "192.168.84.1:/lts/2.4.26-ltsp-3/pxelinux.cfg/d";
könnte die Zeile syntaktisch korrekt lauten.

HTH
mamue

RichieX
16.08.05, 09:20
@mamue
Schön das SuSE das bereiststellt, das wusste ich nicht. Das ";" scheint schon drin zu sein, in den vorhereigen Posts ist es auch da.

Ich denke er hat gar kein Interface im Netz 192.168.84.0/24, jedenfalls würde es diesen Fehler erklären:


No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **


Not configured to listen on any interfaces!

Sveniboy1984
16.08.05, 09:52
Moin Moin,

wollte euch nur bescheid sagen das der DHCP Server jetzt läuft :) :) :)

Ich hab die Firewall ausgeschaltet, da die den DHCP Server geblockt hat und im RunlevelEditor den Dhcp aktiviert und schon ging es :):)

Keine Ahnung wies es geht, aber er startet ihn jetzt und ich bin Happy :)

VIELEN DANK FÜR EURE HILFE!

.:DENNIS:.
18.08.05, 19:20
hallo ich bekomm die gleiche fehler meldung und hab aber trotzdem alles richtig gemacht! Also das mit: No subnet declaration for yes (0.0.0.0)
meine dhcpd.conf is auch mit:
subnet 192.168.84.0 netmask 255.255.255.0 {
range 192.168.84.1 192.168.84.20;
default-lease-time 604800;
max-lease-time 691200;
}

aber trotzdem wills net!

Sveniboy1984
18.08.05, 19:51
Hey,

stell die Firewall unter Yast aus!
Die blockiert den Dhcp!

Geh mal unter Yast in den Runlevel Editor und aktiviere dort den Dhcp Prozess.
So hab ich das Problem gelöst!

.:DENNIS:.
18.08.05, 20:32
hab ich schon versucht! geht net