<div dir="ltr"><div>Hey there.</div><div><br></div><div>Indeed both modems show 'method: static' on the bearer<br></div><div><br></div><div>Thing is, I'm already using NetworkManager. This is the full config of 'mmcli -b X' for both modems:</div><div><br></div><div><span style="font-family:arial narrow,sans-serif"> ------------------------------------<br> General | path: /org/freedesktop/ModemManager1/Bearer/1<br> | type: default<br> ------------------------------------<br> Status | connected: yes<br> | suspended: no<br> | interface: wwan0<br> | ip timeout: 20<br> ------------------------------------<br> Properties | apn: <a href="http://gprs.oi.com.br">gprs.oi.com.br</a><br> | roaming: allowed<br> | ip type: ipv4<br> | user: oi<br> | password: oi<br> ------------------------------------<br> IPv4 configuration | method: static<br> | address: 100.72.135.137<br> | prefix: 30<br> | gateway: 100.72.135.138<br> | dns: 201.10.128.2, 201.10.120.2<br> ------------------------------------<br> Statistics | duration: 26909<br> | attempts: 1<br> | total-duration: 26909</span></div><div><br></div><div><br></div><div>Should I configure something specific into NetworkManager itself? Or for `ip` itself?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sáb., 2 de out. de 2021 às 21:12, Enrico Mioso <<a href="mailto:mrkiko.rs@gmail.com">mrkiko.rs@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Some modems offer a DHCP emulation in their firmware. Others don't. And this information should be seen when you look at the bearer that gets created when you connect the modem.<br>
<br>
mmcli -m <modem num> # should list bearers<br>
<br>
mmcli -b <bearer_number> # should tell you the config method<br>
<br>
Maybe the modem corresponding to wwan1 has a "static" configuration method, assuming wwan1 doesn't pertain to the same modem exposing wwan0.<br>
<br>
If the configuration method is "static", you should somehow configure the modem, with the ip command or whatever fits.<br>
<br>
Maybe NetworkManager could be a solution for your use-case? I don't know, just proposing here.<br>
<br>
Enrico<br>
<br>
<br>
On Sat, 2 Oct 2021, Lucas Pelegrino wrote:<br>
<br>
> Date: Sat, 2 Oct 2021 23:21:22<br>
> From: Lucas Pelegrino <<a href="mailto:lucas.wxp@gmail.com" target="_blank">lucas.wxp@gmail.com</a>><br>
> To: Yegor Yefremov <<a href="mailto:yegorslists@googlemail.com" target="_blank">yegorslists@googlemail.com</a>><br>
> Cc: "ModemManager (development)" <<a href="mailto:modemmanager-devel@lists.freedesktop.org" target="_blank">modemmanager-devel@lists.freedesktop.org</a>><br>
> Subject: Re: Modem connected but no internet<br>
> <br>
> Just to give some more information. When I do `dhclient wwan0` I can see a new route being added and wwan0 works:<br>
> <br>
> $ ip route show<br>
> default via 100.72.135.138 dev wwan0<br>
> default via 192.168.0.1 dev wlan0 metric 1<br>
> default via 192.168.0.1 dev wlan0 proto dhcp metric 600<br>
> <a href="http://100.72.135.136/30" rel="noreferrer" target="_blank">100.72.135.136/30</a> dev wwan0 proto kernel scope link src 100.72.135.137<br>
> <a href="http://100.73.179.140/30" rel="noreferrer" target="_blank">100.73.179.140/30</a> dev wwan1 proto kernel scope link src 100.73.179.142 metric 700<br>
> <a href="http://192.168.0.0/24" rel="noreferrer" target="_blank">192.168.0.0/24</a> dev wlan0 proto kernel scope link src 192.168.0.16<br>
> <br>
> But if I do `dhclient wwan1` nothing changes on the `ip route show`. I don't understand much about networks, but I guess I can only have one route set? I think `dhclient` might not be the issue. Any information is appreciated.<br>
> <br>
> <br>
> Em sáb., 2 de out. de 2021 às 12:03, Lucas Pelegrino <<a href="mailto:lucas.wxp@gmail.com" target="_blank">lucas.wxp@gmail.com</a>> escreveu:<br>
> I tried running `sudo dhclient wwan0`, it seems it got one of the modems to work, but I have two modems and `wwan1` remains with the same problem and `sudo dhclient wwan1` didn't seem to work on it.<br>
> <br>
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>
> inet <a href="http://127.0.0.1/8" rel="noreferrer" target="_blank">127.0.0.1/8</a> scope host lo<br>
> valid_lft forever preferred_lft forever<br>
> 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000<br>
> link/ether b8:27:eb:87:22:8e brd ff:ff:ff:ff:ff:ff<br>
> 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>
> link/ether b8:27:eb:d2:77:db brd ff:ff:ff:ff:ff:ff<br>
> inet <a href="http://192.168.0.16/24" rel="noreferrer" target="_blank">192.168.0.16/24</a> brd 192.168.0.255 scope global dynamic noprefixroute wlan0<br>
> valid_lft 85555sec preferred_lft 85555sec<br>
> inet6 2804:14c:7582:46bf::1007/128 scope global dynamic noprefixroute<br>
> valid_lft 85557sec preferred_lft 85557sec<br>
> inet6 2804:14c:7582:46bf:cfbe:7945:f701:da92/64 scope global dynamic noprefixroute<br>
> valid_lft 86372sec preferred_lft 71972sec<br>
> inet6 fe80::5139:cd08:a2a9:9a4e/64 scope link noprefixroute<br>
> valid_lft forever preferred_lft forever<br>
> 4: wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000<br>
> link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff<br>
> inet <a href="http://100.70.243.89/30" rel="noreferrer" target="_blank">100.70.243.89/30</a> brd 100.70.243.91 scope global noprefixroute wwan0<br>
> valid_lft forever preferred_lft forever<br>
> 6: wwan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000<br>
> link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff<br>
> inet <a href="http://100.71.207.216/28" rel="noreferrer" target="_blank">100.71.207.216/28</a> brd 100.71.207.223 scope global dynamic wwan1<br>
> valid_lft 518326sec preferred_lft 518326sec<br>
> <br>
> <br>
> <br>
> Em sáb., 2 de out. de 2021 às 11:36, Yegor Yefremov <<a href="mailto:yegorslists@googlemail.com" target="_blank">yegorslists@googlemail.com</a>> escreveu:<br>
> Hi Lucas,<br>
><br>
> On Sat, Oct 2, 2021 at 4:26 PM Lucas Pelegrino <<a href="mailto:lucas.wxp@gmail.com" target="_blank">lucas.wxp@gmail.com</a>> wrote:<br>
> ><br>
> > Hello there.<br>
> ><br>
> > I have this behavior in my raspberry PI where a modem shows connected, but I still can't connect to the internet:<br>
> > --------------------------------<br>
> > General | path: /org/freedesktop/ModemManager1/Modem/4<br>
> > | device id: ab1573a4186ee4930c3dbe7ee14e2dddcd10b4c2<br>
> > --------------------------------<br>
> > Hardware | manufacturer: huawei<br>
> > | model: E3276<br>
> > | firmware revision: 21.260.05.01.150<br>
> > | supported: gsm-umts<br>
> > | current: gsm-umts<br>
> > | equipment id: 866519011156587<br>
> > --------------------------------<br>
> > System | device: /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2.2<br>
> > | drivers: huawei_cdc_ncm, option<br>
> > | plugin: huawei<br>
> > | primary port: cdc-wdm0<br>
> > | ports: cdc-wdm0 (at), ttyUSB0 (at), ttyUSB1 (at), wwan0 (net)<br>
> > --------------------------------<br>
> > Numbers | own: +xxxx<br>
> > --------------------------------<br>
> > Status | unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)<br>
> > | state: connected<br>
> > | power state: on<br>
> > | access tech: umts<br>
> > | signal quality: 41% (recent)<br>
> > --------------------------------<br>
> > Modes | supported: allowed: 2g; preferred: none<br>
> > | allowed: 3g; preferred: none<br>
> > | allowed: 4g; preferred: none<br>
> > | allowed: 2g, 3g, 4g; preferred: none<br>
> > | current: allowed: 2g, 3g, 4g; preferred: none<br>
> > --------------------------------<br>
> > IP | supported: ipv4, ipv6, ipv4v6<br>
> > --------------------------------<br>
> > 3GPP | imei: 866519011156587<br>
> > | operator id: 72416<br>
> > | operator name: Oi<br>
> > | registration: roaming<br>
> > --------------------------------<br>
> > 3GPP EPS | ue mode of operation: csps-2<br>
> > --------------------------------<br>
> > SIM | primary sim path: /org/freedesktop/ModemManager1/SIM/4<br>
> > --------------------------------<br>
> > Bearer | paths: /org/freedesktop/ModemManager1/Bearer/5<br>
> ><br>
> ><br>
> ><br>
> > Weird thing is that on my Ubuntu desktop this modem works! The only difference I noticed is that in my Ubuntu field 'access tech' is 'lte', while above (on the pi) like you can see it's 'umts'.<br>
> ><br>
> > I figured the problem might be related to the 'access tech' field above, so I tried forcing setting mode for '4g' but didn't work:<br>
> ><br>
> > $ sudo mmcli -m 4 --set-allowed-modes='4g' --set-preferred-mode='4g'<br>
> > error: couldn't set current modes: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unsupported: The given combination of allowed and preferred modes is not supported'<br>
> ><br>
> ><br>
> > The only difference between my raspberry pi and my desktop machine is that the pi is under a more recent version of ModemManager 1.16 vs 1.12 from my desktop Ubuntu.<br>
> ><br>
> > Any ideas?<br>
><br>
> Could you share your IP configuration i.e. please post the output of<br>
> the "ip addr" command. Looks like you haven't run dhcpclient or alike<br>
> on your wwan0 interface.<br>
><br>
> Best regards,<br>
> Yegor<br>
> <br>
> <br>
></blockquote></div>