Browse Source

Create lan.network

Håvard O. Nordstrand 5 years ago
parent
commit
91cfff1e64
1 changed files with 22 additions and 0 deletions
  1. 22 0
      config/linux-server/files/networkd/lan.network

+ 22 - 0
config/linux-server/files/networkd/lan.network

@@ -0,0 +1,22 @@
+[Match]
+Name=en<...>
+
+# For DHCP/SLAAC
+[Network]
+# DHCPv4
+DHCP=ipv4
+# IPv6 SLAAC, will enable DHCPv6 if necessary
+IPv6AcceptRA=yes
+
+# For static IP addresses
+#[Network]
+## No DHCPv4 or DHCPv6
+#DHCP=no
+## No SLAAC or DHCPv6
+#IPv6AcceptRA=no
+#Address=192.168.0.10/24
+#Gateway=192.168.0.1
+#DNS=192.168.0.1
+#Address=fd00::a/64
+#Gateway=fd00::1
+#DNS=fd00::1