I know how I can change the parameters such as start and stop addresses, number of devices, etc. but as far as I can tell there is no option in the config to enable or disable it. The only way I can at the moment is from the web client.
Anyone know how I could do it from the command line?
when dhcp is off (for example on lan), then in /etc/config/dhcp
" option ignore ‘1’ " is set. If you delete this string, dhcp will be on
config dhcp ‘lan’
option ignore ‘1’ <-delete it
Hi,
Yes it is possible to enable or disable DHCP server feature in LAN port, as mentioned in the previous comment, you could simply delete
option ignore ‘1’ line in file /etc/config/dhcp and restart the DHCP process.
Another option is using UCI command.
for example, if you want to enable the DHCP server feature, the steps are:
- root@RUTX08:~# uci del dhcp.lan.ignore
- root@RUTX08:~# uci commit
- root@RUTX08:~# /etc/init.d/dnsmasq restart
for disabling the DHCP server
- root@RUTX08:~# uci set dhcp.lan.ignore=1
- root@RUTX08:~# uci commit
- root@RUTX08:~# /etc/init.d/dnsmasq restart
to check the configuration of the DHCP server you could enter
root@RUTX08:~# uci show dhcp
For further details, you could refer to this page UCI command usage - Teltonika Networks Wiki.
Thanks and regards.