aboutsummaryrefslogtreecommitdiff
path: root/etc/private/systemd-networkd/20-br0-tap0.network
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-09-03 11:51:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-09-03 11:51:48 +0200
commit1a869d93875e19efefe7ecfee21ebc776431c370 (patch)
treec0bf43ac6bd51088d5015f3b683a6b700bc38920 /etc/private/systemd-networkd/20-br0-tap0.network
parentf42eb41a5164780ac8bf5934d0fa6278a6ace6f0 (diff)
Add example for bridge/tap network setup using systemd-networkd
Diffstat (limited to 'etc/private/systemd-networkd/20-br0-tap0.network')
-rw-r--r--etc/private/systemd-networkd/20-br0-tap0.network16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/private/systemd-networkd/20-br0-tap0.network b/etc/private/systemd-networkd/20-br0-tap0.network
new file mode 100644
index 0000000..1c2c746
--- /dev/null
+++ b/etc/private/systemd-networkd/20-br0-tap0.network
@@ -0,0 +1,16 @@
+# Add the tap interface to the bridge.
+#
+# Note: do not assign MAC address to the tap interface, it's not the same
+# thing as the interface inside the VM (which is what we want to assign the
+# MAC address to).
+#
+
+[Match]
+Name=tap0
+
+[Network]
+Bridge=br0
+#ConfigureWithoutCarrier=yes
+
+[Link]
+RequiredForOnline=no