summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd-conf/wired.network
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2019-06-02 10:55:30 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-04 09:09:42 +0100
commita972e4015b4867dc65f88356feccae5095b96cb0 (patch)
treeb2e5efacaecc30bda2c8d4f33381a6c86da969d2 /meta/recipes-core/systemd/systemd-conf/wired.network
parent0a2382cdca2acaa9df008ff66018bbc3fa00bb05 (diff)
downloadpoky-a972e4015b4867dc65f88356feccae5095b96cb0.tar.gz
systemd-conf: configure wired network with dhcp
Add a configure file for systemd.networkd to configure wired network interfaces with dhcp. It works with common network interfaces such eth0 and eno1. And do not install it for qemu bsps. Refer to https://github.com/YoeDistro/meta-yoe/tree/master/recipes-core/systemd [YOCTO #13057] (From OE-Core rev: d87efd14ce0471135c0aa7fd7b5da2808acb9c76) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-conf/wired.network')
-rw-r--r--meta/recipes-core/systemd/systemd-conf/wired.network9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-conf/wired.network b/meta/recipes-core/systemd/systemd-conf/wired.network
new file mode 100644
index 0000000000..253aee9382
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd-conf/wired.network
@@ -0,0 +1,9 @@
1[Match]
2Name=en* eth*
3
4[Network]
5DHCP=yes
6
7[DHCP]
8RouteMetric=10
9ClientIdentifier=mac