Change LAN IP in LuCI (to an IP on a different subnet)

Issue: Can't change LAN IP in LuCI. After applying the changes, it fails and comes up with some dialogue box.

Root cause: This happens if the new IP is on a different subnet. It'is known and in fact deliberately designed to prevent the user from accidentally locking themselves out.

Solution: If you are confident that the new IP is correct, you have a few options:

uci set network.lan.ipaddr="192.168.2.1"
uci commit network
/etc/init.d/network restart
uci set network.lan.ipaddr="192.168.2.1/24"
uci commit network
/etc/init.d/network restart