Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#625 - no default route written using proto=wwan #8005

Closed
openwrt-bot opened this issue Mar 13, 2017 · 0 comments
Closed

FS#625 - no default route written using proto=wwan #8005

openwrt-bot opened this issue Mar 13, 2017 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

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"} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant