Trouble changing lan IP address on 25.12.1

Hello, I have the latest version 25.12.1 and I can't change the LAN IP. I've tried everything. The older version works.

What are you changing it to ?

the same IP is from the internet provider

Try to answer the question next time you post.

2 Likes

Luci should be banned from the internet, tried, and exiled to the shadow realm for that one. OP literally says “I can’t change the LAN IP”, you hit him with the classic ‘What are you changing it to?’, he answers ‘the same IP my ISP gave me’, and instead of helping you just drop the ‘try answering next time’ mic… while poor LuCi is in the background timing out like a drama queen the second the IP flips and rage-reverting everything.

Absolute cinema. I’m deceased. :joy:

( Having Sunday evening fun :wink: )

But why would you want to use the same IP address on your LAN as on your WAN (provided by your ISP)? In that case, it makes no sense to have a router...

2 Likes

the lack of response makes me think OP hadn't "tried everything", after all.

I don't know what to write. The question was that it's not possible to change the IP address, but it works on older versions.

why should we waste our time on you, when you can't even answer a simple question ?

1 Like
  • What’s the IP address you’re trying to use?
  • Please qoute the error message stating that using this IP address is not possible.
  • Since it was not was not entirely obvious and given with a splash of sarcasm: Bluewavenet hinted
    1. Your router has an IP address
    2. Your computer has an IP address.
    3. Both adresses are within the samge range, according to subnetting.
    4. If you change your router to something “out of range” (describing a different IP range), your computer will no longer be able to communicate with the router.
    5. OpenWRT requires “confirmation after the new IP configuraiton has been applied” after chainging network setthings via LuCI Web UI.
    6. As of (4), your computer cannot give this confiruation,
    7. So OpenWRT should perform a rollback of your network configuration change
  • I second this idea.
5 Likes

Provide more details.

Without information, it seems you're experiencing the auto rollback because you never reconnect to the LuCI web GUI on the new IP address. But since you won't provide the IP, we can only guess.

Just FYI, the ISP shouldn't need to provide you an IP for LAN (that's the point of using a router), so your responses are lacking any useful information needed to assist you.

@WhiteShark Do you mean you are trying to change the address inside that box you highlighted in red in the picture? It's not editable, to change the address: in the box below enter your new IP eg 192.168.123.1/24 or whatever, then click the green "+" to add that entry.
Then click the red "x" next to the original box to delete that one. Then save.

2 Likes

Just gone back to 24 to check, and in that GUI the IPv4 box is editable, so its an easy mistake to make as it is different in 25!

1 Like

I set the WAN to, for example, 192.168.1.10 and then I want the LAN to be 192.168.2.1 and that doesn't work. If I click on the green plus and delete the top red one, I don't think I can get there at all (reset required), that doesn't solve the problem and there's no IPv4 netmask under that either.

AFAIK, you don't need it if you add the /24.

2 Likes

1993 has finally called. https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

1 Like

I confirm issue when i try to change router IP from 192.168.1.1/24 to 192.168.25.1/24 it fail and revert back but when i keep both and apply change it works and after reboot , reconnect luci with new IP then i can remove 192.168.1.1 from the list and save properly.

I also confirm that in previous version /24 is not needed.

This is likely expected behavior... you need to (quickly) get an address on the new subnet and reconnect to the router. Otherwise, it falls back to the old address to prevent lock-outs.

The solution for this (if you can't get your computer to switch to the new subnet quickly enough) is to use the "apply unchecked" option.

Yes, it makes sense based on what I described above -- the starting address remains the same so you don't have to quickly refresh DHCP/change address on your computer.

However, this could potentially result in other issues if you have two subnets defined (even if just temporarily) on the same network interface.

This is known and is a half-truth.

In 23.05 and earlier, OpenWrt used two distinct lines -- ippaddr and netmask -- to define the address/subnet.

24.10 added CIDR notation (as a one-liner) as an acceptable method to specify a network address/subnet, but it still used the 2 line option for the default config. This meant that changing the address of the default lan interface did not require also specifying the CIDR subnet size since there was an existing netmask line.

25.12 will accept both methods (2-line ipaddr + netmask and 1-line CIDR), but the default lan address (for a fresh install) uses CIDR notation. Therefore, there is no netmask line currently in the config. That means that if you want to change the IP address of the lan, you must use CIDR notation or you must add a netmask line (the former is the recommended approach and what is facilitated via LuCI).