PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : DHCP Server bringt Fehlermeldung



howgo
28.03.02, 15:15
Hallo,

ich habe meine DHCP eigentlich richtig konfiguriert, zumindest dachte ich das. Nur jetzt bekomme ich beim Start mit "rcdhcpd start" folgenden Fehler, ich hoffe ihr könnt mir etwas helfen, schon mal danke *g*

Achja ich habe SuSE Linux 7.3 Professional.


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


Ich poste gleich mal meine dhcpd.conf - vielleicht fällt euch was auf:

# dhcpd.conf

# this statement is needed by dhcp-3 needs at least this statement
# you have to delete it for dhcpd-2, because it does not know it
ddns-update-style none;

# this subnet is served by us
authoritative;

# declare the lease time (the time after which a client will renew its lease), Angabe in Sekunden
default-lease-time 86400; # 1 Tag
max-lease-time 604800; # 1 Woche

# let's give the local domain a name
#(which should correlate to your name server configuration)
option domain-name "lokales-netz.de";

# this assumes that your dhcp server is also the router for the subnet
option routers 192.168.1.2;

# clients shall use this host as nameserver, too
option domain-name-servers 192.168.1.2;
option netbios-name-servers 192.168.1.2;

# this can explicitely be specified
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;

# thesse addresses will be given out dynamically
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.20 192.168.1.200;
# options may also be put here if they are not global
}

# this host is known by its hardware address and we want a fixed address for it
#host printserver {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address 192.168.1.7;
#}


Vielen Dank

Andreas

LINUXRH7
28.03.02, 15:43
Hallo,

kann es sein, das du VmWare laufen hast?
Das gleiche hatte ich mal bei Samba. Der wollte auch nicht. Ich mußte denn vmware kurz ausschalten und dann ging es.

cya
LiNUXrh7

howgo
28.03.02, 15:50
Hallo LINUXRH7,

ich hab kein VMWare installiert. Hmm komisch, woran das blos klemmt.


mfg

howgo

Nighthawk
28.03.02, 16:11
Und eth0 hat eine feste IP, die IP stimmt auch (man kann ja nie wissen :)) und eth0 initialisiert beim booten richtig? In der conf seh ich auch keinen Fehler...

howgo
28.03.02, 16:46
Hallo,

also ich denke die Ip-Adresse vom Server sollte Fix sein.
Ich hab eth0 mit Yast ein feste IP gegeben.
Hier der Auszug aus rc.config

#
# IP Adresses
#
IPADDR_0="192.168.1.20"
IPADDR_1=""
IPADDR_2=""
IPADDR_3=""

#
# Network device names (e.g. "eth0")
#
NETDEV_0="eth0"
NETDEV_1=""
NETDEV_2=""
NETDEV_3=""

#
# Parameters for ifconfig, simply enter "bootp" or "dhcpclient" to use the
# respective service for configuration.
# Sample entry for ethernet:
# IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224"
#
IFCONFIG_0="dhcpclient"
IFCONFIG_1=""
IFCONFIG_2=""
IFCONFIG_3=""



Wie kann ich sehen, ob eth0 beim booten richtig initialisiert wurde?


Thx

Andreas

Nighthawk
28.03.02, 16:50
Naja, wenn Du interne IPs anpingen kannst muss eth0 wohl laufen :) Oder ifconfig.

howgo
28.03.02, 17:06
Hallo,
also ich kann meinen Server, 192.168.20.1 nicht anpingen:

boss:~ # ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) from 217.229.148.96 : 56(84) bytes of data.
From 217.237.160.210: icmp_seq=1 Destination Host Unreachable
From 217.237.160.210 icmp_seq=1 Destination Host Unreachable
From 217.237.160.210 icmp_seq=2 Destination Host Unreachable


bei ifconfig kommt folgendes:
eth0 Link encap:Ethernet HWaddr 00:40:F4:1A:13:E2
inet6 addr: fe80::240:f4ff:fe1a:13e2/10 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:1796 errors:0 dropped:0 overruns:0 frame:0
TX packets:2107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:545383 (532.6 Kb) TX bytes:343989 (335.9 Kb)
Interrupt:10 Base address:0x7000


Andreas

rabenkind
28.03.02, 17:17
@howgo

hast du leider nicht
#
# Parameters for ifconfig, simply enter "bootp" or "dhcpclient" to use the
# respective service for configuration.
# Sample entry for ethernet:
# IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224"
#
IFCONFIG_0="dhcpclient" <du hast ihn als dhcpclient konfiguriert

IFCONFIG_1=""
IFCONFIG_2=""
IFCONFIG_3=""

so sollte es aussehen

#
# Parameters for ifconfig, simply enter "bootp" or "dhcpclient" to use the
# respective service for configuration.
# Sample entry for ethernet:
# IFCONFIG_0="192.168.81.38 broadcast 192.168.81.63 netmask 255.255.255.224"
#
IFCONFIG_0="192.168.20.1 broadcast 192.168.20.255 netmask 255.255.255.0" #<jetzt hat er eine ip

IFCONFIG_1=""
IFCONFIG_2=""
IFCONFIG_3=""

wenn du diese adresse uber dhcp zuweisen willst musst du diesen eintrag auskommentieren, natürlich mit den werten die du haben willst und der korrekten mac-adresse. dann musst du oben natürlich wieder dhcpclient eintragen.

# this host is known by its hardware address and we want a fixed address for it
#host printserver {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address 192.168.1.7;
#}

grüsse michael

howgo
28.03.02, 17:58
Hallo Michael,

danke für den Tipp. Ich war vorher auf dem Holzweg und dachte man müsste die Zeile "IFCONFIG_0="dhcpclient"" beibehalten, sonst funzt dhcp nicht.

Naja man lernt. Jetzt bekommt zwar der Server bzw. eth0 die Ip-Adresse 192.168.20.1 zugewiesen, aber leider bleibt die Fehlermeldung die gleiche.


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



Wo liegt da nur der Bock drinn.

thx

Andreas

Newbie2001
28.03.02, 20:09
diese meldung kommt meistens wenn du zwei Netzwerk-Interfaces hast und der DHCP-Server nicht weiß auf welchem Interface rer Anfragen entgegen nehmen soll. Starte den DHCP-Server einfach mit

dhcpd eth0

damit sagst du dem dhcpd dass er auf eth0 Anfragen entegegen nehmen soll.

howgo
28.03.02, 20:55
Hallo,

ich hab nur 1 Netzwerkkarte in meinem PC. Wenn ich den dhcp mit "dhcpd eth0" starte erscheint immer noch der gleiche Fehler / Warnung.

Das ist ja echt blöd.

thx

Andreas

howgo
28.03.02, 22:47
Hallo,

jetzt hab ich mal was ausprobiert, da ja der server auch als router für dsl dienen soll.

Ich hab jetzt insgesamt 2 Netzwerkkarten eingebaut, damit nicht alles per Hub und 1ner NIC abläuft, was ja bestimmt massig Kollissionen zur Folge hätte.

1. Ethernet
2. DSL

Und was soll ich sagen, jetzt geht das Sch... Ding von DHCP.
Keine Ahnung was da außer plan gelaufen ist.

Aber trotzdem bestens Dank für Eure Tipps

Bis bald

Andreas