<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Thanks Thomas !!!<br><br></div>Following algorithm "mostly"  works ::<br><br><br>##############################################################<br></div>a)<br></div>Check whether the required bearer already exists, via ::<br><br></div>               mmcli -m 0 --list-bearers<br></div>               mmcli -b /path/of/bearer/as/returned/by/above/command<br><br></div>If yes, then go to step c).<br><br></div>b)<br></div>               mmcli -m 0 --create-bearer="apn=<a href="http://airtelgprs.com">airtelgprs.com</a>"<br><br></div>c)<br></div>               mmcli -m 0 --simple-connect="apn=<a href="http://airtelgprs.com">airtelgprs.com</a>"<br><br></div>d)<br></div><div>               dhclient -r wwan0<br></div>               dhclient wwan0<br>##############################################################<br><br></div>In everything goes right, then telnet/ping work fine.<br><br></div>In the beginning, I said "mostly", because the last step (dhclient wwan0) hangs 8/10 times. Whenever this happens, the only remedy that I have found so far is rebooting the machine.<br><br><br></div><div>Is there a saner way to have the "dhclient wwan0" work fine every time?<br><br><br></div><div>Thanks and Regards,<br></div><div>Ajay<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 14, 2016 at 7:52 PM,  <span dir="ltr"><<a href="mailto:tschaefer@t-online.de" target="_blank">tschaefer@t-online.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Modemmanager doesn't make the ip-settings.<br>
This is normally done by networkmanager or by yourself.</p>
<p dir="ltr">See mmcli -b 0</p>
<p dir="ltr">The hint using ip instead of ifconfig was no joke!</p>
<p dir="ltr">Ifconfig doesn't list down interfaces.</p>
<p dir="ltr">Ip l does.</p>
<p dir="ltr">The simplest thing in  your case seems to me, is to starting dhclient/dhcpcd or something similar on your wwan-device. <br>
Alternatively try to do the settings according to mmcli -b 0 via ip manually.</p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">Thomas<br><br><br><br></p></font></span><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">Am 14.08.2016 15:52 schrieb Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com" target="_blank">ajaygargnsit@gmail.com</a>>:<br type="attribution"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><span style="font-family:'arial','helvetica',sans-serif">Hi All.<br><br>This post is mostly similar to <a href="https://lists.freedesktop.org/archives/libqmi-devel/2016-August/001647.html" target="_blank">https://lists.freedesktop.org/<wbr>archives/libqmi-devel/2016-Aug<wbr>ust/001647.html</a>, except there I am trying with "qmicli" throughout, and here I try with "mmcli" throughout.<br><br></span></div><span style="font-family:'arial','helvetica',sans-serif">Anyways, for brevity, I will put in the complete relevant-content here too.<br></span><pre><span style="font-family:'arial','helvetica',sans-serif">I switched my modem into QMI-mode, and rebooted the SOC (Ubuntu-on-SSD-interfaced-</span><span style="font-family:'arial','helvetica',sans-serif">with<wbr>-modem).
After reboot, following is the information ::</span></pre><span style="font-family:'arial','helvetica',sans-serif"><br></span><pre><span style="font-family:'arial','helvetica',sans-serif">== Pre-Requisites are in place ==

##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################
root@logic-desktop:~# <b>lsusb</b><br>Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br>Bus 001 Device 005: ID 1199:68a2 Sierra Wireless, Inc. <br>Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB<br>Bus 001 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse<br>Bus 001 Device 002: ID 046d:c31d Logitech, Inc. Media Keyboard K200<br>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>

root@logic-desktop:~# <b>ps -aux | grep qmi-proxy</b><br>root       865  0.0  0.1  28032  5732 ?        Sl   18:58   0:00 /usr/lib/libqmi/qmi-proxy<br>root      2563  0.0  0.0   4692  2072 pts/2    S+   19:05   0:00 grep --color=auto qmi-proxy

root@logic-desktop:~# <b>lsmod | grep sierra</b><br><br>root@logic-desktop:~# <b>lsmod | grep qcserial</b><br>qcserial               13006  0 <br>usb_wwan               19306  1 qcserial<br>usbserial              38972  2 qcserial,usb_wwan<br><br>root@logic-desktop:~# <b>lsmod | grep qmi_wwan</b><br>qmi_wwan               21469  0 <br>cdc_wdm                18518  2 qmi_wwan<br>usbnet                 37829  1 qmi_wwan
##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################





== Initial-Interface Listing ==

##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br>root@logic-desktop:~# <b>ifconfig</b><br>eth1      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fa  <br>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)<br>          Memory:d0700000-d071ffff <br><br>eth2      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fb  <br>          inet6 addr: fe80::290:bff:fe4c:65fb/64 Scope:Link<br>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br>          RX packets:3910 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:3448 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:3143983 (3.1 MB)  TX bytes:540896 (540.8 KB)<br>          Memory:d0600000-d061ffff <br><br>lo        Link encap:Local Loopback  <br>          inet addr:127.0.0.1  Mask:255.0.0.0<br>          inet6 addr: ::1/128 Scope:Host<br>          UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>          RX packets:2398 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:2398 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:0 <br>          RX bytes:188946 (188.9 KB)  TX bytes:188946 (188.9 KB)<br>##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br><br><br><br><br><br>== Connection-Establishment ==

