Can ModemManager connect to multiple PDUs networks?

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


Radu C <rcernea at gmail.com> writes:

> Hi,
>
> There are multiple tutorials online on how to connect a modem to a 5G core
> with multiple PDUs using mbimcli (like
> https://www.kernel.org/doc/html/latest/networking/cdc_mbim.html#mbim-data-channel-userspace-abi,
> or
> https://paldan.altervista.org/linux-mbim-wwan-multiple-pdn-setup/?doing_wp_cron=1705964667.8114559650421142578125
> ).
>
> 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

Bjørn


More information about the ModemManager-devel mailing list