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
|
2018-02-28 15:20:51 +01:00
|
|
|
- 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`
|
2018-02-28 15:20:51 +01:00
|
|
|
|
|
|
|
```
|
2017-09-06 11:17:38 +02:00
|
|
|
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
|
|
|
|
2018-02-28 15:20:51 +01:00
|
|
|
```
|
|
|
|
|
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-11-06 21:24:56 +01:00
|
|
|
xxvpn-$mtu prefix: `02:2x` # x = ID der fastd-Instanz
|
|
|
|
xxigvpn-$mtu prefix: `02:3x` # x = ID der fastd-Instanz
|