CentOS 7 and ModemManager. Stuck in "Connecting-Disconnecting" after connection attempt.

Aleksander Morgado aleksander at aleksander.es
Fri Jul 27 10:19:18 UTC 2018


Hey

On Fri, Jul 27, 2018 at 10:43 AM, Oskar . <oggw at hotmail.com> wrote:
>
> Solved the problem with CentOS 7.
>
> I was not able to connect with ModemManager CLI. For some reason, it did not get an IP-address (DHCP) and DNS.
>
>
> sudo ifconfig wwp0s20f0u6i4 up
>
>
> sudo qmicli -d /dev/cdc-wdm0 –dms-set-operating-mode=online
>
>
> dhclient -d -4 wwp0s20f0u6i4
>
>
> Edit /etc/resolv.conf and add the following:
>
> nameserver 8.8.8.8
>
>
> This will fix the DNS-problem.
>
> In Ubuntu 18.04 the DNS and DHCP came automatically.
>

Please note that actions performed with mmcli will never end up
configuring the network interface. Once you connect the modem with
mmcli, you still would need to manually configure the network
interface, either with DHCP or with static IP settings, based on what
the "bearer info" reports on a successful connection.

If you're running distributions with both MM and NM, it should be
NetworkManager the one managing the connection, and that will give you
a properly configured network interface when the modem is connected,
as it's NM the one doing that for you.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list