Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
dhcpd in unknown state
« previous
next »
Print
Pages: [
1
]
Author
Topic: dhcpd in unknown state (Read 1373 times)
clarknova
Full Member
Posts: 101
Karma: 6
dhcpd in unknown state
«
on:
January 06, 2022, 08:20:12 pm »
OPNsense 21.7.4-amd64
The dashboard shows that the DHCP service is not running, but when I click the Start button it still shows stopped and the dhcpd log shows the error "Can't bind to dhcp address: Address already in use".
In the shell I see:
Code:
[Select]
rtr01:~ # sockstat -l4|grep 67
dhcpd dhcpd 27385 24 udp4 *:67 *:*
Clients are getting dhcp leases, however at least one client is not getting the address that is reserved for it. I don't know if the reservation was possibly created since the service was last started.
Is there a way to force the service to restart in the shell? Any other suggestions short of rebooting OPNsense?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: dhcpd in unknown state
«
Reply #1 on:
January 07, 2022, 12:52:43 pm »
Probably a stale PID file. it has been known to happen and if I recall correctly it was OpenBSD devs who said they don't like PID files because of this but I haven't heard of a better solution.
You can issue this to fix it:
# killall dhcpd
# pluginctl dhcp
Cheers,
Franco
Logged
clarknova
Full Member
Posts: 101
Karma: 6
Re: dhcpd in unknown state
«
Reply #2 on:
January 07, 2022, 05:36:15 pm »
That worked. Thanks.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
dhcpd in unknown state