Job for isc-dhcp-server.service failed interface錯誤
阿新 • • 發佈:2019-01-09
為樹莓派配置dhcp伺服器(isc-dhcp-server),啟動服務時出現:
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details.
執行
# systemctl status isc-dhcp-server.service
得到
● isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server)
Active: failed (Result: exit-code) since Sun 2017-09-03 16:47:49 CST; 2min 18s ago
Process: 1145 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILU)
Sep 03 16:47:47 NanoPi3 dhcpd[1152]: to which interface
usb0
Sep 03 16:47:47 NanoPi3 dhcpd[1152]:
Sep 03 16:47:47 NanoPi3 dhcpd[1152]:
Sep 03 16:47:47 NanoPi3 dhcpd[1152]: Not configured to listen on any interfaces!
Sep 03 16:47:47 NanoPi3 dhcpd[1152]:
Sep 03 16:47:49 NanoPi3 isc-dhcp-server[1145]: Starting ISC DHCP server: dhc...!
Sep 03 16:47:49 NanoPi3 isc-dhcp-server[1145]: failed!
Sep 03 16:47:49 NanoPi3 systemd[1]: isc-dhcp-server.service: control proces...=1
Sep 03 16:47:49 NanoPi3 systemd[1]: Failed to start LSB: DHCP server.
Sep 03 16:47:49 NanoPi3 systemd[1]: Unit isc-dhcp-server.service entered fa...e.
Hint: Some lines were ellipsized, use -l to show in full.
很明顯,interface裝置錯了,被設定為了usb0
解決:
# vi /etc/default/isc-dhcp-server
修改預設的裝置(eth0, wlan0 ....)