RE: Getting ipv4 with MM and NM



Hi All
I have rebuilt the system and with performing a simple setup it has worked.

Maybe my hackery corrupted something!

# mmcli -m 0
  -----------------------------
  General  |         dbus path: /org/freedesktop/ModemManager1/Modem/0
           |         device id: d656ffae2bc793e3c48202da9296e8a6f58eaa4b
  -----------------------------
  Hardware |      manufacturer: Huawei Technologies Co., Ltd.
           |             model: MU609
           | firmware revision: 12.105.29.00.00
           |         supported: gsm-umts
           |           current: gsm-umts
           |      equipment id: 357784XXXXXXXXX
  -----------------------------
  System   |            device: /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.2
           |           drivers: option1, cdc_ether
           |            plugin: Huawei
           |      primary port: ttyUSB2
           |             ports: eth1 (net), ttyUSB2 (at), ttyUSB4 (at), ttyUSB1 (qcdm),
           |                    ttyUSB3 (gps)
  -----------------------------
  Numbers  |               own: +4477XXXXXXXX
  -----------------------------
  Status   |    unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |             state: connected
           |       power state: on
           |       access tech: umts
           |    signal quality: 0% (recent)
  -----------------------------
  Modes    |         supported: allowed: 3g; preferred: none
           |                    allowed: 2g; preferred: none
           |                    allowed: 2g, 3g; preferred: none
           |           current: allowed: 2g, 3g; preferred: none
  -----------------------------
  IP       |         supported: ipv4
  -----------------------------
  3GPP     |              imei: 357XXXXXXXXXXXX
           |       operator id: 23420
           |     operator name: 3 UK
           |      registration: home
  -----------------------------
  SIM      |         dbus path: /org/freedesktop/ModemManager1/SIM/0
  -----------------------------
  Bearer   |         dbus path: /org/freedesktop/ModemManager1/Bearer/0
# nmcli
ttyUSB2: connected to ttyUSB2
        "HUAWEI Mobile"
        gsm (option1, cdc_ether), hw, iface eth1, mtu 1500
        ip4 default
        inet4 100.90.80.100/29
        route4 100.90.80.96/29
        route4 0.0.0.0/0

eth0: unavailable
        "eth0"
        ethernet (cpsw), D0:5F:B8:F5:88:C3, hw, mtu 1500

can0: unmanaged
        "can0"
        can (c_can_platform), hw, mtu 16

sit0: unmanaged
        "sit0"
        iptunnel (sit), sw, mtu 1480

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 172.30.139.16 172.31.139.16
        interface: eth1

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         100.90.80.97    0.0.0.0         UG    700    0        0 eth1
100.90.80.96    *               255.255.255.248 U     700    0        0 eth1
# nslookup www.google.com
Server:         172.30.139.16
Address:        172.30.139.16:53

Non-authoritative answer:
Name:   www.google.com
Address: 216.58.206.100

Non-authoritative answer:
Name:   www.google.com
Address: 2a00:1450:4009:817::2004


Lets see how stable it is over multiple reboots.

Currently using
# mmcli --version

mmcli 1.10.2
Copyright (2011 - 2019) Aleksander Morgado
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

# nmcli --version
nmcli tool, version 1.18.2

Kind Regards

Marc

-----Original Message-----
From: networkmanager-list <networkmanager-list-bounces gnome org> On Behalf Of Marc Murphy
Sent: 07 October 2019 19:16
To: networkmanager-list gnome org
Subject: Getting ipv4 with MM and NM

Hi All
I have been scratching my head over why I can not get NetworkManager to manage the modem that ModemManager 
has configured and enabled.

Using different types of modem I get the same result Huawei MU609 SierraWireless MC7304 SIMCOM 5360E

I can get MM to enable the modem and even to perform a simple connect and I get a connection in the bearer;

