interfaces: set gw mode more reliably
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e2ba2e8ca5
commit
ac79d8f35c
@ -21,14 +21,15 @@ iface bat-{{ site_code }}
|
|||||||
hwaddress f2:00:90:00:{{ gateway_id }}:20
|
hwaddress f2:00:90:00:{{ gateway_id }}:20
|
||||||
mtu 1500
|
mtu 1500
|
||||||
#
|
#
|
||||||
batman-gw-mode server
|
|
||||||
batman-hop-penalty 5
|
batman-hop-penalty 5
|
||||||
batman-ifaces dmy-{{ site_code }}
|
batman-ifaces dmy-{{ site_code }}
|
||||||
batman-ifaces-ignore-regex .*_.*
|
batman-ifaces-ignore-regex .*_.*
|
||||||
batman-multicast-mode disabled
|
batman-multicast-mode disabled
|
||||||
batman-routing-algo {{ batman_algo }}
|
batman-routing-algo {{ batman_algo }}
|
||||||
#
|
#
|
||||||
|
# batman-gw-mode option seems non reliable
|
||||||
post-up /usr/sbin/batctl -m bat-{{ site_code }} it 5000
|
post-up /usr/sbin/batctl -m bat-{{ site_code }} it 5000
|
||||||
|
post-up /usr/sbin/batctl -m bat-{{ site_code }} gw server
|
||||||
post-up echo 2 > /sys/class/net/bat-{{ site_code }}/brport/multicast_router
|
post-up echo 2 > /sys/class/net/bat-{{ site_code }}/brport/multicast_router
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user