File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
batman-adv-interface/templates Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ auto {{ batman_dummy_interface }}
44iface {{ 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
Original file line number Diff line number Diff 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
3035iface br-{{ site_code }} inet6 static
3136 address {{ batman_ipv6_local.address }}
You can’t perform that action at this time.
0 commit comments