Can ModemManager connect to multiple PDUs networks?

Bjørn Mork bjorn at
Tue Jan 23 07:18:50 UTC 2024

Radu C <rcernea at> writes:

> Hi,
> There are multiple tutorials online on how to connect a modem to a 5G core
> with multiple PDUs using mbimcli (like
> or
> ).
> Essentially in mbimcli one can specify a session id, as part of the access
> string. This session ID is then mapped to a VLAN ID, which is mapped to a
> virtual interface on top of the modem network interface. In short,
> something like this:
> ```
> ip link add wwan0.1 link wwan0 type vlan id 1
> ip link add wwan0.2 link wwan0 type vlan id 2
> mbimcli -p -d /dev/cdc-wdm0 --connect=apn=apnA,session-id=1,ip-type=ipv4
> --no-close --no-open=42
> mbimcli -p -d /dev/cdc-wdm0 --connect=apn=apnB,session-id=2,ip-type=ipv4
> --no-close --no-open=42
> ```
> Is it possible to achieve the same result using mmcli, or the ModemManager
> API?

mmcli -m any --simple-connect=apn=apnA,multiplex=requested
mmcli -m any --simple-connect=apn=apnB,multiplex=requested

or use multiplex=required if you want mmcli to fail if unsupported


More information about the ModemManager-devel mailing list