ansible.fftdf.supernode/files/l2tp_backbone.sh.exit.j2

35 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/bin/sh
2016-06-11 11:57:07 +00:00
# Version 9
sleep 60
batctl=/usr/local/sbin/batctl
ip=/sbin/ip
2019-02-09 11:38:48 +00:00
communitymacaddress="{{ communitymac }}"
2016-06-11 11:57:07 +00:00
localserver=$(/bin/hostname)
2019-02-09 11:38:48 +00:00
communityname={{ communityname }}
2016-06-11 11:57:07 +00:00
# Rest Starten
$ip link set address $communitymacaddress:0${localserver#$communityname} dev bat0
$ip link set up dev bat0
2016-05-17 21:42:37 +00:00
$ip addr add {{ sn_mesh_IPv4 }}/19 broadcast {{ sn_mesh_IPv4_brcast }} dev bat0
$ip -6 addr add {{ sn_mesh_IPv6 }}/64 dev bat0
2016-05-26 20:38:20 +00:00
$ip route add 10.188.0.0/16 via {{ sn_mesh_IPv4_xfer }} table 42
$ip route add 10.188.0.0/16 via {{ sn_mesh_IPv4_xfer }}
2016-07-02 21:11:08 +00:00
$ip -6 route add 2a03:2260:121:4000::/52 via {{ sn_mesh_IPv6_xfer }} table 42
$ip -6 route add 2a03:2260:121:5000::/52 via {{ sn_mesh_IPv6_xfer }} table 42
$ip -6 route add 2a03:2260:121:6000::/52 via {{ sn_mesh_IPv6_xfer }} table 42
$ip -6 route add 2a03:2260:121:7000::/52 via {{ sn_mesh_IPv6_xfer }} table 42
/usr/bin/killall batadv-vis
/bin/sleep 15
$batadv -i bat0 -s > /dev/null 2>&1 &
2016-07-20 19:14:37 +00:00
/bin/sleep 15
/usr/sbin/service tunneldigger restart
/usr/sbin/service bind9 restart
/usr/sbin/service bird restart
/usr/sbin/service bird6 restart
/usr/sbin/service isc-dhcp-server restart
/usr/sbin/service radvd restart
2016-07-29 17:01:38 +00:00
$batctl gw server 100Mbit/100Mbit
2016-07-20 19:14:37 +00:00