I'm trying to set up a Debian 10 DHCP server. I've been trying to follow the instructions on a variety of pages. But all these setups assume/seem to require that there be a router that connects to the internet. I don't want that. There is a small network supporting some equipment that is all connected by ethernet and all have static IPs. I'm trying to add an ability to access the equipment wirelessly. So I have this little linux box (an EeePC actually) running Debian. And I have a Cisco WAP. All on the wired network. But logging into the WAP from a phone requiring a static IP is too difficult for the need. So I want the EeePC to provide DHCP service with a safe range of IPs.
Every configuration I try fails, mostly complaining about not having an internet router (I think).
I've tried variations on most of the instructions I have found, so I suspect my configuration files are a mishmash. I'm including what I hope might help understanding my situation.
The mini-network I want to be able to join by wifi is this:
192.168.10.10 0C-4D-E9-C0-E1-1A EFFORTSTMAC-2
192.163.10.29 D3-67-D9-C3-5E-24 Cisco WAP
192.163.10.50 7C-2E-0D-09-CD-51 Blackmagic
192.163.10.55 00-22-15-F2-BC-45 EeePC HUB
192.168.10.240 7C-2E-0D-09-93-F4 ATEM
The EeePC is running Debian 10, a couple of programs from here (
https://wifi-tally.github.io/) [which seem to be working fine], and isc-dhcp-server (which does not seem to be working fine).
---------------------
My dhcpd.conf file looks like this:
# dhcpd.conf
ddns-update-style none;
authoritative;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.200;
option domain-name-servers 192.168.10.55;
option domain-name "localdomain";
option routers 92.168.10.55;
option broadcast-address 192.168.10.255;
default-lease-time 600;
max-lease-time 7200;
}
-----------------------------
my interfaces file looks like this:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp1s0
iface enp1s0 inet static
address 192.168.10.55
netmask 255.255.255.0
# This is an autoconfigured IPv6 interface
iface enp1s0 inet6 auto
-----------------------------------
When I do a dhcp server start, the systemctl status report looks like this:
root@debian:/home/user# systemctl status isc-dhcp-server.service
? isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
Active: failed (Result: exit-code) since Fri 2021-05-21 06:57:10 EDT; 1min 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 3711 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
May 21 06:57:08 debian dhcpd[3724]: bugs on either our web page at
www.isc.org or in the README file
May 21 06:57:08 debian dhcpd[3724]: before submitting a bug. These pages explain the proper
May 21 06:57:08 debian dhcpd[3724]: process and the information we find helpful for debugging.
May 21 06:57:08 debian dhcpd[3724]:
May 21 06:57:08 debian dhcpd[3724]: exiting.
May 21 06:57:10 debian isc-dhcp-server[3711]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnos
May 21 06:57:10 debian isc-dhcp-server[3711]: failed!
May 21 06:57:10 debian systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status
May 21 06:57:10 debian systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
May 21 06:57:10 debian systemd[1]: Failed to start LSB: DHCP server.
--------------------------------------
And the journalctl -xe report looks like this:
root@debian:/home/user# systemctl start isc-dhcp-server
Job for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
root@debian:/home/user# systemctl status isc-dhcp-server.service
? isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
Active: failed (Result: exit-code) since Fri 2021-05-21 11:01:12 EDT; 3min 31s ago
Docs: man:systemd-sysv-generator(8)
Process: 4821 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
May 21 11:01:10 debian dhcpd[4834]: bugs on either our web page at
www.isc.org or in the README file
May 21 11:01:10 debian dhcpd[4834]: before submitting a bug. These pages explain the proper
May 21 11:01:10 debian dhcpd[4834]: process and the information we find helpful for debugging.
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]: exiting.
May 21 11:01:12 debian isc-dhcp-server[4821]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnos
May 21 11:01:12 debian isc-dhcp-server[4821]: failed!
May 21 11:01:12 debian systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status
May 21 11:01:12 debian systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
May 21 11:01:12 debian systemd[1]: Failed to start LSB: DHCP server.
lines 1-16/16 (END)
--------------------------
-- Subject: A start job for unit isc-dhcp-server.service has begun execution
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- A start job for unit isc-dhcp-server.service has begun execution.
--
-- The job identifier is 3310.
May 21 11:01:10 debian isc-dhcp-server[4821]: Launching IPv4 server only.
May 21 11:01:10 debian dhcpd[4834]: Wrote 0 leases to leases file.
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]: No subnet declaration for enpls0 (no IPv4 addresses).
May 21 11:01:10 debian dhcpd[4834]: ** Ignoring requests on enpls0. If this is not what
May 21 11:01:10 debian dhcpd[4834]: you want, please write a subnet declaration
May 21 11:01:10 debian dhcpd[4834]: in your dhcpd.conf file for the network segment
May 21 11:01:10 debian dhcpd[4834]: to which interface enpls0 is attached. **
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]: Not configured to listen on any interfaces!
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]: If you think you have received this message due to a bug rather
May 21 11:01:10 debian dhcpd[4834]: than a configuration issue please read the section on submitting
May 21 11:01:10 debian dhcpd[4834]: bugs on either our web page at
www.isc.org or in the README file
May 21 11:01:10 debian dhcpd[4834]: before submitting a bug. These pages explain the proper
May 21 11:01:10 debian dhcpd[4834]: process and the information we find helpful for debugging.
May 21 11:01:10 debian dhcpd[4834]:
May 21 11:01:10 debian dhcpd[4834]: exiting.
May 21 11:01:12 debian isc-dhcp-server[4821]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnos
May 21 11:01:12 debian isc-dhcp-server[4821]: failed!
May 21 11:01:12 debian systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- An ExecStart= process belonging to unit isc-dhcp-server.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
May 21 11:01:12 debian systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- The unit isc-dhcp-server.service has entered the 'failed' state with result 'exit-code'.
May 21 11:01:12 debian systemd[1]: Failed to start LSB: DHCP server.
-- Subject: A start job for unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support:
https://www.debian.org/support
--
-- A start job for unit isc-dhcp-server.service has finished with a failure.
--
-- The job identifier is 3310 and the job result is failed.
lines 1413-1440/1440 (END)
-------------------------
Finally, a wild card. While thrashing around with all this I read the configuration file for Connman. It mentions that if I enabled and then started tethering for ethernet, it would start a DHCP server. Would that have solved my problem all along?
Thanks for any help.
-----Paul-----