Setting IP-addresses without NetworkManager?
Ossi
ponky at shardi.fi
Fri Sep 8 15:13:54 UTC 2017
Hi,
I run a very minimal Gentoo installation on the latest X1 Carbon with
EM7455 modem. I do all the networking related config with netifrc
scripts. I can initialize the modem using ModemManager, running 'mmcli
-m 0 --simple-connect="apn=internet"' and grabbing the IP-information
from 'mmcli -b 0'. This is a lot of manual work, so I've scripted it.
I'm just wondering if it's possible to set address, gateway and
nameservers automatically without NetworkManager? Running dhcpcd on the
modem interface does not do anything.
I also noticed that 'mbim-network /dev/cdc-wdm0 start' does not work at
all. Could you give a hint of what's wrong with my setup:
Loading profile at /etc/mbim-network.conf...
APN: internet
APN auth protocol: unset
APN user: unset
APN password: unset
mbim-proxy: no
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0
--query-subscriber-ready-status --no-close '...
[/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state:
'initialized' Subscriber ID: '244052162157311' SIM ICCID:
'89358021150507165706' Ready info: 'unknown' Telephone numbers: (0)
'unknown' [/dev/cdc-wdm0] Session not closed: TRID: '3'
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 3)
Querying registration state 'mbimcli -d /dev/cdc-wdm0
--query-registration-state --no-open=3 --no-close '...
[/dev/cdc-wdm0] Registration status: Network error: 'unknown' Register
state: 'deregistered' Register mode: 'automatic' Available data classes:
'unknown' Current cellular class: 'gsm' Provider ID: 'unknown' Provider
name: 'unknown' Roaming text: 'unknown' Registration flags:
'packet-service-automatic-attach' [/dev/cdc-wdm0] Session not closed:
TRID: '4'
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 4)
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0
--attach-packet-service --no-open=4 --no-close '...
error: operation failed: RadioPowerOff
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 5)
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=apn='internet'
--no-open=5 --no-close '...
error: operation failed: RadioPowerOff
Network start failed
[/dev/cdc-wdm0] Session not closed: TRID: '6'
Saving state at /tmp/mbim-network-state-cdc-wdm0... (TRID: 6)
More information about the ModemManager-devel
mailing list