##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br>root@logic-desktop:~# <b>mmcli -m 0 -e</b><br>successfully enabled the modem<br><br>root@logic-desktop:~# <b>mmcli -m 0 --simple-connect="apn=<a href="http://airtelgprs.com" target="_blank">airtelgp<wbr>rs.com</a>"</b><br>successfully connected the modem<br><br>root@logic-desktop:~# <b>mmcli -m 0</b><br><br>/org/freedesktop/</span><span style="font-family:'arial','helvetica',sans-serif">ModemManager1<wbr>/Modem/0 (device id '</span><span style="font-family:'arial','helvetica',sans-serif">6eef1b98754cbd133c7a802b89bfc<wbr>c</span><span style="font-family:'arial','helvetica',sans-serif">cb55c2f464')<br>  -------------------------<br>  Hardware |   manufacturer: 'QUALCOMM INCORPORATED'<br>           |          model: '0'<br>           |       revision: 'SCAUTNZ  1  [Oct 21 2011 09:30:38]'<br>           |      supported: 'gsm-umts'<br>           |        current: 'gsm-umts'<br>           |   equipment id: '013087000947186'<br>  -------------------------<br>  System   |         device: '/sys/devices/pci0000:00/0000:</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>00:14.0/usb1/1-4/1-4.1'<br>           |        drivers: 'qmi_wwan, qcserial'<br>           |         plugin: 'Sierra'<br>           |   primary port: 'cdc-wdm0'<br>           |          ports: 'ttyUSB1 (at), cdc-wdm0 (qmi), wwan0 (net)'<br>  -------------------------<br>  Numbers  |           own : 'unknown'<br>  -------------------------<br>  Status   |           lock: 'sim-pin2'<br>           | unlock retries: 'sim-pin (10), sim-pin2 (3), sim-puk (10), sim-puk2 (10)'<br>           |          state: 'connected'<br>           |    power state: 'on'<br>           |    access tech: 'gsm'<br>           | signal quality: '71' (recent)<br>  -------------------------<br>  Modes    |      supported: 'allowed: 2g; preferred: none<br>           |                  allowed: 3g; preferred: none<br>           |                  allowed: 2g, 3g; preferred: none<br>           |                  allowed: 2g, 3g; preferred: 2g<br>           |                  allowed: 2g, 3g; preferred: 3g'<br>           |        current: 'allowed: 2g, 3g; preferred: none'<br>  -------------------------<br>  Bands    |      supported: 'dcs, egsm, pcs, g850, u2100, u1900, u800, u850'<br>           |        current: 'dcs, egsm, pcs, g850, u2100, u1900, u800, u850'<br>  -------------------------<br>  IP       |      supported: 'ipv4, ipv6, ipv4v6'<br>  -------------------------<br>  3GPP     |           imei: '013087000947186'<br>           |  enabled locks: 'none'<br>           |    operator id: '659957'<br>           |  operator name: 'unknown'<br>           |   subscription: 'unknown'<br>           |   registration: 'home'<br>  -------------------------<br>  SIM      |           path: '/org/freedesktop/</span><span style="font-family:'arial','helvetica',sans-serif">ModemManager<wbr>1/SIM/0'<br><br>  -------------------------<br>  Bearers  |          paths: '/org/freedesktop/</span><span style="font-family:'arial','helvetica',sans-serif">ModemManager<wbr>1/Bearer/0'<br>##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br><br><br><br><br>== Latest-Interface Listing ==
<br>##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################
root@logic-desktop:~# <b>ifconfig</b><br>eth0      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fa  <br>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)<br>          Memory:d0700000-d071ffff <br><br>eth2      Link encap:Ethernet  HWaddr 00:90:0b:4c:65:fb  <br>          inet6 addr: fe80::290:bff:fe4c:65fb/64 Scope:Link<br>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br>          RX packets:2023 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:1819 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:1000 <br>          RX bytes:1561030 (1.5 MB)  TX bytes:318922 (318.9 KB)<br>          Memory:d0600000-d061ffff <br><br>lo        Link encap:Local Loopback  <br>          inet addr:127.0.0.1  Mask:255.0.0.0<br>          inet6 addr: ::1/128 Scope:Host<br>          UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>          RX packets:948 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:948 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 txqueuelen:0 <br>          RX bytes:77992 (77.9 KB)  TX bytes:77992 (77.9 KB)<br>##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################</span></pre><span style="font-family:'arial','helvetica',sans-serif"><br><br></span><pre><span style="font-family:'arial','helvetica',sans-serif">== Network-Trials ==
<br></span></pre><pre><span style="font-family:'arial','helvetica',sans-serif">##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br>root@logic-desktop:~# <b>telnet <a href="http://www.google.com" target="_blank">www.google.com</a> 80</b><br>telnet: could not resolve <a href="http://www.google.com/80" target="_blank">www.google.com/80</a>: Name or service not known<br></span></pre><span style="font-family:'arial','helvetica',sans-serif">root@logic-desktop:~# <b>ping <a href="http://www.google.com" target="_blank">www.google.com</a></b><br>ping: unknown host <a href="http://www.google.com" target="_blank">www.google.com</a></span><span style="font-family:'arial','helvetica',sans-serif"><br>##############################</span><span style="font-family:'arial','helvetica',sans-serif"><wbr>##############################<br><br><br></span></div><span style="font-family:'arial','helvetica',sans-serif">What am I missing?<br><br></span></div><span style="font-family:'arial','helvetica',sans-serif">Will be grateful fo pointers.<br></span><div><div><span style="font-family:'arial','helvetica',sans-serif"><br> <br></span><div><span style="font-family:'arial','helvetica',sans-serif">Thanks and </span>Regards,<br><span style="font-family:'arial','helvetica',sans-serif"></span><div><span style="font-family:'arial','helvetica',sans-serif">Ajay<br></span></div>
</div></div></div></div>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Ajay<br></div>
</div>