How to enable/disable dhcp from command line

Can anyone tell me how to tell the status of the dhcp server in OpenWrt from the command line? Where is this information held?

pidof dnsmasq
cat /var/etc/dnsmasq.conf.*
cat /var/dhcp.leases

1 Like

/etc/init.d/dnsmasq status

???

You also asked about enable and disable in the title but didn’t include it in your mesage:

/etc/init.d/dnsmasq enable
/etc/init.d/dnsmasq disable

1 Like

service dnsmasq status

2 Likes