I made a wrong config in web gui and since then I dont know the IP address of the router or maybe its not listing to any.
I have managed to get ssh login into failsafe mode and tried to set ethernet static ip address 192.168.5.10 but when i reboot the devise it does not listen to this IP ping.
I failsave yo can not modify the config in flash because the full system is running from ram with default config.
You have to mount root from flash, edit the config and then reboot.
If i'm right there will be shown some shell commands for recovery or reset if you login in over ssh in failsave mode.
I have called mount_root. The config/network dump is correct.
Here I have given the same dump of /etc/config/network and also /etc/config/fstab
My devise uses extroot with an external 16G USD Stick.
Seems mount_root does only mount your lower rootfs (internal flash) from your overlayfs and not your extroot fs as upper overlayfs.
Mount your overlayfs manually at /mnt and modify your config optios from there.
For example:
mount $(findfs UUID=dbe17f48-8ed7-474c-9594-7005a63cb2e6) /mnt
Sorry for confusion... Your read-only lower rootfs is always the same from flash and the upper rootfs is also on your flash by default. With extroot you move your upper rootfs to a usb stick or something else, your old upper from flash will stay untuched after booting with extroot and a boot without your usb stick or mount_root uses your old upper rootfs from internal flash.
Try to find your overlay partition manually in /dev/sdX[1-9], mount it without findfs and fix your config...
Since you made that in the GUI, chances are little that you did something that's drastically problematic. My best guess would be that you either set the IP to some other IP or you set it to DHCP client. I would suggest you follow @vgaetera advice and see if the PC gets an IP from the router, check for the default gateway IP and that should be the router's IP.
If otherwise the PC gets no IP form the router then you likely have set the LAN IP on the router to DHCP client. Easiest solution in this case is to connect both the router and the PC to another router, access you OpenWrt router and set its LAN IP back to static.
I think if you boot the device with the external drive unplugged you end up running the config from the internal overlay (192.168.5.1) and also have the filesystem drivers loaded. You can then plug in the drive and manually mount it and make changes to the external overlay configuration which is broken.
An alternative would be to mount the drive on another machine and locate the files in drive_root/overlay/upper/etc/config.