Inconsistency in wirelessmodem wlm interface behavior (could be bug?)

Friends,

Something interesting and strange while bringing up 3G LTE interface, even though the interface is configred as wlm0, Vvyos brings it is as ppp0 and whereas wlm0 is displayed as inactive. Could it due to some bug? Please correct me if I am wrong.

Here is my configuration to enable wlm0 LTE interface and the airtel modem network

[size=xx-small]wirelessmodem wlm0 {[/size]
[size=xx-small] device ttyUSB4[/size]
[size=xx-small] network airtel[/size]
[size=xx-small] no-dns[/size]
[size=xx-small] }[/size]

[size=xx-small]‘’ AT[/size]
[size=xx-small]OK ATZ[/size]
[size=xx-small]OK ‘AT+CGDCONT=1,“IP”,“airtelgprs.com”,“”,0,0,0,0,0,0’[/size]
[size=xx-small]OK ‘ATD99**1#’[/size]
[size=xx-small]CONNECT ‘’[/size]

1). NetworkManager brought up the ppp0 interface and got an IP address from the provider. Confirmed from the console logs as well as Unix admin “ifconfig -a” command.
The issue is while executing operational command for “show interfaces”, Vyos doesn’t show neither ‘wlm0’ nor ‘ppp0’. Why?

[size=xx-small]ppp0 Link encap:Point-to-Point Protocol[/size]
[size=xx-small] inet addr:100.88.8.84 P-t-P:10.64.64.64 Mask:255.255.255.255[/size]
[size=xx-small] UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1[/size]
[size=xx-small] RX packets:10 errors:0 dropped:0 overruns:0 frame:0[/size]
[size=xx-small] TX packets:10 errors:0 dropped:0 overruns:0 carrier:0[/size]
[size=xx-small] collisions:0 txqueuelen:3[/size]
[size=xx-small] RX bytes:266 (266.0 B) TX bytes:265 (265.0 B)[/size]
[size=xx-small]-----------[/size]
[size=xx-small]vyos@vyos:~$ show interfaces[/size]
[size=xx-small]Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down[/size]
[size=xx-small]Interface IP Address S/L Description[/size]
[size=xx-small]--------- ---------- — -----------[/size]
[size=xx-small]eth0 - A/D[/size]
[size=xx-small]eth1 - u/D[/size]
[size=xx-small]eth2 - u/D[/size]
[size=xx-small]eth3 - u/D[/size]
[size=xx-small]eth4 - u/D[/size]
[size=xx-small]eth5 - u/D[/size]
[size=xx-small]lo 127.0.0.1/8 u/u[/size]
[size=xx-small] ::1/128[/size]

2). I went ahead, ran operation command “show ip route”, vyos added a route for wlm0 that is correct, but it is showing ‘wlm0’ as inactive that is not correct. Another issue is ppp0 interface route got added, it should be ‘wlm0’. Please correct me.

[size=xx-small]vyos@vyos:~$ show ip route[/size]
[size=xx-small]Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,[/size]
[size=xx-small] I - ISIS, B - BGP, > - selected route, * - FIB route[/size]
[size=xx-small]S 0.0.0.0/0 [10/0] is directly connected, wlm0 inactive[/size]
[size=xx-small]S 0.0.0.0/0 [1/0] via 10.20.2.1 inactive[/size]
[size=xx-small]C>* 10.64.64.64/32 is directly connected, ppp0[/size]
[size=xx-small]C>* 127.0.0.0/8 is directly connected, lo [/size]

  1. Further to it, I tried from unix admin added default route “route add default dev ppp0” to confirm the connection is active, by that I am able to ping via the ppp0 interface. So it seems connections got established but the naming is incorrect, it should be ‘wlm0’. Please correct me.

[size=xx-small]root@vyos:/home/vyos# route add default dev ppp0[/size]
[size=xx-small]root@vyos:/home/vyos# ping 8.8.8.8[/size]
[size=xx-small]PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.[/size]
[size=xx-small]64 bytes from 8.8.8.8: icmp_seq=1 ttl=47 time=629 ms[/size]
[size=xx-small]64 bytes from 8.8.8.8: icmp_seq=2 ttl=47 time=269 ms[/size]

My [color=#111111][size=small]vyos[/size][/color] version is

[size=xx-small]vyos@vyos:~$ show version[/size]
[size=xx-small]No hypervisor detected[/size]
[size=xx-small]Version: VyOS 999.201801111542[/size]
[size=xx-small]Built by: autobuild@vyos.net[/size]
[size=xx-small]Built on: Thu 11 Jan 2018 15:42 UTC[/size]
[size=xx-small]Build ID: d4cf560b-9641-472f-b7c4-83b039db0522[/size]

Could it be a bug?

Thanks,
Subbu

Hi @subbu,
I found it fixed on upstream debian ppp package: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458646
And I found some other issues for wirelessmodem, I’ll fix them on 1.2.0-rolling.
Thanks.

Hi Yuya Kusakabe,

I tried latest rolling build VyOS 1.2.0-rolling+201805280337. But the issue is there. should I upgrade PPP separately? Or could you please suggest anyworking build.
From the message logs, it shows the ppp version as 2.4.6 “May 28 20:15:36 HYD-SDC pppd[2272]: pppd 2.4.6 started by root, uid 0”

Note: I confirmed modem up/down/rename scripts are there in /opt/vyatta/etc/ppp.

Thanks in advance,
Subbu

This issue is fixed. I am planning to propose this Vyos forum, so that it can be reviewed and included in the Code.