systemctl status ModemManager
○ ModemManager.service - Modem Manager
Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; disabled; preset: disabled)
Active: inactive (dead)
mbim-network /dev/cdc-wdm0 start
Loading profile at /etc/mbim-network.conf...
APN: internet.t-mobile.cz
APN auth protocol: mschapv2
APN user: gprs
APN password: gprs
mbim-proxy: yes
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0 --query-subscriber-ready-status --device-open-proxy'...
[/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state: 'initialized' Subscriber ID: '230015010603460' SIM ICCID: '8942001240298835147F' Ready info: 'none' Telephone numbers: (1) '+42XXXXXXXX'
Querying registration state 'mbimcli -d /dev/cdc-wdm0 --query-registration-state --device-open-proxy'...
[/dev/cdc-wdm0] Registration status: Network error: 'unknown' Register state: 'home' Register mode: 'automatic' Available data classes: 'lte' Current cellular class: 'gsm' Provider ID: '23001' Provider name: 'T-Mobile CZ (T-Mobil' Roaming text: 'unknown' Registration flags: 'packet-service-automatic-attach'
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0 --attach-packet-service --device-open-proxy'...
[/dev/cdc-wdm0] Successfully attached to packet service [/dev/cdc-wdm0] Packet service status: Network error: 'unknown' Packet service state: 'attached' Available data classes: 'lte' Uplink speed: '50000000 bps' Downlink speed: '100000000 bps'
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=apn='internet.t-mobile.cz',auth='mschapv2',username='gprs',password='gprs' --device-open-proxy'...
Network started successfully
mbimcli --device="/dev/cdc-wdm0" -p --query-ip-configuration
[/dev/cdc-wdm0] IPv4 configuration available: 'address, gateway, dns, mtu'
IP [0]: '100.79.217.135/28'
Gateway: '100.79.217.136'
DNS [0]: '62.141.16.177'
DNS [1]: '62.141.16.161'
MTU: '1500'
ip link set wwp195s0f3u4 down
ip addr flush dev wwp195s0f3u4
ip -6 addr flush dev wwp195s0f3u4
ip link set wwp195s0f3u4 up
ip addr add 100.79.217.135/28 dev wwp195s0f3u4 broadcast +
ip route add default via 100.79.217.136 dev wwp195s0f3u4
ip link set mtu 1500 dev wwp195s0f3u4
systemd-resolve -4 --interface=wwp195s0f3u4 --set-dns=62.141.16.177
systemd-resolve -4 --interface=wwp195s0f3u4 --set-dns=62.141.16.161
Network interface configurations completed.
socat - /dev/ttyUSB0,crnl
AT+CGDCONT?
+CGDCONT: 1,"IP","internet.t-mobile.cz","0.0.0.0",0,0,0,0
+CGDCONT: 2,"IPV4V6","ims","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 3,"IPV4V6","","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
OK
AT+CGPADDR
+CGPADDR: 1,"100.79.217.135"
+CGPADDR: 2,"0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
+CGPADDR: 3,"0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0"
OK
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1029ms
i have manually add CDGCONT
via
AT+CGDCONT=1,"IP","internet.t-mobile.cz"
OK
so the AT+CGDCONT?
output is similar as i had before
but if i remember well IP from AT+CGPADDR
was changed every reconnection
and now is still same