2017-03-27 17:40:34 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
# br-{{ site_code }}
|
|
|
|
auto br-{{ site_code }}
|
|
|
|
iface br-{{ site_code }}
|
2017-11-09 21:05:47 +01:00
|
|
|
mtu 1500
|
|
|
|
#
|
2018-01-16 23:28:14 +01:00
|
|
|
#bridge-fd 0
|
2017-03-27 17:40:34 +02:00
|
|
|
bridge-ports bat-{{ site_code }}
|
|
|
|
bridge-stp no
|
|
|
|
#
|
2017-11-09 21:05:47 +01:00
|
|
|
address {{ batman_ipv4 }}
|
|
|
|
address {{ batman_ipv6 }}
|
2019-12-16 22:32:37 +01:00
|
|
|
{% if global_ipv6 is defined %}
|
2018-01-25 22:38:19 +01:00
|
|
|
address {{ global_ipv6 }}
|
2019-12-16 22:32:37 +01:00
|
|
|
{% endif %}
|
2021-09-27 18:14:18 +02:00
|
|
|
#
|
|
|
|
post-up echo 2 > /sys/class/net/bat-{{ site_code }}/brport/multicast_router
|
2017-03-27 17:40:34 +02:00
|
|
|
|
|
|
|
# bat-{{ site_code }}
|
|
|
|
auto bat-{{ site_code }}
|
|
|
|
iface bat-{{ site_code }}
|
2017-11-09 21:05:47 +01:00
|
|
|
hwaddress f2:00:90:00:{{ gateway_id }}:20
|
|
|
|
mtu 1500
|
|
|
|
#
|
2018-01-21 20:46:21 +01:00
|
|
|
batman-ifaces dmy-{{ site_code }}
|
2017-03-27 17:40:34 +02:00
|
|
|
batman-ifaces-ignore-regex .*_.*
|
2020-11-23 19:03:13 +01:00
|
|
|
batman-routing-algo {{ batman_algo }}
|
2017-03-27 17:40:34 +02:00
|
|
|
#
|
2021-09-27 18:14:18 +02:00
|
|
|
post-up /usr/sbin/batctl meshif bat-{{ site_code }} gw server
|
|
|
|
post-up /usr/sbin/batctl meshif bat-{{ site_code }} hp 5
|
|
|
|
post-up /usr/sbin/batctl meshif bat-{{ site_code }} it 5000
|
|
|
|
post-up /usr/sbin/batctl meshif bat-{{ site_code }} mff 1
|
2019-12-15 23:07:18 +01:00
|
|
|
|
2017-03-27 17:40:34 +02:00
|
|
|
|
|
|
|
# dmy-{{ site_code }}
|
|
|
|
auto dmy-{{ site_code }}
|
|
|
|
iface dmy-{{ site_code }}
|
2017-11-09 21:05:47 +01:00
|
|
|
hwaddress f2:00:90:00:{{ gateway_id }}:00
|
|
|
|
link-type dummy
|
|
|
|
mtu 1560
|