# mmcli -m 0 --simple-connect="apn=three.co.uk"
successfully connected the modem
# mmcli -m 0
  -----------------------------
  General  |         dbus path: /org/freedesktop/ModemManager1/Modem/0
           |         device id: cf1cb9ace6798ba8d5ad4ed5a232094cac45d99b
  -----------------------------
  Hardware |      manufacturer: Sierra Wireless, Incorporated
           |             model: MC7304
           | firmware revision: SWI9X15C_05.05.58.00 r27038 carmd-fwbuild1 2015/03/04 21:30:23
           |      h/w revision: 1.0
           |         supported: gsm-umts, lte
           |           current: gsm-umts, lte
           |      equipment id: 3568530XXXXXXXXX
  -----------------------------
  System   |            device: /sys/devices/platform/ocp/47400000.usb/47401c00.usb/musb-hdrc.1/usb1/1-1/1-1.2
           |           drivers: qcserial, qmi_wwan
           |            plugin: Sierra
           |      primary port: cdc-wdm0
           |             ports: cdc-wdm0 (qmi), wwan1 (net), ttyUSB2 (at), wwan0 (net),
           |                    cdc-wdm1 (qmi), ttyUSB0 (qcdm)
  -----------------------------
  Numbers  |               own: 4477XXXXXXXX
  -----------------------------
  Status   |              lock: sim-pin2
           |    unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |             state: connected
           |       power state: on
           |       access tech: umts
           |    signal quality: 2% (recent)
  -----------------------------
  Modes    |         supported: allowed: 2g; preferred: none
           |                    allowed: 3g; preferred: none
           |                    allowed: 4g; preferred: none
           |                    allowed: 2g, 3g; preferred: 3g
           |                    allowed: 2g, 3g; preferred: 2g
           |                    allowed: 2g, 4g; preferred: 4g
           |                    allowed: 2g, 4g; preferred: 2g
           |                    allowed: 3g, 4g; preferred: 3g
           |                    allowed: 3g, 4g; preferred: 4g
           |                    allowed: 2g, 3g, 4g; preferred: 4g
           |                    allowed: 2g, 3g, 4g; preferred: 3g
           |                    allowed: 2g, 3g, 4g; preferred: 2g
           |           current: allowed: 2g, 3g, 4g; preferred: 4g
  -----------------------------
  Bands    |         supported: egsm, dcs, pcs, g850, utran-1, utran-6, utran-5, utran-8,
           |                    utran-2, eutran-1, eutran-3, eutran-7, eutran-8, eutran-20
           |           current: egsm, dcs, pcs, g850, utran-1, utran-5, utran-8, utran-2,
           |                    eutran-1, eutran-3, eutran-7, eutran-8, eutran-20
  -----------------------------
  IP       |         supported: ipv4, ipv6, ipv4v6
  -----------------------------
  3GPP     |              imei: 356853XXXXXXXXX
           |       operator id: 23420
           |     operator name: 3
           |      registration: home
  -----------------------------
  SIM      |         dbus path: /org/freedesktop/ModemManager1/SIM/0
  -----------------------------
  Bearer   |         dbus path: /org/freedesktop/ModemManager1/Bearer/0
# mmcli -b 0
  --------------------------------
  General            |  dbus path: /org/freedesktop/ModemManager1/Bearer/0
                     |       type: default
  --------------------------------
  Status             |  connected: yes
                     |  suspended: no
                     |  interface: wwan1
                     | ip timeout: 20
  --------------------------------
  Properties         |        apn: three.co.uk
                     |    roaming: allowed
  --------------------------------
  IPv4 configuration |     method: dhcp
                     |    address: 10.107.85.139
                     |     prefix: 29
                     |    gateway: 10.107.85.140
                     |        dns: 172.30.139.16, 172.31.139.16
                     |        mtu: 1430

Checking with NM it shows the device as unavailable no matter what I do.  I have tried to add a new 
connection to use the cdc-wdm0 interface but get an error of # nmcli
eth0: unavailable
        "eth0"
        ethernet (cpsw), D0:5F:B8:F5:88:C3, hw, mtu 1500

cdc-wdm0: unavailable
        "cdc-wdm0"
        gsm (qcserial, qmi_wwan), hw

can0: unmanaged
        "can0"
        can (c_can_platform), hw, mtu 16

sit0: unmanaged
        "sit0"
        iptunnel (sit), sw, mtu 1480

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

Use "nmcli device show" to get complete information about known devices and "nmcli connection show" to get an 
overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether d0:5f:b8:f5:88:c3 brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can
5: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/none
6: wwan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 8e:50:6b:7b:bf:30 brd ff:ff:ff:ff:ff:ff # route Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
#




Kind Regards

Marc

_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]