I am unable to change the lan IPV4 on a Ubiquiti ER-X-SFP, running a fresh OpenWrt 24.10 installation.
I always end up with a brikked device. Using a serial connection and the firstboot command brings me back to a fresh installation.
Connected through 192.168.1.1 I tried the web interface, next try was editing the /etc/config/network file, using ssh and finaly i tried using ssh "uci set network.lan.ipaddr='192.168.99.1' "
One more option to try might be connecting through ipv6, while changing the configuration. However can't get ipv6 ssh running. (I am not an expert so)
Thanks for help, Andreas
Are you trying to reconnect using DHCP? The step you might be missing is also changing the DHCP server range, not just the interface address.
Try doing this "at once", i.e. not committing the changes in luci immediately but rather also making the DHCP server changes and then commit them all at once.
If that doesn't work you can also:
- Commit just the interface address change
- Then unplug the ethernet cable from your computer
- On your computer, set a static IP in the 99-subnet (e.g.
192.168.99.2
, with192.168.99.1
as router and255.255.255.0
as subnet mask) - Plug the cable back in
- Then try to connect to
192.168.99.1
.
With this method, if you're not fast enough in setting the static IP, luci might have already reverted the changes, so maybe you'll have to force commit.
Also, after you're done and have changed the DHCP range as well, don't forget to re-enable DHCP on your computer.