Why does the wwan device disable and enable it, causing the gateway to be missing?
And the wwan interface is disabled and then enabled to repair the gateway.
BusyBox v1.28.4 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 18.06.5, r7897-9d401013fc
-----------------------------------------------------
root@openwrt_domywifi:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.50.1 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.50.0 * 255.255.255.0 U 0 0 0 wlan0
root@openwrt_domywifi:~# ifconfig wlan0 down && ifconfig wlan0 up
root@openwrt_domywifi:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.50.0 * 255.255.255.0 U 0 0 0 wlan0
root@openwrt_domywifi:~# ifdown wwan && ifup wwan
root@openwrt_domywifi:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.50.1 0.0.0.0 UG 0 0 0 wlan0
192.168.2.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.50.0 * 255.255.255.0 U 0 0 0 wlan0
root@openwrt_domywifi:~#