Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

Setting up a DHCP Server on Ubuntu WSL to connect to a Raspberry Pi

$
0
0

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 startLaunching 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.


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>