Hallo, Am Samstag, 2. Oktober 2004 05:09 schrieb Roland May:
Hallo Andreas,
habe es noch einmal anders versucht...jetzt startet DHCP
bekomme aber noch ein:
ct 2 05:05:13 linux dhcpd: No subnet declaration for ath0 (192.168.3.1). Oct 2 05:05:13 linux dhcpd: ** Ignoring requests on ath0. If this is not what Oct 2 05:05:13 linux dhcpd: you want, please write a subnet declaration Oct 2 05:05:13 linux dhcpd: in your dhcpd.conf file for the network segment Oct 2 05:05:13 linux dhcpd: to which interface ath0 is attached. **
Du hast in einer früheren Mail geschrieben, dass du drei Netzwerkinterfaces in deinem Router hast. Der DHCP-Server "weiss" gerne, welche Subnetze es in "seinem" Netzwerk gibt. Diese Zeilen aus dem Logfile bedeuten einfach, dass er keine Anfragen über das Interface entgegen nimmt. Wenn du aber möchtest, dass er dort auch auf Anfragen reagiert, solltest du eine Subnetz-Deklaration dafür einfügen: subnet 192.168.3.0 netmask 255.255.255.0 { ... }
Oct 2 05:05:13 linux dhcpd: No subnet declaration for eth2 (192.168.2.1). Oct 2 05:05:13 linux dhcpd: ** Ignoring requests on eth2. If this is not what Oct 2 05:05:13 linux dhcpd: you want, please write a subnet declaration Oct 2 05:05:13 linux dhcpd: in your dhcpd.conf file for the network segment Oct 2 05:05:13 linux dhcpd: to which interface eth2 is attached. ** Oct 2 05:05:13 linux dhcpd: Oct 2 05:05:13 linux dhcpd: Sending on Socket/fallback/fallback-net
Und das gleiche gilt für dieses Interface. ...
Wie binde ich an die anderen beiden Netze einen anderen Adressrahmen? einfach nur { option domain-name "example.netz"; option domain-name-servers 192.168.0.1;
option routers 192.168.0.1; range 192.168.0.40 192.168.0.70; } kopieren und die 0 durch z.B. 1 dann 2 ersetzen? Wie oben schon beschrieben, brauchst du für jedes Subnetz eine eigene Subnetz-Deklaration, aber ansonsten stimmt es schon.
Es gibt bei SuSE noch eine Datei /etc/sysconfig/dhcpd, in der der Eintrag DHCPD_INTERFACE="" festlegt, auf welchen Interfaces der Dienst lauscht. Hier sollten dann deine Interfaces eingetragen sein. HTH, Anke -- Think before you ...