[Gelöst] DHCP-Server startet nicht

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
Benutzeravatar
fauxxami
Beiträge: 41
Registriert: 04.06.2012 17:30:03

[Gelöst] DHCP-Server startet nicht

Beitrag von fauxxami » 01.03.2014 15:11:36

Moin!

Nachdem ich mir nun zwei Tage einen Wolf gesucht habe: mein frisch aufgesetzter DHCP-Server verweigert den Start mit der Meldung "No subnet declaration for eth0 (192.168.1.2)". Meine Konfiguration:

'ifconfig eth0' sagt:

Code: Alles auswählen

eth0  Link encap:Ethernet  Hardware Adresse 90:1b:0e:0a:d6:60  
inet Adresse:192.168.1.2  Bcast:192.168.1.255  Maske:255.255.255.0
'cat /etc/default/isc-dhcp-server' sagt:

Code: Alles auswählen

INTERFACES="eth0"
Und 'cat /etc/dhcp/dhcpd.conf' sagt:

Code: Alles auswählen

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.200 192.168.1.254;
    option domain-name "foo.bar";
    option domain-name-servers 192.168.1.2;
    option routers 192.168.1.2;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.1.255;
    server-name "server.foo.bar";
}
In dhcpd.conf gibt es vor der Subnetz-Deklaration noch ein paar allgemeine Optionen. Was übersehe ich hier?

Ach so, komisch finde ich, dass ich nach einem Neustart oder einem 'ifup eth0' immer eine Route habe, deren Herkunft ich mir nicht erklären kann. So sieht meine Routing-Tabelle dann aus:

Code: Alles auswählen

Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.61.1    0.0.0.0         UG    100    0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.61.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
Woher kommt die 169er-Zeile? Was sagt eure Glaskugel?

Danke und viele Grüße, Jürgen
Zuletzt geändert von fauxxami am 01.03.2014 18:21:35, insgesamt 1-mal geändert.

reba
Beiträge: 536
Registriert: 27.06.2011 08:59:37

Re: DHCP-Server startet nicht

Beitrag von reba » 01.03.2014 17:35:49

Code: Alles auswählen

 ~  whois 169.254.0.0

#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#


#
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=169.254.0.0?showDetails=true&showARIN=false&ext=netref2
#

NetRange:       169.254.0.0 - 169.254.255.255
CIDR:           169.254.0.0/16
OriginAS:       
NetName:        LINKLOCAL-RFC3927-IANA-RESERVED
NetHandle:      NET-169-254-0-0-1
Parent:         NET-169-0-0-0-0
NetType:        IANA Special Use
Comment:        Computers use addresses starting with "169.254." when they do not have a manually configured address or when they are not told which address to use by a service on the network.  They are commonly called the "link local" addresses.
Comment:        
Comment:        Routers are not allowed to forward packets sent from an IPv4 "link local" address, so they are always used by a directly connected device.
Comment:        
Comment:        These addresses were assigned by the IETF, the organization that develops Internet protocols, in the Standards Track document, RFC3927, which can be found at:
Comment:        http://datatracker.ietf.org/doc/rfc3927
RegDate:        1998-01-27
Updated:        2014-01-09
Ref:            http://whois.arin.net/rest/net/NET-169-254-0-0-1

OrgName:        Internet Assigned Numbers Authority
OrgId:          IANA
Address:        12025 Waterfront Drive
Address:        Suite 300
City:           Los Angeles
StateProv:      CA
PostalCode:     90292
Country:        US
RegDate:        
Updated:        2012-08-31
Ref:            http://whois.arin.net/rest/org/IANA

OrgAbuseHandle: IANA-IP-ARIN
OrgAbuseName:   Internet Corporation for Assigned Names and Number
OrgAbusePhone:  +1-310-301-5820 
OrgAbuseEmail:  abuse@iana.org
OrgAbuseRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN

OrgTechHandle: IANA-IP-ARIN
OrgTechName:   Internet Corporation for Assigned Names and Number
OrgTechPhone:  +1-310-301-5820 
OrgTechEmail:  abuse@iana.org
OrgTechRef:    http://whois.arin.net/rest/poc/IANA-IP-ARIN


#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#

Benutzeravatar
fauxxami
Beiträge: 41
Registriert: 04.06.2012 17:30:03

Re: DHCP-Server startet nicht

Beitrag von fauxxami » 01.03.2014 18:00:23

Vielen Dank, hätte ich natürlich auch selbst drauf kommen können:
Computers use addresses starting with "169.254." when they do not have a manually configured address or when they are not told which address to use by a service on the network. They are commonly called the "link local" addresses.
Allerdings HAT eth0 ja eine feste Adresse - komisch.

Benutzeravatar
fauxxami
Beiträge: 41
Registriert: 04.06.2012 17:30:03

Re: DHCP-Server startet nicht

Beitrag von fauxxami » 01.03.2014 18:18:33

Urgs - ich habe das Problem soeben gefunden: auf dem Rechner ist auch ein LTSP-Server installiert, aber noch nicht vernünftig konfiguriert. Das Upstart-Script vom dhcpd nimmt die dhcpd.conf aus dem LTSP-Verzeichnis, wenn es die gibt - und die gab es tatsächlich mit einer nicht passenden Konfiguration. Diese Datei habe ich umbenannt, und nun läuft es. Meine Güte ...

Antworten