<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I wasn't clear what I meant about processing of the .network
      file. With Ethernet or Wi-Fi (using iwd), when the link comes up,
      systemd-networkd does the Right Thing and starts network services
      on the interface, running a DHCP client or setting up static
      address(es), routes, etc., as specified in the .network file. When
      ModemManager establishes the connection with the 3G carrier,
      systemd-networkd seems to be unaware of the event, and I have to
      poke it with "systemd restart systemd-networkd" or "networkctl
      reload" before it tries to use the information in the .network
      file for the interface. It seems to me like that ought to happen
      automatically. I suspect that ModemManager needs to be changed to
      inform systemd-networkd.</p>
    <p>So far, it's not looking like there's an effort to integrate
      ModemManager (or something similar) with systemd-networkd, which
      is kind of a shame. If I come up with anything useful toward
      making that happen, I'll offer a pull request, but at the moment
      I'm looking at cobbling something together with Python.<br>
    </p>
    <pre class="moz-signature" cols="72">Bruce A. Johnson | Firmware Engineer
Blue Ridge Networks, Inc.
14120 Parke Long Court Suite 103 | Chantilly, VA 20151
Main: 1.800.722.1168 | Direct: 703-633-7332
<a class="moz-txt-link-freetext" href="http://www.blueridgenetworks.com">http://www.blueridgenetworks.com</a>
OpenPGP key ID: 296D1CD6F2B84CAB <a class="moz-txt-link-freetext" href="https://keys.openpgp.org/">https://keys.openpgp.org/</a></pre>
    <div class="moz-cite-prefix">On 23/08/2021 16:11, Manuel
      Wagesreither wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:57709177-685b-4a2f-a02e-fcb74efeedd1@www.fastmail.com">
      <blockquote type="cite" style="color: #007cff;">
        <pre class="moz-quote-pre" wrap="">I took a closer look at what's going on with systemd-networkd, and I 
found whether I use ModemManager or mbim-cli to connect to the mobile 
network, the .network file will be processed, but _only after I restart 
systemd-networkd_.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">I'm not 100% sure this applies to all the applications in the systemd ecosystem (like systemd-networkd), but systemd is reloading .unit, .service, .mount and all the other files there are only after a `systemctl daemon-reload`. That's the intended behaviour. Just wanted to mention this. Can't comment on anything else, though, as I have no clue either. But I'm interested in this topic and am silently monitoring this thread.</pre>
    </blockquote>
  </body>
</html>