Getting ipv4 with MM and NM
- From: Marc Murphy <marcmltd marcm co uk>
- To: "networkmanager-list gnome org" <networkmanager-list gnome org>
- Subject: Getting ipv4 with MM and NM
- Date: Mon, 7 Oct 2019 18:15:39 +0000
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
w www.marcm.co.uk
t +44161 6601049
m +44781 0812922
MARCM CONSULTANCY LTD registered office:
164 Walkden Road, Worsley, Manchester, M28 7DP, England.
Registration No: 4386088
VAT No: GB 792 9557 66
This communication contains information which is confidential and may also be privileged. It is for the
exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction,
copying, publication or use of this communication or the information is prohibited. If you have received this
communication in error, please contact us immediately and also delete the communication from your computer.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]