Since upgrading from OpenWrt 22.03.5 to 23.05.2 I have the following problem:
after restarting my Router (Xiaomi Mi Router 4A Gigabit Edition) I can't reach my router with the IP address 192.168.1.1 (pinging also doesn't work). When I run the command "ipconfig" on my PC the IPV4 address shown is my external IP from the MODEM (my network providers Router in bridge mode).
After some (random) restarts the router's IP is reachable again and the "ipconfig" command shows a logical IPV4 address (inside my 192.168.1.x network).
Because I am not very familiar with computer networks this could also be a wrong setup from myself (settings are attached as screenshot).
Here you can see a screenshot of the right ipconfig output on the top and the wrong outputs after a restart at the bottom and my OpenWrt network settings:
I tried to restart the router only (while the modem is still powered on) and then the problem still occurs. So this case should already be tested?
Which wireless device do you mean?
I think the censored ending of the MAC address is different, but I can't look that up, because I can't reach LUCI because of the error described...
There shouldn't be a bridge, and there shouldn't be a WiFi attached to it.
Are you connected via WiFi to your router or via cable? If it's via cable, then it could be a WAN port link, as suggested by @frollic. If you're connected via WiFi, then your configuration is wrong.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
This is wrong (two times). It has to be only in lan, otherwise you're getting these unexpected results. Afterwards, you can remove the br-wan bridges and use the wan port directly.
Ok, I should definitely deepen my network knowledge...
In "/etc/config/wireless" I set both option network 'wan lan' to option network 'wan' and in "/etc/config/network" I removed all "br-xx" devices.
Now I can't reach my router and have no Internet access any more...
What went wrong?
If you removed all br-xx interfaces, including br-lan, you just removed your LAN port and thus lost access to your device. If WiFi doesn't work (which I assume), your easiest option, if you don't have a backup, is to reset it to defaults and configure it from scratch.
When doing so, remember that the WiFi interfaces need to be in the lan zone only!
Ok you definitely wrote "remove the br-wan devices", that was very dumb removing all of them...
Yes nothing works anymore... I have a OpenWrt ".tar.gz" backup file, how can I resore the backup without SSH access?
You need to put your router into failsafe mode by pressing any button (e.g. the reset button) when it starts blinking fast during boot. When you are successful, it blinks even faster - now you are in failsafe mode.
You can now connect via Ethernet cable to your router at 192.168.1.1 using SSH. Edit your /etc/config/network file to add back the br-lan interface based on either your backup file or the one you posted above.
However, if you've never done this, it might be easier to restore defaults and upload your backup to restore its settings.