I've seen similar questions on here but I'm still having issues setting up the DHCP server. I am trying to connect directly via ethernet to a Raspberry Pi to SSH into from my laptop running the WSL. I have the Pi configured for the local ip address 10.0.0.45 which works on my home network. I tried to set it up on my laptop to act as a DHCP server so I can SSH in when I'm not on my home network but I'm getting an error.
Below is my dhcpd.conf file:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.1;
option routers 10.0.0.1;
option domain-name-servers 8.8.8.8;
option domain-name "mydomain.example";
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.40 10.0.0.50;
}
When I try to run it I get
root@PLT:~# sudo service isc-dhcp-server start
Launching both IPv4 and IPv6 servers (please configure INTERFACES in /etc/default/isc-dhcp-server if you only want one or the other).
* Starting ISC DHCPv4 server dhcpd * check syslog for diagnostics.
[fail]
I used this guide from the ubuntu forms to help set it up. I suspect it's something wrong with my conf file. I'm also not sure how to check syslog for diagnostics.
10.0.0.45
is a non-routable IP address, and packets from that address won't get off the LAN; The DHCP protocol itself is non-routable. TheDHCPDISCOVER
message won't appear on the internet. – waltinator Apr 13 '22 at 23:20