From 2bebc9f3608bc622fb847def97c3a3c2b8f04d84 Mon Sep 17 00:00:00 2001 From: "Daniel A. Maierhofer" Date: Mon, 29 Oct 2018 23:16:47 +0100 Subject: [PATCH] Set static global IPv4 for ariane --- host_vars/ariane | 28 ++++++++++++++++++++++------ templates/interfaces_ariane.j2 | 20 +++++++++++++------- 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/host_vars/ariane b/host_vars/ariane index 4212874..865516b 100644 --- a/host_vars/ariane +++ b/host_vars/ariane @@ -9,13 +9,29 @@ common_iptables_v6: "iptables_ariane_v6.j2" lxc: containers: + - name: sputnik + revision: "01" + template: voidlinux + config: + - lxc.network.type = veth + - lxc.network.hwaddr = 2e:6d:b6:07:13:01 + - lxc.network.link = br1 + - lxc.network.flags = up + + - lxc.network.1.type = veth + - lxc.network.1.hwaddr = 00:50:fc:ce:1b:c3 + - lxc.network.1.link = br0 + - lxc.network.1.flags = up + - lxc.network.1.ipv4 = 128.131.95.206/24 + - lxc.network.1.ipv4.gateway = 128.131.95.1 + - name: laika revision: "01" template: debian config: - lxc.network.type = veth - lxc.network.hwaddr = 1c:bd:b9:7f:fe:a4 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up - name: betam @@ -24,7 +40,7 @@ lxc: config: - lxc.network.type = veth - lxc.network.hwaddr = 2e:6d:b6:07:14:01 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up - lxc.cgroup.devices.allow = c 188:0 rwm @@ -34,7 +50,7 @@ lxc: config: - lxc.network.type = veth - lxc.network.hwaddr = 2e:6d:b6:07:15:01 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up - lxc.pts = 6 @@ -44,7 +60,7 @@ lxc: config: - lxc.network.type = veth - lxc.network.hwaddr = 2e:6d:b6:07:19:01 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up - lxc.pts = 6 - lxc.mount.entry = /zv1/daten/Scans /var/lib/lxc/lxc-progress-01/rootfs/mnt/scans none bind,create=dir 0 0 @@ -55,7 +71,7 @@ lxc: config: - lxc.network.type = veth - lxc.network.hwaddr = 2e:6d:b6:07:17:01 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up - lxc.pts = 6 - lxc.mount.entry = /zv1/sojus /var/lib/lxc/lxc-sojus-01/rootfs/home/backup/repos none bind,create=dir 0 0 @@ -66,7 +82,7 @@ lxc: config: - lxc.network.type = veth - lxc.network.hwaddr = 2e:6d:b6:07:16:01 - - lxc.network.link = br0 + - lxc.network.link = br1 - lxc.network.flags = up common_zfs: True diff --git a/templates/interfaces_ariane.j2 b/templates/interfaces_ariane.j2 index 95cdc13..c23124f 100644 --- a/templates/interfaces_ariane.j2 +++ b/templates/interfaces_ariane.j2 @@ -2,16 +2,22 @@ source /etc/network/interfaces.d/* -auto lo +auto lo br0 br1 iface lo inet loopback -allow-hotplug enp8s0 -iface enp8s0 inet dhcp +allow-hotplug enp8s0 enp10s0 -auto br0 -iface br0 inet manual - bridge_ports enp9s0 +iface br0 inet static + bridge_ports enp10s0 bridge_fd 0 bridge_maxwait 0 + address 128.131.95.207 + netmask 255.255.255.0 + network 128.131.95.0 + broadcast 128.131.95.255 + gateway 128.131.95.1 -dns-nameservers 192.168.86.1 +iface br1 inet dhcp + bridge_ports enp8s0 + bridge_fd 0 + bridge_maxwait 0