Troubleshooting QMI Cellular device only working after restart

Hello!

I observe the following issues of which I think are somewhat related to my QMI Cellular device wwan0 / interface wan1 and the DNS settings:

  1. After booting the router I can reach any webpage for ca. 1 minute, afterwards every request times out
  2. I open the interfaces settings for wan1 and set "Use DNS servers advertised by peer" to "0" and enter some known DNS servers into "Use custom DNS servers". After applying this setting I have connectivity again. Even though I'm saving these settings they do not get persisted after a reboot (?!)
  3. After a couple of hours (ca. 10 hours) HTTP requests do not work, a simple click on "restart" of the wan1 interface makes it work again

The modem seems to be working fine at any point.

I'm sorry if I can't provide more information at this stage, it is very hard for me to understand where the problem lies, especially as there is no error message or significant logging message I can observe.

I'm running the following setup:

Modem              Quectel RM502Q-AE (4G/5G)
Architecture	   MediaTek MT7621 ver:1 eco:3
Target Platform    ramips/mt7621
Firmware Version   GoldenOrb_2023-08-02 ( OpenWrt 22.03-SNAPSHOT ) 

.. and here are some more informations which might hopefully be useful:

$ uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.packet_steering='1'
network.globals.ula_prefix='fd06:9ac2:c57f::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan1' 'lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ifname=' tap0 tap-server'
network.lan.dns='1.1.1.1' '8.8.8.8' '1.0.0.1'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan.metric='1'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.VPN=interface
network.VPN.proto='none'
network.VPN.auto='0'
network.VPN.device='tun0'
network.VPNS=interface
network.VPNS.proto='none'
network.VPNS.auto='0'
network.VPNS.device='tun-server'
network.TAP=interface
network.TAP.proto='none'
network.TAP.auto='1'
network.TAP.device='tap0'
network.TAPS=interface
network.TAPS.proto='none'
network.TAPS.auto='0'
network.TAPS.device='tap-server'
network.wwan2=interface
network.wwan2.proto='dhcp'
network.wwan2.metric='2'
network.wwan26=interface
network.wwan26.proto='dhcpv6'
network.wwan26.metric='2'
network.wwan5=interface
network.wwan5.proto='dhcp'
network.wwan5.metric='2'
network.wwan56=interface
network.wwan56.proto='dhcpv6'
network.wwan56.metric='2'
network.wan2=interface
network.wan2.proto='dhcp'
network.wan2.metric='20'
network.wan2.device='wan2'
network.wg0=interface
network.wg0.proto='wireguard'
network.wg0.auto='0'
network.wg0.addresses=''
network.wg1=interface
network.wg1.proto='wireguard'
network.wg1.auto='0'
network.wg1.addresses=''
network.wan1=interface
network.wan1.proto='qmi'
network.wan1.device='/dev/cdc-wdm0'
network.wan1.metric='10'
network.wan1.currmodem='1'
network.wan1.auth='none'
network.wan1.pdptype='ipv4v6'
network.wan1.peerdns='0'
network.wan1.dns='1.1.1.1' '1.0.0.1'
$ cat /etc/config/dhcp
config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '0'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option localservice '1'
	option ednspacket_max '1232'
	option dnsforwardmax '10000'
	option cachesize '10000'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv4 'server'
	option dhcpv6 'server'
	option ra 'server'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'
	option force '1'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

Thank you for any pointers to help troubleshooting this issue! I'm happy to supply any config information or logs if needed :slight_smile:

ask GoldenOrb, it's their openwrt derivative.

1 Like

I found this interesting conversation here: How to restart wwan0 on command line

great, except there's no guarantee it'll work for GO.