Hallo Leute
Ich habe folgenden Problem:
Ich habe mir mit isc-dhcp einen DHCP-Server eingerichtet.
System: Raspi3, Raspbian GNU/Linux 9 \n \l (laut cat /etc/issue).. Ich hätte es Raspian Stretch lite genannt..
Wenn ich aber den RasPi reboote, bringt der dhcp-server einen Fehler und läuft nicht an...
wenn ich den service dann aber restarte, läuft er ohne Probleme...
Hier mal meine Syslog mit grep auf dhcpd und isc:
Jul 26 18:05:04 PiRouter_v2 systemd[1]: Mounting /boot...
Jul 26 18:05:04 PiRouter_v2 systemd[1]: Mounted /boot.
Jul 26 18:05:04 PiRouter_v2 cron[321]: (CRON) INFO (Running @reboot jobs)
Jul 26 18:05:11 PiRouter_v2 systemd[1]: Starting Hold until boot process finishes up...
Jul 26 18:05:11 PiRouter_v2 systemd[1]: Started Hold until boot process finishes up.
Jul 26 18:05:11 PiRouter_v2 isc-dhcp-server[622]: Launching IPv4 server only.
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: Wrote 0 deleted host decls to leases file.
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: Wrote 0 new dynamic host decls to leases file.
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: Wrote 2 leases to leases file.
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]:
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: No subnet declaration for eth0 (no IPv4 addresses).
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: ** Ignoring requests on eth0. If this is not what
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: you want, please write a subnet declaration
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: in your dhcpd.conf file for the network segment
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: to which interface eth0 is attached. **
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]:
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]:
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: Not configured to listen on any interfaces!
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]:
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: If you think you have received this message due to a bug rather
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: than a configuration issue please read the section on submitting
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: bugs on either our web page at www.isc.org or in the README file
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: before submitting a bug. These pages explain the proper
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: process and the information we find helpful for debugging..
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]:
Jul 26 18:05:12 PiRouter_v2 dhcpd[647]: exiting.
Jul 26 18:05:14 PiRouter_v2 isc-dhcp-server[622]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
Jul 26 18:05:14 PiRouter_v2 isc-dhcp-server[622]: failed!
Jul 26 18:05:14 PiRouter_v2 systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Jul 26 18:05:14 PiRouter_v2 systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Jul 26 18:05:14 PiRouter_v2 systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Jul 26 18:07:10 PiRouter_v2 isc-dhcp-server[752]: Launching IPv4 server only.
Jul 26 18:07:11 PiRouter_v2 dhcpd[764]: Wrote 0 deleted host decls to leases file.
Jul 26 18:07:11 PiRouter_v2 dhcpd[764]: Wrote 0 new dynamic host decls to leases file.
Jul 26 18:07:11 PiRouter_v2 dhcpd[764]: Wrote 2 leases to leases file.
Jul 26 18:07:11 PiRouter_v2 dhcpd[765]: Server starting service.
Jul 26 18:07:13 PiRouter_v2 isc-dhcp-server[752]: Starting ISC DHCPv4 server: dhcpd.
Alles anzeigen
konfig sollten ja alle passen, ansonsten würde der Server ja auch beim 2ten Anlauf nicht funktionieren oder?!?
Hier auch noch meine dhcpd.conf
option domain-name "gruber.wohnung";
option domain-name-servers 8.8.8.8;
option broadcast-address 192.168.240.255;
option routers 192.168.240.100;
default-lease-time 600;
max-lease-time 7200;
next-server 192.168.240.2;
filename "pxelinux.0";
subnet 192.168.240.0 netmask 255.255.255.0 {
authoritative ;
range dynamic-bootp 192.168.240.200 192.168.240.240;
interface eth0;
}
host MichaelNB_LAN {
hardware ethernet 4C:72:B9:3F:0B:D9;
fixed-address 192.168.240.20;
}
host MichaelNB_WLAN {
hardware ethernet 74:E5:43:00:07:0C;
fixed-address 192.168.240.30;
}
host KerstinNB_WLAN {
hardware ethernet 60:6C:66:54:1F:50;
fixed-address 192.168.240.31;
}
host Michael_OP5 {
hardware ethernet 94:65:2D:7B:11:F6;
fixed-address 192.168.240.36;
}
host AP_Wohnung {
hardware ethernet 70:8B:CD:E9:BE:6C;
fixed-address 192.168.240.3;
}
### Smart Home Geraete ###
host MAX_Cube {
hardware ethernet 00:1A:22:05:45:5B;
fixed-address 192.168.240.11;
}
host HarmonyHub {
hardware ethernet 00:04:20:E8:0E:37;
fixed-address 192.168.240.12;
}
host EchoDot {
hardware ethernet 40:B4:CD:4D:43:BE;
fixed-address 192.168.240.13;
}
Alles anzeigen
und noch die isc-dhcp-server:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0"
INTERFACESv6=""
Alles anzeigen
wäre super wenn mir jemand helfen könnte
Danke schonmal
LG
Mike