'cm data connect' command failing

When I execute the command I am getting::

root@swi-mdm9x15:~# cm data connect &
root@swi-mdm9x15:~# Setting up profile 1
Setting access point name … ok
Setting packet data protocol … ok
Setting Authentication … ok
Connecting … ok
/legato/systems/current/bin/cm: line 189: 192.168.10.1: not found
Checking if device is up … ok
Routing … failed
Thu Nov 16 12:12:59 UTC 2017 - /legato/systems/current/bin/cm: line 189: 192.168.10.1: not found

[1]+ Done(1) cm data connect

How can I resolve this ? Legato version: 17.06.0 & mangOH Green[wp8548] used for development.

Hi codegit001,
Can you try below and share the response?

/legato/systems/current/apps/tools/read-only/bin/cm data connect &
/legato/systems/current/apps/tools/read-only/bin/cm data info

Thx

Hi @codegit001,

there was quite a few fixes on that cm script after 17.06, could you try with a more recent version of Legato such as 17.09?

Thanks

Hi, the issue didnot repeat itself. But while we are here, can you help with getting access to
root@swi-mdm9x15:~# /proc/sys/kernel/modprobe ipt_MASQUERADE
sh: /proc/sys/kernel/modprobe: Permission denied

I am trying to set up a WiFi access point; and DHCP bridging has to be done separately; and this command is one of the steps. Any idea why I am not getting access even though I am root ?

Hi, the issue didnot repeat itself.

But while we are here, can you help with getting access to
root@swi-mdm9x15:~# /proc/sys/kernel/modprobe ipt_MASQUERADE
sh: /proc/sys/kernel/modprobe: Permission denied

I am trying to set up a WiFi access point; and DHCP bridging has to be done separately; and this command is one of the steps. Any idea why I am not getting access even though I am root ?

Try simply modprobe ipt_MASQUERADE, I think it’s a typo from modules/WiFi/doc/wifi_toolsTarget_wifi.dox

I updated the doc a little bit, cf legato-WiFi/wifi_toolsTarget_wifi.dox at master · legatoproject/legato-WiFi · GitHub

Is it working better for you?

Using modprobe alone works fine. Thank you.