<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - systemd-networkd: randomly does not bring interface up."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90132">90132</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd-networkd: randomly does not bring interface up.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vmlinuz386@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This remember me a old FIXED bug but with forcedeth <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - systemd-networkd: could not bring up interface: Connection timed out (randomly)"
   href="show_bug.cgi?id=75871">Bug 75871</a>[#1] that I
reported.

There is some kind of race condition with new systemd-networkd (219-5) because
network interface (driver r8169), randomly does no get initialized on boot (no
ip addr, no link up).
This at least happens with linux-4.0-2, no issue under 3.14.39-1. No issue with
systemd-218-2 at all (3.14/4.0). This is on Arch Linux with stock kernel.

While trying to debug the issue, I discovered a workaround, if I enable
log-level debug in networkd, interface always gets initialized on boot. (The
same workaround used in 75871)


# cat /etc/systemd/system/systemd-networkd.service.d/debug.conf
[Service]
Environment=SYSTEMD_LOG_LEVEL=debug

# cat /etc/systemd/network/20-net0.link
[Match]
MACAddress=00:18:f3:02:08:03

[Link]
Name=net0

# cat /etc/systemd/network/20-net0.network
[Match]
Name=net0

[Network]
Description=red
Address=192.168.90.66/24
Gateway=192.168.90.1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>