[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dhcp] Verständnisfrage



Guten Morgen liebe Liste,

ich habe da mal eine Verständisfrage zm Thema dhcp. Meine Situation:
Ich habe ein Kabelmodem, welches per Ethernet oder USB angeschlossen
werden kann. Über Ethernet betrieben, stellt es einen dhcp-Server dar,
was bedeutet, mein PC muss ein dhcp-client sein. Die Theorie ist
einfach: man starte dhclient, und bekommt vom Kabelmodem eine
Netzwerkkonfiguration, bestehend aus IP-Adresse, DNS und Gateway,
zugewiesen, welche dhclient dann dem entsprechenden Netzwerkadapter
(hier: eth0) zuordnet.
Die Anfrage des dhclient wird auf 255.255.255.255 rausgeschickt, also
ein Broadcast. Es sollte daher also nicht nötig sein, die IP-Adresse
des Kabelmodems zu kennen (ehrlich gesagt, kenne ich sie auch nicht).
Nun die Frage: Woher weiß das Kabelmodem, dass es sich als dhcp-Server
zu erkennen geben soll, wenn es angefragt wird? Laut der Ausgabe
von dhclient tut es das bisher noch nicht. Hier die relevanten
Ausschnitte aus /var/log/syslog:

Nov 16 09:59:39 odysseus kernel: eth0: link up, 100Mbps,full-duplex,lpa 0x45E1
Nov 16 09:59:45 odysseus dhcdbd: Started up.
Nov 16 09:59:45 odysseus NetworkManager: <information>^Istarting... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^Ieth0: Device is fully-supported using driver 'via-rhine'. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^Inm_device_init(): waiting for device's worker thread to start 
Nov 16 09:59:45 odysseus NetworkManager: <information>^Inm_device_init(): device's worker thread started, continuing. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^INow managing wired Ethernet (802.3) device 'eth0'. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IDeactivating device eth0. 
Nov 16 09:59:45 odysseus lpd[2429]: restarted 
Nov 16 09:59:45 odysseus dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IWill activate wired connection 'eth0' because it now has a link. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^ISWITCH: no current connection, found better connection 'eth0'. 
Nov 16 09:59:45 odysseus dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IWill activate connection 'eth0'. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IDevice eth0 activation scheduled... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) started... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) scheduled... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) started... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) scheduled... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 1 of 5 (Device Prepare) complete. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) starting... 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) successful. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) scheduled. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 2 of 5 (Device Configure) complete. 
Nov 16 09:59:45 odysseus NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) started... 
Nov 16 09:59:46 odysseus NetworkManager: <information>^IActivation (eth0) Beginning DHCP transaction. 
Nov 16 09:59:47 odysseus NetworkManager: <information>^IActivation (eth0) Stage 3 of 5 (IP Configure Start) complete. 
Nov 16 09:59:47 odysseus NetworkManager: <information>^IDHCP daemon state is now 12 (successfully started) for interface eth0 
Nov 16 09:59:48 odysseus dhcdbd: dhco_parse_option_settings: no new option definition for alias_broadcast_address 
Nov 16 09:59:48 odysseus dhcdbd: dhco_parse_option_settings: no new option definition for alias_expiry
Nov 16 09:59:48 odysseus dhcdbd: dhco_parse_option_settings: no new option definition for alias_ip_address 
Nov 16 09:59:48 odysseus dhcdbd: dhco_parse_option_settings: no new option definition for alias_network_number 
Nov 16 09:59:48 odysseus dhcdbd: dhco_parse_option_settings: no new option definition for alias_subnet_mask 
Nov 16 09:59:48 odysseus NetworkManager: <information>^IDHCP daemon state is now 1 (starting) for interface eth0
Nov 16 09:59:50 odysseus dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 
Nov 16 09:59:50 odysseus rpc.statd [2642]: Version 1.0.10 Starting 
Nov 16 09:59:51 odysseus /usr/sbin/cron [2661]: (CRON) INFO (pidfile fd = 3) 
Nov 16 09:59:51 odysseus /usr/sbin/cron[2662]: (CRON) STARTUP (fork ok) 
Nov 16 09:59:51 odysseus /usr/sbin/cron[2662]: (CRON) INFO (Running @reboot jobs) 
Nov 16 09:59:57 odysseus dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 
Nov 16 10:00:07 odysseus dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 
Nov 16 10:00:19 odysseus dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Nov 16 10:00:32 odysseus dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16 
Nov 16 10:00:32 odysseus NetworkManager: <information>^IDevice 'eth0' DHCP transaction took too long (>45s), stopping it. 
Nov 16 10:00:32 odysseus dhclient: There is already a pid file /var/run/dhclient.eth0.pid with pid 2462 
Nov 16 10:00:32 odysseus dhclient: killed old client process, removed PID file

Den Ausgaben von dhcdbd entnehme ich, dass /etc/dhclient noch nicht 
ordnungsgemäß konfiguriert ist. Soweit ich das verstanden habe, 
muss ich dort all das reinschreiben, was der dhcp-Server auslässt. 
Aber woher weiß ich vorher, was der dhcp-Server auslassen wird,
bevor er antwortet?
Ein separates Starten von dhclient liefert die folgende
Ausgabe:

Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:a0:cc:d4:d7:f6
Sending on   LPF/eth0/00:a0:cc:d4:d7:f6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
SIOCADDRT: File exists

Hier also auch: der dhcp-Server antwortet noch nicht.
Jetzt gilt mein Dank demjenigen, der mich etwas erleuchtet, denn
mir scheint ein Stück Film zum Thema dhcp zu fehlen.

Gruß,

Dirk.




Reply to: