Portable hotspot works correctly.
Leaving the router off for 10 minutes didn’t fix the issue.
Turning the router to 2g only also didn’t fix the issue.

It still looks like the DHCP request isn’t working. On my main router’s side, I see Beryl with a wrong old IP (left over from the mobile hotspot): 192.168.9.x.

In the logs, I still see the DHCP requests being sent:

Tue May 4 16:14:48 2021 user.info : [ 810] gl-sdk>> bIsSaved=0, ssid=not linksys, encryption=psk2, bssid=7x:Ax:Bx:5x:8x:Ax, wds=0, device=mt7615e2, identity=, channel=1
Tue May 4 16:14:48 2021 user.notice apcli: apclix0 down
Tue May 4 16:14:49 2021 daemon.notice netifd: wwan (3266): udhcpc: sending renew to 172.20.10.1
Tue May 4 16:14:49 2021 daemon.notice netifd: wwan (3266): udhcpc: received SIGTERM
Tue May 4 16:14:49 2021 daemon.notice netifd: Interface ‘wwan’ is now down
Tue May 4 16:14:49 2021 daemon.notice netifd: Interface ‘wwan’ is disabled
Tue May 4 16:14:49 2021 daemon.warn dnsmasq[3077]: no servers found in /tmp/resolv.conf.auto, will retry
Tue May 4 16:14:49 2021 daemon.notice netifd: Network device ‘apclix0’ link is down
Tue May 4 16:14:49 2021 daemon.notice netifd: Interface ‘wwan’ has link connectivity loss
Tue May 4 16:14:49 2021 daemon.notice netifd: Network device ‘apclix0’ link is up
Tue May 4 16:14:49 2021 daemon.notice netifd: Interface ‘wwan’ has link connectivity
Tue May 4 16:14:49 2021 user.info : [ 2960] gl-wifi-core>> bIsStaEnabled=1
Tue May 4 16:14:54 2021 daemon.notice netifd: Interface ‘wwan’ is enabled
Tue May 4 16:14:54 2021 daemon.notice netifd: Interface ‘wwan’ is setting up now
Tue May 4 16:14:55 2021 daemon.notice netifd: wwan (21547): udhcpc: started, v1.30.1
Tue May 4 16:14:55 2021 user.info : [ 817] gl-sdk>> wifi_join return=0, channel=-1
Tue May 4 16:14:55 2021 daemon.notice netifd: wwan (21547): udhcpc: sending discover
Tue May 4 16:14:55 2021 daemon.notice netifd: Network device ‘apclix0’ link is down
Tue May 4 16:14:55 2021 daemon.notice netifd: Interface ‘wwan’ has link connectivity loss
Tue May 4 16:14:55 2021 user.notice apcli: apclix0 down
Tue May 4 16:14:55 2021 daemon.notice netifd: wwan (21547): udhcpc: read error: Network is down, reopening socket
Tue May 4 16:14:55 2021 daemon.notice netifd: Network device ‘rax0’ link is down
Tue May 4 16:14:55 2021 daemon.notice netifd: wwan (21547): udhcpc: received SIGTERM
Tue May 4 16:14:55 2021 daemon.notice netifd: Interface ‘wwan’ is now down
Tue May 4 16:14:55 2021 daemon.notice netifd: Interface ‘wwan’ is disabled
Tue May 4 16:14:55 2021 daemon.notice netifd: Interface ‘wwan’ is enabled
Tue May 4 16:14:56 2021 daemon.notice netifd: Network device ‘rax0’ link is up
Tue May 4 16:14:56 2021 daemon.notice netifd: Network device ‘apclix0’ link is up
Tue May 4 16:14:56 2021 daemon.notice netifd: Interface ‘wwan’ has link connectivity
Tue May 4 16:14:56 2021 daemon.notice netifd: Interface ‘wwan’ is setting up now
Tue May 4 16:14:56 2021 daemon.notice netifd: wwan (21711): udhcpc: started, v1.30.1
Tue May 4 16:14:56 2021 daemon.notice netifd: wwan (21711): udhcpc: sending discover
Tue May 4 16:14:58 2021 daemon.info dnsmasq-dhcp[3077]: DHCPREQUEST(br-lan) 192.168.8.155 hh:hh:hh:hh:hh:hh
Tue May 4 16:14:58 2021 daemon.info dnsmasq-dhcp[3077]: DHCPACK(br-lan) 192.168.8.155 hh:hh:hh:hh:hh:hh my-machine
Tue May 4 16:14:59 2021 daemon.notice netifd: wwan (21711): udhcpc: sending discover

