Commit 9161903d authored by Anton Midyukov's avatar Anton Midyukov

net-eth: improvement systemd-networkd configs

Kind=!* - this means that the interface is not a child of any bridge, bond or tunnel.
parent 17285f04
......@@ -65,6 +65,8 @@ write_systemd_iface() {
dhcp4)
echo "[Match]"
echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo
echo "[Network]"
echo "DHCP=ipv4"
......@@ -80,6 +82,8 @@ write_systemd_iface() {
dhcp)
echo "[Match]"
echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo
echo "[Network]"
echo "DHCP=yes"
......@@ -93,6 +97,8 @@ write_systemd_iface() {
static)
echo "[Match]"
echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo
echo "[Network]"
echo "Address=$ipv4addr"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment