ansible/roles/mesh-interfaces/templates/mesh.conf.j2

39 lines
927 B
Plaintext
Raw Normal View History

2017-03-27 17:40:34 +02:00
# {{ ansible_managed }}
# br-{{ site_code }}
auto br-{{ site_code }}
iface br-{{ site_code }}
mtu 1500
#
#bridge-fd 0
2017-03-27 17:40:34 +02:00
bridge-ports bat-{{ site_code }}
bridge-stp no
#
address {{ batman_ipv4 }}
address {{ batman_ipv6 }}
2018-01-25 22:38:19 +01:00
{% if global_ipv6 is defined %}
address {{ global_ipv6 }}
{% endif %}
2017-03-27 17:40:34 +02:00
# bat-{{ site_code }}
auto bat-{{ site_code }}
iface bat-{{ site_code }}
hwaddress f2:00:90:00:{{ gateway_id }}:20
mtu 1500
#
2017-03-27 17:40:34 +02:00
batman-hop-penalty 5
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 .*_.*
#
2017-06-15 16:48:07 +02:00
up /usr/sbin/batctl -m bat-{{ site_code }} gw_mode server 100000 100000
2018-01-21 16:55:09 +01:00
up /usr/sbin/batctl -m bat-{{ site_code }} it 5000
2018-07-22 00:44:38 +02:00
up /usr/sbin/batctl -m bat-{{ site_code }} multicast_mode 0
2018-02-04 18:32:45 +01:00
up /usr/sbin/batctl -m bat-{{ site_code }} ra {{ batman_algo }}
2017-03-27 17:40:34 +02:00
# dmy-{{ site_code }}
auto dmy-{{ site_code }}
iface dmy-{{ site_code }}
hwaddress f2:00:90:00:{{ gateway_id }}:00
link-type dummy
mtu 1560