Manually renewing DHCP lease also doesn’t work:

root@GL-MT1300:~# udhcpc -i apclix0 -r 192.168.1.177
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: sending discover
^C

However, I seem to be able to manually fix things!

root@GL-MT1300:~# ifconfig apclix0 inet 192.168.1.177
root@GL-MT1300:~# route add default gw 192.168.1.1
root@GL-MT1300:~# cat /etc/resolv.conf | sed -e ‘s/127.0.0.1/192.168.1.1/’ > /tmp/resolv.conf
root@GL-MT1300:~# cp /tmp/resolv.conf /etc/resolv.conf
root@GL-MT1300:~# rm /tmp/resolv.conf

At this point, the router has internet connectivity:

root@GL-MT1300:~# nslookup gl-inet.com
Server: 192.168.1.1
Address: 192.168.1.1#53

Name: gl-inet.com
Address 1: 52.41.190.83
*** Can’t find gl-inet.com: No answer
root@GL-MT1300:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=59 time=44.836 ms
64 bytes from 1.1.1.1: seq=1 ttl=59 time=48.926 ms

And the web interface shows a connection:

But unfortunately, it’s not responding to DNS queries. And the internet connection seems to be intermittent:

root@GL-MT1300:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=31 ttl=59 time=40.221 ms
64 bytes from 1.1.1.1: seq=32 ttl=59 time=60.564 ms
64 bytes from 1.1.1.1: seq=33 ttl=59 time=40.665 ms
64 bytes from 1.1.1.1: seq=34 ttl=59 time=40.415 ms
64 bytes from 1.1.1.1: seq=35 ttl=59 time=42.782 ms
64 bytes from 1.1.1.1: seq=36 ttl=59 time=41.409 ms
64 bytes from 1.1.1.1: seq=37 ttl=59 time=43.688 ms
64 bytes from 1.1.1.1: seq=38 ttl=59 time=43.486 ms
64 bytes from 1.1.1.1: seq=39 ttl=59 time=42.409 ms
64 bytes from 1.1.1.1: seq=40 ttl=59 time=41.225 ms
64 bytes from 1.1.1.1: seq=41 ttl=59 time=47.837 ms
^C
— 1.1.1.1 ping statistics —
42 packets transmitted, 11 packets received, 73% packet loss
round-trip min/avg/max = 40.221/44.063/60.564 ms

And a logread shows that the interface seems to be going up and down:

Tue May 4 16:49:52 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:49:53 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:51:13 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:51:13 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:52:33 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:52:33 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:53:53 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:53:53 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:55:13 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:55:13 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:56:33 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:56:34 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:57:53 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:57:53 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 16:59:13 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 16:59:14 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 17:00:34 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 17:00:34 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)
Tue May 4 17:01:54 2021 user.info mwan3rtmon[2676]: Detect rtchange event.
Tue May 4 17:01:54 2021 user.notice firewall: Reloading firewall due to ifup of wwan (apclix0)

So my current state:

  • DHCP requests don’t seem to work
  • I can manually configure things to work, except for the Beryl’s DNS server
  • IP connectivity seems flakey; sometimes it works and sometimes it doesn’t. Probably due to interface going up and down.
  • Beryl is about 10 feet from main router with no obstacles in between; signal quality should be perfect.

Where/how can I capture additional logs? What do I try next?