You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run ubus listen in backround
ubus -t 9999 listen &
uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=wwan
uci set network.wwan.defaultroute='0'
uci set network.wwan.pincode=****
uci set network.wwan.apn=****
uci commit && /etc/init.d/network restart
...
{ "ubus.object.add": {"id":107055350,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wwan_4"} }
...
As you see default route should not be written immediately. You see default route in inactive section in ubus. So now lets set the default route for this interface
uci set network.wwan.defaultroute='1'
uci commit && /etc/init.d/network reload
You see no ubus message as well no change of default route. Now lets use QMI proto directly
uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=qmi
uci set network.wwan.device=/dev/cdc-wdm0
uci set network.wwan.defaultroute='0'
uci set network.wwan.pincode=****
uci set network.wwan.apn=****
uci commit && /etc/init.d/network restart
...
{ "ubus.object.add": {"id":107055350,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wwan_4"} }
...
So now lets set the default route for this interface and you see ubus messages comming up as well default route is set
chmielewskiandreas:
LEDE_RELEASE="LEDE Reboot 17.01-SNAPSHOT r6469+17-c114383"
Configure steps as follows:
Run ubus listen in backround
ubus -t 9999 listen &
uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=wwan
uci set network.wwan.defaultroute='0'
uci set network.wwan.pincode=****
uci set network.wwan.apn=****
uci commit && /etc/init.d/network restart
...
{ "ubus.object.add": {"id":107055350,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wwan_4"} }
...
As you see default route should not be written immediately. You see default route in inactive section in ubus. So now lets set the default route for this interface
uci set network.wwan.defaultroute='1'
uci commit && /etc/init.d/network reload
You see no ubus message as well no change of default route. Now lets use QMI proto directly
uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=qmi
uci set network.wwan.device=/dev/cdc-wdm0
uci set network.wwan.defaultroute='0'
uci set network.wwan.pincode=****
uci set network.wwan.apn=****
uci commit && /etc/init.d/network restart
...
{ "ubus.object.add": {"id":107055350,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wwan_4"} }
...
So now lets set the default route for this interface and you see ubus messages comming up as well default route is set
uci set network.wwan.defaultroute='1'
uci commit && /etc/init.d/network reload
{ "network.interface": {"action":"ifdown","interface":"wwan"} }
{ "network.interface": {"action":"ifdown","interface":"wwan_4"} }
root@RED50:/lib# { "ubus.object.remove": {"id":399408035,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wan2"} }
{ "network.interface": {"action":"ifup","interface":"wwan"} }
{ "ubus.object.add": {"id":828745890,"path":"network.interface.wwan_4"} }
{ "network.interface": {"action":"ifup","interface":"wwan_4"} }
The text was updated successfully, but these errors were encountered: