[systemd-devel] systemd-networkd meet the error of "No such file or directory"

Zhou, Luwei luwei.zhou at intel.com
Tue Feb 14 07:50:31 UTC 2017


Hi,

I am not sure this the place where I can post my problems. Sorry for broadcasting to the mailist.
I am systemd 2.25 version on  yocto linux.  I meet a problem when try to enable systemd-networkd.service.  It seems I have followed the rule of system-networkd.service but cannot find the file.

I have added the 25-wired.network to try to enable networking interface under /etc/systemd/network . There are another 3 files under the folder of  /lib/systemd/network by default in the image.
I have listed the file details below. Can anyone give me some suggestions what I have missed or command to debug. Thanks!


/etc/systemd/network# cat ./25-wired.network
[Match]
Name=enp1s0

[Network]
DHCP=ipv4

[Install]
WantedBy=multi-user.target

root at intel-corei7-64:/etc/systemd/network# systemctl enable systemd-networkd.service
Failed to execute operation: No such file or directory
root at intel-corei7-64:/etc/systemd/network# systemctl status -l  systemd-networkd.service
? systemd-networkd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

root at intel-corei7-64:/etc/systemd/network#
root at intel-corei7-64:/lib/systemd/network# cat ./99-default.link
[Link]
NamePolicy=kernel database onboard slot path
MACAddressPolicy=persistent
root at intel-corei7-64:/lib/systemd/network# cat ./80-container-ve.network

[Match]
Name=ve-*
Driver=veth

[Network]
# Default to using a /28 prefix, giving up to 13 addresses per container.
Address=0.0.0.0/28
LinkLocalAddressing=yes
DHCPServer=yes
IPMasquerade=yes
root at intel-corei7-64:/lib/systemd/network# cat ./80-container-host0.network

[Match]
Virtualization=container
Name=host0

[Network]
DHCP=yes
LinkLocalAddressing=yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170214/4155c924/attachment.html>


More information about the systemd-devel mailing list