Hello,
I do not use NetworkManager (this is on an embedded system running
Linux/amd64). I however used modemmanager with bullseye, with a
completely manual script using the mmcli command.
I observe this:
# /root/scripts/sierra.sh # script which configures manually using
# mmcli, worked before bookworm
successfully disconnected all bearers in the modem
successfully connected the modem
# ip address show dev wwan0
30: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1430 qdisc fq_codel
state UNKNOWN group default qlen 1000
link/none
inet 10.57.10.203/29 scope global wwan0
valid_lft forever preferred_lft forever
inet6 fe80::de50:9f5f:298:b2c4/64 scope link stable-privacy
valid_lft forever preferred_lft forever
# ip address show dev wwan1
31: wwan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
qlen 1000
link/ether 1a:17:af:d1:ec:d8 brd ff:ff:ff:ff:ff:ff
# iptables-save | grep wwan
-A INPUT -i wwan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wwan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o wwan0 -j ACCEPT
-A POSTROUTING -o wwan0 -j MASQUERADE
And if I do this:
# ip route add 1.1.1.2/32 dev wwan0
# ping 1.1.1.2
PING 1.1.1.2 (1.1.1.2) 56(84) bytes of data.
I can see the ICMP outgoing with tcpdump but no reply.
These are the modemanager logs, simplified, of another run (not same
IP):
ModemManager[12800]: <info> [modem1] state changed (registered -> connecting)
ModemManager[12800]: <info> [modem1/bearer3] QMI IPv4 Settings:
ModemManager[12800]: <info> [modem1/bearer3] address: 10.63.31.85/30
ModemManager[12800]: <info> [modem1/bearer3] gateway: 10.63.31.86
ModemManager[12800]: <info> [modem1/bearer3] DNS #1: 212.161.168.14
ModemManager[12800]: <info> [modem1/bearer3] DNS #2: 212.161.168.15
ModemManager[12800]: <info> [modem1/bearer3] MTU: 1430
ModemManager[12800]: <error> mm_utils_bin2hexstr: assertion 'bin != NULL' failed
ModemManager[12800]: <info> [modem1/bearer3] reloading stats is supported by
the device
ModemManager[12800]: <info> [modem1] state changed (connecting -> connected)
ModemManager[12800]: <info> [modem1] simple connect state (10/10): all done
ModemManager[12800]: <warn> [modem1] couldn't load network timezone from the
current network
After some time (presumably the 20 second timeout in the bearer config),
the USB disconnects. Then after some time modemmanager reconfigures
and the sierra script above can be re run with the same results.
When running modemmanager in debug mode, I don't see anything after the
connection is set up, except some statistics.
Any idea how to do debug further?
Thank you.