Skip to content

Commit 1dce41a

Browse files
committed
let batman with routing algo BATMAN_V handle multicast
1 parent aecb512 commit 1dce41a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

roles/batman-adv-interface/templates/interfaces

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ auto {{ batman_dummy_interface }}
44
iface {{ batman_dummy_interface }} inet manual
55
pre-up ip link add name $IFACE type dummy
66
up ip link set $IFACE up
7+
{% if batman_routing_algo == 'BATMAN_V' %}
8+
# let batman handle the multicast
9+
# https://gluon.readthedocs.io/en/latest/package/gluon-mesh-batman-adv.html
10+
post-up bash -c 'echo 2 > /sys/class/net/{{ batman_dummy_interface }}/brport/multicast_router'
11+
{% endif %}
712
down ip link set $IFACE down
813
post-down ip link del $IFACE
914

roles/main-bridge/templates/interfaces

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ iface br-{{ site_code }} inet static
2525
# tune ARP and IPv6 neighbor soolicitation
2626
post-up sysctl -p /etc/sysctl.d/main-bridge-ip-neigh-tuning.conf
2727
# increase multicast table
28-
post-up bash -c 'echo 2048 > /sys/class/net/br-ffhb/bridge/hash_max'
28+
{% if batman_routing_algo is defined and batman_routing_algo == 'BATMAN_V' %}
29+
# let batman handle the multicast
30+
# https://gluon.readthedocs.io/en/latest/package/gluon-mesh-batman-adv.html
31+
post-up bash -c 'echo 2 > /sys/class/net/br-{{ site_code }}/brport/multicast_router'
32+
{% endif %}
33+
post-up bash -c 'echo 2048 > /sys/class/net/br-{{ site_code }}/bridge/hash_max'
2934

3035
iface br-{{ site_code }} inet6 static
3136
address {{ batman_ipv6_local.address }}

0 commit comments

Comments
 (0)