-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with ModemManager #20370
Comments
I'd also like to have such an integration. Afaik NetworkManager is the only way to do the configuration automatically right now. |
@zabbal Could you provide wwan.network you currently manually create? I'd like to know what kind of information should be obtained from ModemManager. |
@yuwata the basic one as outlined in
See https://www.freedesktop.org/software/ModemManager/man/latest/mmcli.1.html for more details. |
I am not familiar with WWAN devices and ModemManager. But IIUC, ModemManager only retrieves address, gateway, DNS, and etc., provided by an internet provider, but not assign them. And the information is exposed through DBus. Is it true? I guess wwan0 or so is created dynamically when connection is established. If that is true, then I think it is better to introduce new condition |
Yes. That's correct.
Yes.
Good idea. Would be a nice to have match criteria for setups with multiple wwan connections. |
@benibr Thanks. |
Yes, exactly - the NetworkManager does that.
Precisely - that's what mmcli tool does. Would be great to be able to replace NetworkManager with systemd-networkd. The tricky thing which I don't understand yet is how to find the proper moment to assign the address etc - perhaps there's dbus signal from ModemManager which we could listen to? |
@zabbal I look around a bit with d-feet and dbus-monitor. I guess it would make sense to wait until ModemManager announces a Bearer then wait for a PropertyChanged with the bool Example from dbus-monitor:
|
There's 1:1 correspondense between "Bearer" and "APN" in ModemManager. So we can always take bearer number N from that signal and make dbus call equivalent to Although it's more of a nice-to-have feature - most users won't use several modems with different APN in parallel. |
So, let me confirm. How about the following way?
Note, still e.g. |
Hello @yuwata - I really appreciate your time on this. Here's the output from one machine:
|
And from my work laptop:
|
@dwrz and @dwrz-dbhg Thank you! |
@zabbal, @benibr, @dwrz and @dwrz-dbhg, could you also show the result of |
🙏🏽 |
🙏🏽🙏🏽🙏🏽 |
Thank you! |
Hi all! Could you test PR #22315? |
Minor correction on what was discussed here: Trying to find a bearer when the interface shows up won't work because the bearer is created when modemmanager is instructed to connect. So the bearer can also exist a short while before the connection is established too. |
Another note here. The data interface listed in the bearer object MAY be instantiated at runtime while the modem is connected and the bearer object created, so it may not even exist in the system if the modem is disconnected. We do this in ModemManager when multiplexing is enabled, as we can create N net interfaces multiplexed over a single wwan0 in order to connect to N different APNs. |
@yuwata do you want me to send you some WWAN devices to test with? |
@aleksander0m Oh, thanks. Yes, please if possible. Currently, I have no modem to test this feature. That's why this is stopped to be updated. |
Hi all, thanks for the great work you are doing. Is there any news about this integration? |
Sorry, not yet. But, I really want to implement that for next release (v253). |
@yuwata so, v253 just dropped, and I don't see this feature in the release notes. Is it postponed to v254? |
@killermoehre Ah, yeah, unfortunately... |
I'm surprised by the lack of interest. It is very important issue. |
@yuwata, I would be happy to sponsor your work on this project. Would you mind contacting me on Twitter (same username) or (username)@gmail.com? I am sure we can arrange a way to purchase some hardware for you! |
Just wondering, if there is additional information needed to bring up wwan (like PIN, APN, ... ) what is the expected place to store these in conjunction with this integration? |
I'm happy to help with this however needed. I also sent already a modem to play with to @yuwata some time ago, if anyone else needs one, please let me know. |
Is your feature request related to a problem? Please describe.
Setting up WWAN connection with systemd-networkd is the major hurdle at the moment.
Describe the solution you'd like
Ability to specify a new .network or .netdev link type which would talk with ModemManager to establish and properly configure IP interface managed by systemd-networkd
Describe alternatives you've considered
Right now we have to resort to scripting and manual output parsing which is cumbersome and error-prone.
The typical WWAN connection bring-up looks as follows:
Now we have to parse the output of the mmcli (or use dbus - whatever) and get the IP address, Gateway and other parameters to generate wwan.network so it can be controlled with systemd-networkd.
Would be way more convenient if systemd-networkd could take care of low-level details and extract that information directly from ModemManager as well as gracefully handle network interruptions etc.
The systemd version you checked that didn't have the feature you are asking for
247
The text was updated successfully, but these errors were encountered: