Hallo,
ich möchte einen Raspbian Pi 2 als PXE-Server konfigurieren. Da ich als DHCP-Server eine Fritzbox 7590 verwende, habe ich vor DNSMASQ als Proxy zu benutzen. In verschiedenen Foren habe ich mich soweit so gut in dieses Thema eingelesen. Zunächst habe ich DNSMASQ installiert und die dnsmasq.conf editiert. Aber wohl ohne wirklichen Erfolg.
Denn sobald ich DNSMASQ starte erhalte ich die folgende Fehlermeldung. Aus welchem Grund auch immer?
Spoiler anzeigen
[....] Restarting dnsmasq (via systemctl): dnsmasq.serviceJob for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
failed!
systemctl status dnsmasq.service gibt folgendes aus:
Spoiler anzeigen
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Thu 2021-04-08 14:48:46 BST; 44s ago
Process: 1468 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUC
Process: 1469 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=
Apr 08 14:48:46 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP an
Apr 08 14:48:46 raspberrypi dnsmasq[1468]: dnsmasq: syntax check OK.
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: dnsmasq: TFTP directory /var/tftp ina
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: TFTP directory /var/tftp inaccessible
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: FAILED to start up
Apr 08 14:48:46 raspberrypi systemd[1]: dnsmasq.service: Control process exited,
Apr 08 14:48:46 raspberrypi systemd[1]: dnsmasq.service: Failed with result 'exi
Apr 08 14:48:46 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight
log file: ystemctl status dnsmasq.service...skipping...
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-04-08 14:48:46 BST; 44s ago
Process: 1468 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Process: 1469 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=3)
Apr 08 14:48:46 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Apr 08 14:48:46 raspberrypi dnsmasq[1468]: dnsmasq: syntax check OK.
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: dnsmasq: TFTP directory /var/tftp inaccessible: No such file or directory
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: TFTP directory /var/tftp inaccessible: No such file or directory
Apr 08 14:48:46 raspberrypi dnsmasq[1469]: FAILED to start up
Apr 08 14:48:46 raspberrypi systemd[1]: dnsmasq.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Apr 08 14:48:46 raspberrypi systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Apr 08 14:48:46 raspberrypi systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Hier auch meine dnsmasq.conf - Datei:
Spoiler anzeigen
resolv-file=/etc/resolv.conf.dnsmasq
domain-needed
bogus-priv
# statt 192.168.178.0 euer eigenes Netzwerk
dhcp-range=192.168.178.0,proxy
# statt 192.168.178.5 die Adresse eures TFTP Server, oder wenn der PI auch tftp$
# macht dann die vom PI
dhcp-boot=pxelinux.0,192.168.178.x,192.168.178.0
# bei pxelinux keine .0 anhängen, das macht der dnsmasq selber
pxe-service=x86PC,"Netzwerk Boot",pxelinux
Ich habe keine Ahnung. Was habe ich falsch konfiguriert? Ich bitte um Euere Hilfe.
Im Voraus schon einmal vielen Dank!