NiX - Erich Troxler schrieb:
Hallo zusammen.
Wenn ich meinen dhcp-Server starten will, funktioniert das nicht. Folgendes gibt er aus:
Server:/# rcdhcpd start /usr/sbin/rcdhcpd: line 10: authoritative: command not found /usr/sbin/rcdhcpd: line 11: ddns-update-style: command not found /usr/sbin/rcdhcpd: line 12: ddns-updates: command not found /usr/sbin/rcdhcpd: line 13: default-lease-time: command not found /usr/sbin/rcdhcpd: line 14: log-facility: command not found /usr/sbin/rcdhcpd: line 15: max-lease-time: command not found /usr/sbin/rcdhcpd: line 16: option: command not found /usr/sbin/rcdhcpd: line 17: subnet: command not found /usr/sbin/rcdhcpd: line 18: range: command not found Starting DHCP server ... cannot... DHCPD_INTERFACE in /etc/sysconfig/dhcpd is empty! skipped
wie sieht denn die Datei "/usr/sbin/rcdhcpd" oder genauer die Datei
"/etc/init.d/dhcpd" aus? Steht da vielleicht Deien Konfiguration drinnen?
Bei mir beginnt diese Datei so:
------------------------------------------------------------------
#! /bin/sh
# Copyright (c) 1996, 1997, 1998 S.u.S.E. GmbH
# Copyright (c) 1998, 1999, 2000, 2001 SuSE GmbH
# Copyright (c) 2002, 2003 SuSE Linux AG
#
# Author: Rolf Haberrecker
Dabei sieht meine /etc/dhcpd.conf so aus (Habe ich von Hand geschrieben, fand aber keinen Fehler):
[Diverses Kommentar]
authoritative ; ddns-update-style none; ddns-updates off; default-lease-time 1200; max-lease-time 9200; option domain-name "testdomain.test"; subnet 192.168.1.0 netmask 255.255.255.0 range 192.168.1.10 192.168.1.254;
in dieser Datei (/etc/dhcpd.conf) ist das auch richtig so.
und die /etc/sysconfig/dhcpd beinhaltet (neben Kommentar nur diese Zeile):
DHCPD_INTERFACE="eth0"
eth0 ist dabei die Netzwerkkarte, welche statisch mit der IP 192.168.1.2 konfiguriert ist.
passt
Kann mir da jemand helfen?
Vielleicht ist obiges eine Hilfe. Gruß, Günther