APIPA after installing Openwrt Snapshot - LTE5398-M904 Zyxel

After installing OpenWRT Snapshot (with qmi-utils and luci-proto-qmi) (it wasn't my first time)
and now I have APIPA 169.254.189.191 /I can ping it but SSH Connection refused.

Bricked? :frowning:

Have you tried pressing the reset button on the back of the router?

Yes, several times.
I change my MacBook IP to 192.168.1.2 / router: 192.168.1.1, Netmask: 255.255.255.0/
and now I can ping 192.168.1.1 but that's all :frowning:

Maybe something with cable or HUB..?

I installed Snapshot via WiFi

Have you tried accessing the router via ssh?

can you try scanning the router with nmap?

you should get something like this (at least you should see port 22 and 53 open):

nmap 192.168.1.1
PORT    STATE SERVICE
22/tcp  open  ssh
53/tcp  open  domain
80/tcp  open  http
443/tcp open  https

ps: obviously to exclude further problems, connect via a working and direct network cable.

ps: obviously when the reset button is pressed all the configurations will be lost and therefore no wifi will be active...

Were you installing OpenWrt for the first time, or upgrading from a previous snapshot version? If the latter, did you keep settings during the upgrade?

Is your computer directly connected via ethernet to your LTE5398-M904? Have you tried both ethernet ports on the Zyxel to see if the behavior is different?

1 Like

SSH 'connection refused'. There are none open ports

@psherman
it was my 4. of 5. time. Upgrading and yes with keeping settings. I tried both ports.

I will try later with computer with RJ45...

Keeping settings could potentially be a problem in certain circumstances.

How have you been trying, if not with a wired computer?

I have Macbook M1 with RJ45 Hub.

That should be fine.

Try failsafe mode:
https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset

2 Likes

I'm getting closer :))

in failsafe mode I tried sysupgrade -n /tmp/image.bin

but I think I missed something... because it doesn't work yet :))

root@(none):~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 6144 6144 0 100% /
tmpfs 512 0 512 0% /dev
tmpfs 124300 40 124260 0% /tmp
root@(none):~# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/ubi0_1 is not mounted
/dev/ubi0_1 will be erased on next mount
root@(none):~# mount_root
overlay filesystem has not been fully initialized yet
switching to ubifs overlay
root@(none):~# passwd
Changing password for root
New password:
Retype password:
passwd: password for root changed by root
root@(none):~# sysupgrade -n /tmp/wrt.bin
Thu Jan 1 00:08:45 UTC 1970 upgrade: Commencing upgrade. Closing all shell sessions.
root@(none):~#

[SSH] INFO: DISCONNECT

and still nothing :frowning:

if the problem is with the image.bin file or with the wrt.img file please create a new image (sysupgrade-image) with the packages you intend to add starting from:

https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=zyxel_lte5398-m904

checking if sha256sum is the same as the creation one

I recommend adding the following packages (if you find them useful):

at
htop
wget-ssl
sed
curl
picocom
coreutils-base64
diffutils
usbutils
procps-ng-watch
block-mount e2fsprogs fdisk kmod-fs-ext4 kmod-usb-storage-uas mount-utils
smartmontools
kmod-button-hotplug
openssh-client openssh-client-utils openssh-keygen
qmi-utils luci-proto-qmi
luci
luci-ssl
luci-app-uhttpd
luci-app-firewall
luci-app-attendedsysupgrade

right now by creating a new sysupgrade with the packages I provided you from this sha256sum:

80785a9a8dfe0fd3d18a0f879927ddc8d722947cdeba1e7cc56a445893f89b9e


if the problem concerns the fail-save process, please execute the following commands after logging in via ssh:

firstboot && reboot

as the guide to this step correctly says

https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset#soft_factory_reset

then wait for the router to restart and proceed to configure the router as you want...

1 Like

after reconfiguring the router I recommend you make a backup of your configurations (to save on your PC):

and if you used the list of packages that I suggested you can update directly from the graphical interface:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.