[systemd-devel] Networkd randomly doesn't configure network

Tom Gundersen teg at jklm.no
Sat Jun 14 06:52:58 PDT 2014


Hi Jan,

Could you attach your home.network file (in particular the [Match] section)?

Cheers,

Tom

On Sat, Jun 14, 2014 at 3:36 PM, Jan Janssen <medhefgo at web.de> wrote:
> Hi,
>
> systemd-networkd randomly refuses to set up my network card at boot.
> It gets its proper persistent name but no IP address is assigned,
> regardless of whether I use a static configuration or DCHP. A simple
> "systemctl restart systemd-networkd.service" fixes it. I'm using a up to
> date Arch Linux and systemd 214.
>
> Jan
>
>
> $ cat /etc/systemd/network/home.network
> [Match]
> Name=enp1s4
>
> [Network]
> Description=Home Network
> DHCP=false
> Address=192.168.178.2/24
> Gateway=192.168.178.1
> DNS=192.168.178.1
>
>
> A debug log of a boot without it setting up the card (it does also contain the log after the daemon restart):
> Jun 14 15:14:13 systemd-networkd[212]: timestamp of '/etc/systemd/network' changed
> Jun 14 15:14:13 systemd-networkd[212]: timestamp of '/usr/lib/systemd/network' changed
> Jun 14 15:14:14 systemd-networkd[212]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:14:14 systemd-networkd[212]:               lo: link 1 added
> Jun 14 15:14:14 systemd-networkd[212]:               lo: udev initializing link...
> Jun 14 15:14:14 systemd-networkd[212]:               lo: flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
> Jun 14 15:14:14 systemd-networkd[212]:               lo: gained carrier
> Jun 14 15:14:14 systemd-networkd[212]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a
> Jun 14 15:14:14 systemd-networkd[212]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:14:14 systemd-networkd[212]:               lo: added address: ::1/128
> Jun 14 15:14:14 systemd-networkd[212]:               lo: added address: 127.0.0.1/8
> Jun 14 15:14:31 systemd-networkd[212]:               lo: udev initialized link
> Jun 14 15:14:32 systemd-networkd[212]:               lo: unmanaged
> Jun 14 15:14:32 systemd-networkd[212]:             eth0: link 2 added
> Jun 14 15:14:32 systemd-networkd[212]:             eth0: udev initialized link
> Jun 14 15:14:32 systemd-networkd[212]:             eth0: unmanaged
> Jun 14 15:14:32 systemd-networkd[212]:             eth0: flags change: +MULTICAST +BROADCAST
> Jun 14 15:14:32 systemd-networkd[212]: Got message type=signal sender=org.freedesktop.DBus destination=:1.2 object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 error=n/a
> Jun 14 15:14:32 systemd-networkd[212]:             eth0: renamed to enp1s4
> Jun 14 15:14:32 systemd-networkd[212]:            wlan0: link 3 added
> Jun 14 15:14:32 systemd-networkd[212]:            wlan0: udev initialized link
> Jun 14 15:14:32 systemd-networkd[212]:            wlan0: unmanaged
> Jun 14 15:14:32 systemd-networkd[212]:            wlan0: flags change: +MULTICAST +BROADCAST
> Jun 14 15:14:32 systemd-networkd[212]:            wlan0: renamed to wlp1s10
> Jun 14 15:14:32 systemd-networkd[212]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:14:32 systemd-networkd[212]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:14:33 systemd-networkd[212]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.2 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
> Jun 14 15:15:05 systemd-networkd[212]: Received SIGTERM from PID 1 (systemd).
> Jun 14 15:15:05 systemd-networkd[547]: timestamp of '/etc/systemd/network' changed
> Jun 14 15:15:05 systemd-networkd[547]: timestamp of '/usr/lib/systemd/network' changed
> Jun 14 15:15:05 systemd-networkd[547]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:15:05 systemd-networkd[547]:          wlp1s10: link 3 added
> Jun 14 15:15:05 systemd-networkd[547]:          wlp1s10: udev initialized link
> Jun 14 15:15:05 systemd-networkd[547]:          wlp1s10: unmanaged
> Jun 14 15:15:05 systemd-networkd[547]:          wlp1s10: flags change: +MULTICAST +BROADCAST
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: link 2 added
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: udev initialized link
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: found matching network '/etc/systemd/network/home.network'
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: bringing link up
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: setting addresses
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: flags change: +MULTICAST +BROADCAST
> Jun 14 15:15:05 systemd-networkd[547]:               lo: link 1 added
> Jun 14 15:15:05 systemd-networkd[547]:               lo: udev initialized link
> Jun 14 15:15:05 systemd-networkd[547]:               lo: unmanaged
> Jun 14 15:15:05 systemd-networkd[547]:               lo: flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: getting address failed: Device or resource busy
> Jun 14 15:15:05 systemd-networkd[547]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: flags change: +UP
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: addresses set
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: setting routes
> Jun 14 15:15:05 systemd-networkd[547]:               lo: getting address failed: Device or resource busy
> Jun 14 15:15:05 systemd-networkd[547]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.28 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
> Jun 14 15:15:05 systemd-networkd[547]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:15:05 systemd-networkd[547]:               lo: added address: ::1/128
> Jun 14 15:15:05 systemd-networkd[547]:               lo: added address: 127.0.0.1/8
> Jun 14 15:15:05 systemd-networkd[547]: Got message type=signal sender=org.freedesktop.DBus destination=:1.28 object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 error=n/a
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: routes set
> Jun 14 15:15:05 systemd-networkd[547]:           enp1s4: link configured
> Jun 14 15:15:06 systemd-networkd[547]:           enp1s4: flags change: +LOWER_UP +RUNNING
> Jun 14 15:15:06 systemd-networkd[547]:           enp1s4: gained carrier
> Jun 14 15:15:08 systemd-networkd[547]:           enp1s4: added address: fe80::218:f3ff:fe26:e8b3/64
>
> A debug log of a successful boot (where no daemon restart was necessary):
> Jun 14 15:12:12 systemd-networkd[259]: timestamp of '/etc/systemd/network' changed
> Jun 14 15:12:12 systemd-networkd[259]: timestamp of '/usr/lib/systemd/network' changed
> Jun 14 15:12:13 systemd-networkd[259]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:12:13 systemd-networkd[259]:          wlp1s10: link 3 added
> Jun 14 15:12:13 systemd-networkd[259]:          wlp1s10: udev initialized link
> Jun 14 15:12:13 systemd-networkd[259]:          wlp1s10: unmanaged
> Jun 14 15:12:13 systemd-networkd[259]:          wlp1s10: flags change: +MULTICAST +BROADCAST
> Jun 14 15:12:13 systemd-networkd[259]:           enp1s4: link 2 added
> Jun 14 15:12:13 systemd-networkd[259]:           enp1s4: udev initialized link
> Jun 14 15:12:13 systemd-networkd[259]:           enp1s4: found matching network '/etc/systemd/network/home.network'
> Jun 14 15:12:13 systemd-networkd[259]:           enp1s4: bringing link up
> Jun 14 15:12:24 systemd-networkd[259]:           enp1s4: flags change: +MULTICAST +BROADCAST
> Jun 14 15:12:24 systemd-networkd[259]:               lo: link 1 added
> Jun 14 15:12:24 systemd-networkd[259]:               lo: udev initialized link
> Jun 14 15:12:24 systemd-networkd[259]:               lo: unmanaged
> Jun 14 15:12:24 systemd-networkd[259]:               lo: flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
> Jun 14 15:12:24 systemd-networkd[259]:           enp1s4: getting address failed: Device or resource busy
> Jun 14 15:12:24 systemd-networkd[259]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a
> Jun 14 15:12:24 systemd-networkd[259]:           enp1s4: flags change: +UP
> Jun 14 15:12:25 systemd-networkd[259]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.3 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
> Jun 14 15:12:25 systemd-networkd[259]: Got message type=signal sender=org.freedesktop.DBus destination=:1.3 object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 error=n/a
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: flags change: +LOWER_UP +RUNNING
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: gained carrier
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: added address: fe80::218:f3ff:fe26:e8b3/64
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: addresses set
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: setting routes
> Jun 14 15:12:25 systemd-networkd[259]:               lo: getting address failed: Device or resource busy
> Jun 14 15:12:25 systemd-networkd[259]: sd-rtnl: discarding 20 bytes of incoming message
> Jun 14 15:12:25 systemd-networkd[259]:               lo: added address: ::1/128
> Jun 14 15:12:25 systemd-networkd[259]:               lo: added address: 127.0.0.1/8
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: routes set
> Jun 14 15:12:25 systemd-networkd[259]:           enp1s4: link configured
> Jun 14 15:12:25 systemd-networkd[259]: enp1s4: setting addresses
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list