From a972e4015b4867dc65f88356feccae5095b96cb0 Mon Sep 17 00:00:00 2001 From: Kai Kang Date: Sun, 2 Jun 2019 10:55:30 -0400 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd-conf/wired.network | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd-conf/wired.network (limited to 'meta/recipes-core/systemd/systemd-conf/wired.network') 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 @@ +[Match] +Name=en* eth* + +[Network] +DHCP=yes + +[DHCP] +RouteMetric=10 +ClientIdentifier=mac -- cgit v1.2.3-54-g00ecf