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
|
|
|
|
2018-07-25 14:08:45 +02:00
|
|
|
Es wird zwischen node- und backbone-Instanzen unterschieden.
|
2017-10-07 00:57:35 +02:00
|
|
|
|
|
|
|
## 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"
|
2018-07-25 14:08:45 +02:00
|
|
|
- Backbone-Interfaces: _$mesh.id_ + 'ig' + vpn + '-' + _$mesh.fastd.backbone.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
|
|
|
|
...
|
2018-07-25 14:08:45 +02:00
|
|
|
backbone:
|
2017-10-08 09:44:42 +02:00
|
|
|
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`
|
|
|
|
|
2019-03-02 18:10:48 +01:00
|
|
|
- Host Variable `server_type`
|
2018-09-12 16:30:28 +02:00
|
|
|
|
2017-09-06 11:17:38 +02:00
|
|
|
## MAC-Adressen
|
|
|
|
|
2018-09-12 16:30:28 +02:00
|
|
|
Die MAC-Adressen der Interfaces werden aus dem IPv4-Subnetz sowie der `magic`-Nummer des Hosts berechnet. x = ID der fastd-Instanz.
|
2017-09-06 11:17:38 +02:00
|
|
|
|
2018-09-12 16:30:28 +02:00
|
|
|
- xxvpn-$mtu prefix: `02:2x`
|
|
|
|
- xxigvpn-$mtu prefix: `02:3x`
|