23.07.2019, 11:04
You can change network configuration like this, reboot is required afterwards:
Other possible configuration values apart from ipaddr are gateway, dns, netmask.
This is still both a security and reliability issue. If client configures any parameters incorrectly then the device won't be reachable at all. I don't see how changing IP addresses improves security.
Code:
require('uci')
uci.set('network', 'lan', 'ipaddr', '192.168.1.2')
uci.commmit('network')
Other possible configuration values apart from ipaddr are gateway, dns, netmask.
This is still both a security and reliability issue. If client configures any parameters incorrectly then the device won't be reachable at all. I don't see how changing IP addresses improves security.