Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure "isc-dhcp-server" starts successfully #20

Open
jcapona opened this issue Jul 14, 2021 · 0 comments
Open

Make sure "isc-dhcp-server" starts successfully #20

jcapona opened this issue Jul 14, 2021 · 0 comments

Comments

@jcapona
Copy link
Contributor

jcapona commented Jul 14, 2021

Sometimes isc-dhcp-server.service will report it started successfully, but going through the logs, it will report errors that need to be fixed. Otherwise, the dhcp server won't lease IPs.

pi@pi-top:~ $ systemctl status isc-dhcp-server
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
   Active: active (running) since Tue 2021-07-13 19:59:10 EDT; 2min 4s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 2 (limit: 3737)
   CGroup: /system.slice/isc-dhcp-server.service
           ├─ 798 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf ptusb0
           └─1026 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf ptusb0 wlan_ap0

Jul 13 19:59:07 pi-top dhcpd[1026]: 
Jul 13 19:59:07 pi-top dhcpd[1026]: No subnet declaration for wlan_ap0 (no IPv4 
Jul 13 19:59:07 pi-top dhcpd[1026]: ** Ignoring requests on wlan_ap0.  If this i
Jul 13 19:59:07 pi-top dhcpd[1026]:    you want, please write a subnet declarati
Jul 13 19:59:07 pi-top dhcpd[1026]:    in your dhcpd.conf file for the network s
Jul 13 19:59:07 pi-top dhcpd[1026]:    to which interface wlan_ap0 is attached. 
Jul 13 19:59:07 pi-top dhcpd[1026]: 
Jul 13 19:59:07 pi-top dhcpd[1026]: Server starting service.
Jul 13 19:59:10 pi-top isc-dhcp-server[989]: Starting ISC DHCPv4 server: dhcpd.
Jul 13 19:59:10 pi-top systemd[1]: Started LSB: DHCP server.

wifi-ap-sta needs to make sure that this service is actually started for it to work properly.

@jcapona jcapona changed the title Make sure hostapd starts successfully Make sure "isc-dhcp-server" starts successfully Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant