[systemd-devel] Networkd fails to activate the device on boot

Thomas Bächler thomas at archlinux.org
Tue Aug 19 10:22:01 PDT 2014


Am 18.08.2014 um 12:41 schrieb Tom Gundersen:
>> 1) The enp3s0 interface does not activate on boot. I need to restart
>> networkd manually to make it work.
> 
> Hm, that is decidedly uncool. It seems we are not aware of the link.
> Could you try with Environment=SYSTEMD_LOG_LEVEL=debug in your service
> file to get some more info (of course that may hide the bug)? Is this
> reproducible with current git (I don't know of any fix to this, but
> you never know).

[    2.211121] lije systemd[1]: Starting Network Service...
[    2.230579] lije systemd-networkd[356]: timestamp of
'/etc/systemd/network' changed
[    2.231454] lije systemd-networkd[356]: qemu            : Creating
tuntap netdev: tap
[    2.232121] lije systemd-networkd[356]: qemu            : loaded tap
[    2.234423] lije systemd-networkd[356]: qemu            : link 3 added
[    2.234527] lije systemd-networkd[356]: qemu            : udev
initialized link
[    2.234630] lije systemd-networkd[356]: qemu            : netdev has
index 3
[    2.234720] lije systemd-networkd[356]: qemu            : flags
change: +MULTICAST +BROADCAST
[    2.236465] lije systemd-networkd[356]: qemu            : udev
initialized link
[    2.236562] lije systemd-networkd[356]: sd-rtnl: discarding 20 bytes
of incoming message
[    2.236703] lije systemd-networkd[356]: 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
[    2.236852] lije systemd-networkd[356]: qemu            : link state
is up-to-date
[    2.237117] lije systemd-networkd[356]: qemu            : found
matching network '/etc/systemd/network/01-qemu.network'
[    2.237673] lije systemd-networkd[356]: qemu            : enslaved
[    2.237777] lije systemd-networkd[356]: qemu            : bringing
link up
[    2.237876] lije systemd-networkd[356]: qemu            : setting
addresses
[    2.237972] lije systemd-networkd[356]: sd-rtnl: discarding 20 bytes
of incoming message
[    2.238057] lije systemd-networkd[356]: rtnl: received address for a
nonexistent link, ignoring
[    2.238155] lije systemd[1]: Started Network Service.
[    2.238263] lije systemd-networkd[356]: rtnl: received address for a
nonexistent link, ignoring
[    2.238608] lije systemd-networkd[356]: qemu            : flags
change: +UP +RUNNING
[    2.238702] lije systemd-networkd[356]: 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
[    2.238810] lije systemd-networkd[356]: 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
[    2.238906] lije systemd-networkd[356]: qemu            : added
address: 10.23.42.129/26
[    2.238993] lije systemd-networkd[356]: qemu            : addresses set
[    2.239328] lije systemd-networkd[356]: qemu            : link configured
[    2.239430] lije systemd-networkd[356]: qemu            : MAC
address: 1a:de:ad:be:ef:01
[    2.241023] lije systemd-networkd[356]: qemu            : flags
change: +LOWER_UP
[    2.241121] lije systemd-networkd[356]: qemu            : gained carrier
[    3.316936] lije systemd-networkd[356]: qemu            : added
address: fe80::18de:adff:febe:ef01/64

(There is a service in the background that changes the MAC address of
the qemu interface, that's why it changes). As you can see, there is no
indication of either enp3s0 or lo. Now, if I bring enp3s0 up manually
(ip link set dev enp3s0 up), this happens:

[   68.472579] lije systemd-networkd[356]: enp3s0          : link 2 added
[   68.472864] lije systemd-networkd[356]: enp3s0          : udev
initialized link
[   68.473060] lije systemd-networkd[356]: enp3s0          : flags
change: +UP +MULTICAST +BROADCAST
[   68.473242] lije systemd-networkd[356]: enp3s0          : link state
is up-to-date
[   68.473429] lije systemd-networkd[356]: enp3s0          : found
matching network '/etc/systemd/network/01-lan.network'
[   68.473578] lije systemd-networkd[356]: enp3s0          : enslaved
[   68.473718] lije systemd-networkd[356]: enp3s0          : setting
addresses
[   68.473854] lije systemd-networkd[356]: sd-rtnl: discarding 20 bytes
of incoming message
[   68.473988] lije systemd-networkd[356]: rtnl: received address for a
nonexistent link, ignoring
[   68.474137] lije systemd-networkd[356]: rtnl: received address for a
nonexistent link, ignoring
[   68.474275] lije systemd-networkd[356]: enp3s0          : added
address: 10.23.42.4/26
[   68.474424] lije systemd-networkd[356]: enp3s0          : addresses set
[   68.474565] lije systemd-networkd[356]: enp3s0          : setting routes
[   68.474975] lije systemd-networkd[356]: enp3s0          : routes set
[   68.475132] lije systemd-networkd[356]: enp3s0          : link configured
[   70.054677] lije systemd-networkd[356]: enp3s0          : flags
change: +LOWER_UP +RUNNING
[   70.054821] lije systemd-networkd[356]: enp3s0          : gained carrier
[   71.913487] lije systemd-networkd[356]: enp3s0          : added
address: fe80::ae22:bff:fe78:b708/64
[   72.973485] lije systemd-networkd[356]: enp3s0          : added
address: fd2a:cab:466b:0:2402:227d:f651:8fd3/64
[   73.036805] lije systemd-networkd[356]: enp3s0          : added
address: XXXX:XXXX:XXXX:0:ae22:bff:fe78:b708/64
[   73.426927] lije systemd-networkd[356]: enp3s0          : added
address: XXXX:XXXX:XXXX:0:2402:227d:f651:8fd3/64
[   73.683701] lije systemd-networkd[356]: enp3s0          : added
address: fd2a:cab:466b:0:ae22:bff:fe78:b708/64

I hope this helps.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140819/fde5099e/attachment.sig>


More information about the systemd-devel mailing list