2017-09-06 11:17:38 +02:00
|
|
|
|
# Ansible role network-fastd
|
|
|
|
|
|
2017-10-07 00:57:35 +02:00
|
|
|
|
Diese Ansible role konfiguriert Netzwerk Interfaces für die definierten fastd Instanzen.
|
2017-09-06 11:17:38 +02:00
|
|
|
|
|
2017-10-07 00:57:35 +02:00
|
|
|
|
Es wird zwischen node- und intragate-Instanzen unterschieden.
|
|
|
|
|
|
|
|
|
|
## Interface-Benamung
|
|
|
|
|
Node-Interfaces: $mesh.id + VPN + '-' + $mesh.fastd.nodes.instances.xx.mtu, z.B. "mzVPN-1312"
|
|
|
|
|
Intragate-Interfaces: $mesh.id + 'ig' + VPN + '-' + $mesh.fastd.intragate.instances.xx.mtu, z.B. "mzigVPN-1312"
|
2017-09-06 11:17:38 +02:00
|
|
|
|
|
|
|
|
|
## Benötigte Variablen
|
|
|
|
|
|
|
|
|
|
- Dictionary `meshes`
|
|
|
|
|
´´´
|
|
|
|
|
meshes:
|
2017-10-06 22:58:00 +02:00
|
|
|
|
- id: xx
|
2017-09-06 11:17:38 +02:00
|
|
|
|
...
|
|
|
|
|
ipv4_network:
|
|
|
|
|
...
|
2017-10-08 09:44:42 +02:00
|
|
|
|
fastd:
|
|
|
|
|
nodes:
|
|
|
|
|
instances:
|
|
|
|
|
- id: 0 # integer
|
|
|
|
|
mtu: # integer
|
|
|
|
|
...
|
|
|
|
|
intragate:
|
|
|
|
|
instances:
|
|
|
|
|
- id: 0 # integer
|
|
|
|
|
mtu: # integer
|
|
|
|
|
...
|
2017-09-06 11:17:38 +02:00
|
|
|
|
|
|
|
|
|
´´´
|
|
|
|
|
- Host Variable `magic`
|
|
|
|
|
|
|
|
|
|
## MAC-Adressen
|
|
|
|
|
|
2017-10-07 00:57:35 +02:00
|
|
|
|
Die MAC-Adressen der Interfaces werden aus dem IPv4-Subnetz sowie der `magic`-Nummer des Hosts berechnet.
|
2017-09-06 11:17:38 +02:00
|
|
|
|
|
2017-10-07 00:57:35 +02:00
|
|
|
|
xxVPN-$mtu prefix: `02:2x` # x = ID der fastd-Instanz
|
|
|
|
|
xxigVPN-$mtu prefix: `02:3x` # x = ID der fastd-Instanz
|