aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/space_server/files/networkd/10-bond0.netdev11
-rw-r--r--roles/space_server/files/networkd/10-bond0.network (renamed from roles/space_server/files/networkd/10-lan.network)3
-rw-r--r--roles/space_server/files/networkd/10-enp1s0.network (renamed from roles/space_server/files/networkd/10-wan.link)4
-rw-r--r--roles/space_server/files/networkd/10-enp2s0.network (renamed from roles/space_server/files/networkd/10-lan.link)4
-rw-r--r--roles/space_server/files/networkd/10-enp3s0.network (renamed from roles/space_server/files/networkd/10-mgt.link)4
-rw-r--r--roles/space_server/files/networkd/10-mgt.network23
-rw-r--r--roles/space_server/files/networkd/10-wan.netdev6
-rw-r--r--roles/space_server/files/networkd/10-wan.network3
-rw-r--r--roles/space_server/files/nftables.service2
9 files changed, 30 insertions, 30 deletions
diff --git a/roles/space_server/files/networkd/10-bond0.netdev b/roles/space_server/files/networkd/10-bond0.netdev
new file mode 100644
index 0000000..824f3f6
--- /dev/null
+++ b/roles/space_server/files/networkd/10-bond0.netdev
@@ -0,0 +1,11 @@
+[NetDev]
+Name=bond0
+Kind=bond
+
+[Bond]
+Mode=802.3ad
+LACPTransmitRate=fast
+MIIMonitorSec=1s
+UpDelaySec=2s
+DownDelaySec=8s
+TransmitHashPolicy=layer2+3
diff --git a/roles/space_server/files/networkd/10-lan.network b/roles/space_server/files/networkd/10-bond0.network
index 1221be8..39695a4 100644
--- a/roles/space_server/files/networkd/10-lan.network
+++ b/roles/space_server/files/networkd/10-bond0.network
@@ -1,5 +1,5 @@
[Match]
-Name=lan
+Name=bond0
[Link]
ARP=no
@@ -11,6 +11,7 @@ IPv6AcceptRA=no
LinkLocalAddressing=no
LLMNR=no
MulticastDNS=no
+VLAN=wan
VLAN=lan10
VLAN=lan11
VLAN=lan12
diff --git a/roles/space_server/files/networkd/10-wan.link b/roles/space_server/files/networkd/10-enp1s0.network
index 47a7270..1395f3a 100644
--- a/roles/space_server/files/networkd/10-wan.link
+++ b/roles/space_server/files/networkd/10-enp1s0.network
@@ -1,5 +1,5 @@
[Match]
Path=pci-0000:01:00.0
-[Link]
-Name=wan
+[Network]
+Bond=bond0
diff --git a/roles/space_server/files/networkd/10-lan.link b/roles/space_server/files/networkd/10-enp2s0.network
index 996917e..9a987a6 100644
--- a/roles/space_server/files/networkd/10-lan.link
+++ b/roles/space_server/files/networkd/10-enp2s0.network
@@ -1,5 +1,5 @@
[Match]
Path=pci-0000:02:00.0
-[Link]
-Name=lan
+[Network]
+Bond=bond0
diff --git a/roles/space_server/files/networkd/10-mgt.link b/roles/space_server/files/networkd/10-enp3s0.network
index 715f409..a07d57a 100644
--- a/roles/space_server/files/networkd/10-mgt.link
+++ b/roles/space_server/files/networkd/10-enp3s0.network
@@ -1,5 +1,5 @@
[Match]
Path=pci-0000:03:00.0
-[Link]
-Name=mgt
+[Network]
+Bond=bond0
diff --git a/roles/space_server/files/networkd/10-mgt.network b/roles/space_server/files/networkd/10-mgt.network
deleted file mode 100644
index d2b34b9..0000000
--- a/roles/space_server/files/networkd/10-mgt.network
+++ /dev/null
@@ -1,23 +0,0 @@
-[Match]
-Name=mgt
-
-[Link]
-RequiredForOnline=no
-
-[Network]
-DHCP=no
-IPv6AcceptRA=no
-LinkLocalAddressing=no
-Address=192.168.112.1/24
-IPForward=ipv4
-DHCPServer=yes
-LLMNR=yes
-MulticastDNS=yes
-LLDP=yes
-EmitLLDP=yes
-
-[DHCPServer]
-EmitDNS=yes
-DNS=185.38.175.0
-EmitNTP=no
-EmitTimezone=yes
diff --git a/roles/space_server/files/networkd/10-wan.netdev b/roles/space_server/files/networkd/10-wan.netdev
new file mode 100644
index 0000000..ea4d8b4
--- /dev/null
+++ b/roles/space_server/files/networkd/10-wan.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=wan
+Kind=vlan
+
+[VLAN]
+Id=5
diff --git a/roles/space_server/files/networkd/10-wan.network b/roles/space_server/files/networkd/10-wan.network
index 36b2230..095bcfe 100644
--- a/roles/space_server/files/networkd/10-wan.network
+++ b/roles/space_server/files/networkd/10-wan.network
@@ -1,6 +1,9 @@
[Match]
Name=wan
+[Link]
+ARP=yes
+
[Network]
DHCP=no
IPv6AcceptRA=no
diff --git a/roles/space_server/files/nftables.service b/roles/space_server/files/nftables.service
index 54efd9c..2bd976f 100644
--- a/roles/space_server/files/nftables.service
+++ b/roles/space_server/files/nftables.service
@@ -1,6 +1,7 @@
[Unit]
Description=Netfilter Tables
Documentation=man:nft(8)
+Requires=sys-devices-virtual-net-wan.device
Requires=sys-devices-virtual-net-lan10.device
Requires=sys-devices-virtual-net-lan11.device
Requires=sys-devices-virtual-net-lan12.device
@@ -10,6 +11,7 @@ Requires=sys-devices-virtual-net-lan15.device
Requires=sys-devices-virtual-net-lan20.device
Requires=sys-devices-virtual-net-lan21.device
Requires=sys-devices-virtual-net-nat64.device
+After=sys-devices-virtual-net-wan.device
After=sys-devices-virtual-net-lan10.device
After=sys-devices-virtual-net-lan11.device
After=sys-devices-virtual-net-lan12.device