Can ModemManager connect to multiple PDUs networks?

Radu C rcernea at gmail.com
Mon Jan 22 23:19:21 UTC 2024


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?

Thank you,
Radu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/modemmanager-devel/attachments/20240122/bfc87b9e/attachment.htm>


More information about the ModemManager-devel mailing list