Mam taki problem z właściwie bardzo prostą usługą jaką jest serwer dhcp.
instalowałem dhcp jako
Kod: Zaznacz cały
apt install isc-dhcp-server
/etc/default/isc-dhcp-server
Kod: Zaznacz cały
# 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="10.10.0.1"
#INTERFACESv6=""
Kod: Zaznacz cały
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.1 netmask 255.255.255.128 broadcast 10.10.0.127
inet6 fe80::dea6:32ff:fe12:a40a prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:12:a4:0a txqueuelen 1000 (Ethernet)
RX packets 224303 bytes 24096749 (22.9 MiB)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 392102 bytes 477556618 (455.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 88 bytes 7498 (7.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 88 bytes 7498 (7.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.102 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::6c2e:9758:e841:ea2e prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:12:a4:0b txqueuelen 1000 (Ethernet)
RX packets 393949 bytes 472644074 (450.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 225066 bytes 29569818 (28.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
przy próbie startu dhcp (systemctl isc-dhcp-server start) pojawia się błąd:
Jun 19 09:41:43 CORE systemd[1]: Starting LSB: DHCP server...
Jun 19 09:41:43 CORE isc-dhcp-server[2388]: Launching IPv4 server only.
Jun 19 09:41:43 CORE dhcpd[2394]: Internet Systems Consortium DHCP Server 4.4.1
Jun 19 09:41:43 CORE dhcpd[2394]: Copyright 2004-2018 Internet Systems Consortium.
Jun 19 09:41:43 CORE dhcpd[2394]: All rights reserved.
Jun 19 09:41:43 CORE dhcpd[2394]: For info, please visit https://www.isc.org/software/dhcp/
Jun 19 09:41:43 CORE isc-dhcp-server[2388]: Starting ISC DHCPv4 server: dhcpddhcpd service already running (pid file /var/run/dhcpd.p
Jun 19 09:41:43 CORE systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE
Jun 19 09:41:43 CORE systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Jun 19 09:41:43 CORE systemd[1]: Failed to start LSB: DHCP server.
---
mam takie pytanie - od czego ja powinienem zacząć poszukiwania ? Pytanie gdzie on loguje błędy z serwera dhcp ?