aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/files/networkd
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-07 16:27:49 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-12 14:56:32 +0100
commite8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 (patch)
tree41ba5163cf6f110521f2ebc9035f77d2754796a0 /roles/space_server/files/networkd
downloadlabitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.gz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.xz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.zip
initial commit
Diffstat (limited to 'roles/space_server/files/networkd')
-rw-r--r--roles/space_server/files/networkd/network/10-lan.link5
-rw-r--r--roles/space_server/files/networkd/network/10-lan.network19
-rw-r--r--roles/space_server/files/networkd/network/10-lan10.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan10.network12
-rw-r--r--roles/space_server/files/networkd/network/10-lan11.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan11.network17
-rw-r--r--roles/space_server/files/networkd/network/10-lan12.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan12.network17
-rw-r--r--roles/space_server/files/networkd/network/10-lan13.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan13.network13
-rw-r--r--roles/space_server/files/networkd/network/10-lan14.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan14.network17
-rw-r--r--roles/space_server/files/networkd/network/10-lan15.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan15.network12
-rw-r--r--roles/space_server/files/networkd/network/10-lan20.netdev6
-rw-r--r--roles/space_server/files/networkd/network/10-lan20.network17
-rw-r--r--roles/space_server/files/networkd/network/10-lo.network6
-rw-r--r--roles/space_server/files/networkd/network/10-mgt.link5
-rw-r--r--roles/space_server/files/networkd/network/10-mgt.network19
-rw-r--r--roles/space_server/files/networkd/network/10-wan.link5
-rw-r--r--roles/space_server/files/networkd/network/10-wan.network15
-rw-r--r--roles/space_server/files/networkd/systemd-networkd-wait-online.service23
22 files changed, 244 insertions, 0 deletions
diff --git a/roles/space_server/files/networkd/network/10-lan.link b/roles/space_server/files/networkd/network/10-lan.link
new file mode 100644
index 0000000..996917e
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:02:00.0
+
+[Link]
+Name=lan
diff --git a/roles/space_server/files/networkd/network/10-lan.network b/roles/space_server/files/networkd/network/10-lan.network
new file mode 100644
index 0000000..08b85aa
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan.network
@@ -0,0 +1,19 @@
+[Match]
+Name=lan
+
+#[Link]
+#ARP=no
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+LinkLocalAddressing=no
+LLMNR=no
+MulticastDNS=no
+VLAN=lan10
+VLAN=lan11
+VLAN=lan12
+VLAN=lan13
+VLAN=lan14
+VLAN=lan15
+VLAN=lan20
diff --git a/roles/space_server/files/networkd/network/10-lan10.netdev b/roles/space_server/files/networkd/network/10-lan10.netdev
new file mode 100644
index 0000000..655859d
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan10.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan10
+Kind=vlan
+
+[VLAN]
+Id=10
diff --git a/roles/space_server/files/networkd/network/10-lan10.network b/roles/space_server/files/networkd/network/10-lan10.network
new file mode 100644
index 0000000..18931e0
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan10.network
@@ -0,0 +1,12 @@
+[Match]
+Name=lan10
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+LinkLocalAddressing=no
+Address=10.42.0.1/24
+IPForward=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
diff --git a/roles/space_server/files/networkd/network/10-lan11.netdev b/roles/space_server/files/networkd/network/10-lan11.netdev
new file mode 100644
index 0000000..b99b50b
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan11.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan11
+Kind=vlan
+
+[VLAN]
+Id=11
diff --git a/roles/space_server/files/networkd/network/10-lan11.network b/roles/space_server/files/networkd/network/10-lan11.network
new file mode 100644
index 0000000..744eb3c
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan11.network
@@ -0,0 +1,17 @@
+[Match]
+Name=lan11
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=10.42.1.1/24
+#Address=2a01:4260:1ab:b::1/64
+IPForward=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
+
+[Route]
+Destination=2a01:4260:1ab:b::/64
+PreferredSource=2a01:4260:1ab::
diff --git a/roles/space_server/files/networkd/network/10-lan12.netdev b/roles/space_server/files/networkd/network/10-lan12.netdev
new file mode 100644
index 0000000..7229fa1
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan12.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan12
+Kind=vlan
+
+[VLAN]
+Id=12
diff --git a/roles/space_server/files/networkd/network/10-lan12.network b/roles/space_server/files/networkd/network/10-lan12.network
new file mode 100644
index 0000000..23888bc
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan12.network
@@ -0,0 +1,17 @@
+[Match]
+Name=lan12
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=10.42.2.1/24
+#Address=2a01:4260:1ab:c::1/64
+IPForward=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
+
+[Route]
+Destination=2a01:4260:1ab:c::/64
+PreferredSource=2a01:4260:1ab::
diff --git a/roles/space_server/files/networkd/network/10-lan13.netdev b/roles/space_server/files/networkd/network/10-lan13.netdev
new file mode 100644
index 0000000..ab05488
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan13.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan13
+Kind=vlan
+
+[VLAN]
+Id=13
diff --git a/roles/space_server/files/networkd/network/10-lan13.network b/roles/space_server/files/networkd/network/10-lan13.network
new file mode 100644
index 0000000..6151c0e
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan13.network
@@ -0,0 +1,13 @@
+[Match]
+Name=lan13
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+LinkLocalAddressing=no
+Address=10.42.3.1/24
+IPForward=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
diff --git a/roles/space_server/files/networkd/network/10-lan14.netdev b/roles/space_server/files/networkd/network/10-lan14.netdev
new file mode 100644
index 0000000..1956a88
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan14.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan14
+Kind=vlan
+
+[VLAN]
+Id=14
diff --git a/roles/space_server/files/networkd/network/10-lan14.network b/roles/space_server/files/networkd/network/10-lan14.network
new file mode 100644
index 0000000..b2ec991
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan14.network
@@ -0,0 +1,17 @@
+[Match]
+Name=lan14
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=10.42.4.1/24
+#Address=2a01:4260:1ab:e::1/64
+IPForward=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
+
+[Route]
+Destination=2a01:4260:1ab:e::/64
+PreferredSource=2a01:4260:1ab::
diff --git a/roles/space_server/files/networkd/network/10-lan15.netdev b/roles/space_server/files/networkd/network/10-lan15.netdev
new file mode 100644
index 0000000..c31a650
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan15.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan15
+Kind=vlan
+
+[VLAN]
+Id=15
diff --git a/roles/space_server/files/networkd/network/10-lan15.network b/roles/space_server/files/networkd/network/10-lan15.network
new file mode 100644
index 0000000..7d1d7a7
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan15.network
@@ -0,0 +1,12 @@
+[Match]
+Name=lan15
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=2a01:4260:1ab:f::1/64
+IPForward=ipv6
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
diff --git a/roles/space_server/files/networkd/network/10-lan20.netdev b/roles/space_server/files/networkd/network/10-lan20.netdev
new file mode 100644
index 0000000..2b2e0d8
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan20.netdev
@@ -0,0 +1,6 @@
+[NetDev]
+Name=lan20
+Kind=vlan
+
+[VLAN]
+Id=20
diff --git a/roles/space_server/files/networkd/network/10-lan20.network b/roles/space_server/files/networkd/network/10-lan20.network
new file mode 100644
index 0000000..a47e0cb
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lan20.network
@@ -0,0 +1,17 @@
+[Match]
+Name=lan20
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=185.38.175.65/26
+Address=2a01:4260:1ab:20::1/64
+IPForward=yes
+LLMNR=no
+MulticastDNS=no
+LLDP=yes
+EmitLLDP=no
+
+[Route]
+Destination=2a01:4260:1ab::cafe/128
+Gateway=2a01:4260:1ab:20::5
diff --git a/roles/space_server/files/networkd/network/10-lo.network b/roles/space_server/files/networkd/network/10-lo.network
new file mode 100644
index 0000000..d97da93
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-lo.network
@@ -0,0 +1,6 @@
+[Match]
+Name=lo
+
+[Network]
+Address=185.38.175.0/32
+Address=2a01:4260:1ab::/128
diff --git a/roles/space_server/files/networkd/network/10-mgt.link b/roles/space_server/files/networkd/network/10-mgt.link
new file mode 100644
index 0000000..715f409
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-mgt.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:03:00.0
+
+[Link]
+Name=mgt
diff --git a/roles/space_server/files/networkd/network/10-mgt.network b/roles/space_server/files/networkd/network/10-mgt.network
new file mode 100644
index 0000000..9da626e
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-mgt.network
@@ -0,0 +1,19 @@
+[Match]
+Name=mgt
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=192.168.112.1/24
+#IPForward=ipv4
+DHCPServer=yes
+LLMNR=yes
+MulticastDNS=yes
+LLDP=yes
+EmitLLDP=yes
+
+[DHCPServer]
+DNS=192.168.112.1
+EmitDNS=yes
+EmitNTP=no
+EmitTimezone=yes
diff --git a/roles/space_server/files/networkd/network/10-wan.link b/roles/space_server/files/networkd/network/10-wan.link
new file mode 100644
index 0000000..47a7270
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-wan.link
@@ -0,0 +1,5 @@
+[Match]
+Path=pci-0000:01:00.0
+
+[Link]
+Name=wan
diff --git a/roles/space_server/files/networkd/network/10-wan.network b/roles/space_server/files/networkd/network/10-wan.network
new file mode 100644
index 0000000..4634150
--- /dev/null
+++ b/roles/space_server/files/networkd/network/10-wan.network
@@ -0,0 +1,15 @@
+[Match]
+Name=wan
+
+[Network]
+DHCP=no
+IPv6AcceptRA=no
+Address=193.106.167.46/29
+Gateway=193.106.167.42
+Address=2a03:5440:1:2935:1ab::3/120
+Gateway=2a03:5440:1:2935:1ab::2
+IPForward=yes
+LLMNR=no
+MulticastDNS=no
+LLDP=yes
+EmitLLDP=no
diff --git a/roles/space_server/files/networkd/systemd-networkd-wait-online.service b/roles/space_server/files/networkd/systemd-networkd-wait-online.service
new file mode 100644
index 0000000..0f1e85a
--- /dev/null
+++ b/roles/space_server/files/networkd/systemd-networkd-wait-online.service
@@ -0,0 +1,23 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Wait for Network to be Configured
+Documentation=man:systemd-networkd-wait-online.service(8)
+DefaultDependencies=no
+Conflicts=shutdown.target
+Requisite=systemd-networkd.service
+After=systemd-networkd.service
+Before=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --ignore lan --ignore mgt
+RemainAfterExit=yes
+
+[Install]
+WantedBy=network-online.target