[OpenWrt-Devel] "ubus call network.interface dump" doesnt report the ip of tun0 interface, despite being there. Bug?

Mathias Kresin dev at kresin.me
Wed Nov 16 07:27:26 EST 2016


2016-11-15 18:17 GMT+01:00 alberto fuentes <pajaro at gmail.com>:
> Should i open a bug?
>
> tun0 interface created and ip assigned by openvpn
>
> root at router:~# ifconfig tun0
> tun0      Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>           inet addr:10.19.3.33  P-t-P:10.19.3.1  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:7 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:492 (492.0 B)  TX bytes:412 (412.0 B)
>
> root at router:~# /etc/init.d/dropbear start
> interface tun0 has no physdev or physdev has no suitable ip
>
> root at router:~# ubus call network.interface dump
> [...]
>         {
>             "interface": "tun0",
>             "up": true,
>             "pending": false,
>             "available": true,
>             "autostart": true,
>             "dynamic": false,
>             "uptime": 20815,
>             "l3_device": "tun0",
>             "proto": "none",
>             "device": "tun0",
>             "metric": 0,
>             "delegation": true,
>             "ipv4-address": [
>
>             ],
>             "ipv6-address": [
>
>             ],
>             "ipv6-prefix": [
>
>             ],
>             "ipv6-prefix-assignment": [
>
>             ],
>             "route": [
>
>             ],
>             "dns-server": [
>
>             ],
>             "dns-search": [
>
>             ],
>             "inactive": {
>                 "ipv4-address": [
>
>                 ],
>                 "ipv6-address": [
>
>                 ],
>                 "route": [
>
>                 ],
>                 "dns-server": [
>
>                 ],
>                 "dns-search": [
>
>                 ]
>             },
>             "data": {
>
>             }
>         },
> [...]

Could be the root cause for the issue reported at
https://github.com/openwrt/luci/issues/845. Since it seams to have
worked back in the days, I would assume it's a bug.

If you decide to open an issue, please mention which OpenWrt
revision/release you are using!

Mathias
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list