aboutsummaryrefslogtreecommitdiff
path: root/etc/private/systemd-networkd/30-br0-dhcp.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/30-br0-dhcp.network
parentf42eb41a5164780ac8bf5934d0fa6278a6ace6f0 (diff)
Add example for bridge/tap network setup using systemd-networkd
Diffstat (limited to 'etc/private/systemd-networkd/30-br0-dhcp.network')
-rw-r--r--etc/private/systemd-networkd/30-br0-dhcp.network14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/private/systemd-networkd/30-br0-dhcp.network b/etc/private/systemd-networkd/30-br0-dhcp.network
new file mode 100644
index 0000000..864fe3d
--- /dev/null
+++ b/etc/private/systemd-networkd/30-br0-dhcp.network
@@ -0,0 +1,14 @@
+# Configure the bridge with IPv4 DHCP.
+
+[Match]
+Name=br0
+
+[Network]
+DHCP=ipv4
+IPForward=yes
+
+[DHCPv4]
+#UseHostname=yes
+
+[Link]
+RequiredForOnline=yes