I am trying to change the IP address on a RUT240 via JSON-RPC to 192.168.0.1 as it is brokering between two devices with that IP range and neither of them can have their IP changed. The problem is that when I change the IP of the router, I can't access again through JSON-RPC, I have tried to restart the network service and even reboot the router, but without any success, when getting a session ID in the HTTP POST for a new connection on the new IP, it just waits until the timeout finishes. However, if I log into the GUI via the new IP, I do have access, in fact, devices can ping the router so there is connectivity.
After all, JSON-RPC sends commands through the CLI console, so I'll write down the commands I'm using:
- uci set network.lan.ipaddr = 192.168.0.1
- /etc/init.d/network restart
- uci commit
Do I have to wait longer? Is there any command I am missing? I would appreciate any advice or help.