From: Kartikey Parmar <[email protected]> systemd-networkd is a system daemon that manages network configurations. It detects and configures network devices as they appear.
systemd-resolved is a system service that manages network name resolution. Enable resolved to take advantage of automatic DNS configuration from DHCP. Add wired-dhcp.network file at "/etc/systemd/network" referred by networkd to determine the Interface name and Network configuration type of ethernet ports. User is free to create multiple .network files at “/etc/system/network” path to have customized IP Address allocation. On multiple Ethernet port system, in absence of these features were unable to get and assign IP Addresses to all Ethernet ports when Ethernet cables are connected to the Ethernet ports. User have to manually bring the interface up in order to get the IP Address assigned to it. Now these features takes care of the IP Address assignment to all Ethernet ports when cables are connected to it based on the configuration file at “/etc/system/network” path. Signed-off-by: Kartikey Parmar <[email protected]> Signed-off-by: YUGERAJ RAMAJAYAM <[email protected]> --- .../recipes-core/systemd/systemd/wired-dhcp.network | 5 +++++ meta-intel-quark/recipes-core/systemd/systemd_%.bbappend | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta-intel-quark/recipes-core/systemd/systemd/wired-dhcp.network create mode 100644 meta-intel-quark/recipes-core/systemd/systemd_%.bbappend diff --git a/meta-intel-quark/recipes-core/systemd/systemd/wired-dhcp.network b/meta-intel-quark/recipes-core/systemd/systemd/wired-dhcp.network new file mode 100644 index 0000000..f2578d1 --- /dev/null +++ b/meta-intel-quark/recipes-core/systemd/systemd/wired-dhcp.network @@ -0,0 +1,5 @@ +[Match] +Name=e* + +[Network] +DHCP=yes diff --git a/meta-intel-quark/recipes-core/systemd/systemd_%.bbappend b/meta-intel-quark/recipes-core/systemd/systemd_%.bbappend new file mode 100644 index 0000000..1c510b9 --- /dev/null +++ b/meta-intel-quark/recipes-core/systemd/systemd_%.bbappend @@ -0,0 +1,13 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append_quark = " file://wired-dhcp.network" + +do_install_append_quark () { + install -d ${D}${sysconfdir}/systemd/network/ + install -m 0644 ${WORKDIR}/wired-dhcp.network ${D}${sysconfdir}/systemd/network/wired-dhcp.network +} + +FILES_${PN} += " ${sysconfdir}/systemd/network" + +PACKAGECONFIG[resolved] = "" +PACKAGECONFIG[networkd] = "" -- 1.9.1 -- _______________________________________________ meta-intel mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-intel
