Hi All,
Having an issue with a little AR150 from gl.inet and using a USB huawei modem with it. The modem is a E5786-62a.
Modeswitch sucessfully runs against it and it presents a wwan0 interface, but it ends up with two issues, the first is that dhcp fails. Doing a bit of digging, its running this command, which is failing:
root@OpenWrt:/lib/netifd/proto# /bin/sh ./dhcp.sh dhcp teardown 4G_LAN {"proto":"dhcp","ifname":"wwan0","clientid":"root"} wwan0
Failed to parse message data
Couldn't quite figure out what is failing there in that script, but running udhcpc on the interface worked fine:
root@OpenWrt:~# udhcpc -i wwan0
udhcpc: started, v1.28.4
udhcpc: sending discover
udhcpc: read error: Network is down, reopening socket
udhcpc: sending discover
udhcpc: sending select for 192.168.1.101
udhcpc: lease of 192.168.1.101 obtained, lease time 86400
udhcpc: ifconfig wwan0 192.168.1.101 netmask 255.255.255.0 broadcast +
udhcpc: setting default routers: 192.168.1.1
Except that i cant create any routes to it. I get no error messages anywhere i can find when trying to do this but no route appears in the table (tried to add it via its ip address and via its device name), nothing is sent on syslog and nothing in dmesg:
root@OpenWrt:/lib/netifd/proto# ip route add 0.0.0.0/0 via 192.168.1.1
root@OpenWrt:/lib/netifd/proto# ip route
10.0.0.0/24 dev eth0 scope link src 10.0.0.170
192.168.1.0/24 dev wwan0 scope link src 192.168.1.101
192.168.46.0/24 dev br-lan scope link src 192.168.46.1
root@OpenWrt:~# ip route add default dev wwan0
root@OpenWrt:~# ip route
192.168.1.0/24 dev wwan0 scope link src 192.168.1.101
192.168.46.0/24 dev br-lan scope link src 192.168.46.1
If i ping 192.168.1.1 (the modems address), it responds.
I've tried with 17.01.6, 18.06.02 and the latest snapshot, all three do exactly the same thing.
Running on a generic linux ubuntu machine, it works ok. Anyone got any ideas why I might be getting those two issues (the second one is something I cant figure out a way around)?