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() { ...@@ -65,6 +65,8 @@ write_systemd_iface() {
dhcp4) dhcp4)
echo "[Match]" echo "[Match]"
echo "Name=$iface" echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo echo
echo "[Network]" echo "[Network]"
echo "DHCP=ipv4" echo "DHCP=ipv4"
...@@ -80,6 +82,8 @@ write_systemd_iface() { ...@@ -80,6 +82,8 @@ write_systemd_iface() {
dhcp) dhcp)
echo "[Match]" echo "[Match]"
echo "Name=$iface" echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo echo
echo "[Network]" echo "[Network]"
echo "DHCP=yes" echo "DHCP=yes"
...@@ -93,6 +97,8 @@ write_systemd_iface() { ...@@ -93,6 +97,8 @@ write_systemd_iface() {
static) static)
echo "[Match]" echo "[Match]"
echo "Name=$iface" echo "Name=$iface"
echo "Kind=!*"
echo "Type=ether"
echo echo
echo "[Network]" echo "[Network]"
echo "Address=$ipv4addr" 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