Batman-Interface
This commit is contained in:
parent
5e926d4fb1
commit
a0d4c074c7
26
etc/network/interfaces.d/bat0
Normal file
26
etc/network/interfaces.d/bat0
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
#Freifunk Config
|
||||
# device: bat0
|
||||
iface bat0 inet manual
|
||||
post-up ifconfig $IFACE up
|
||||
##Einschalten post-up:
|
||||
# IP des Gateways am B.A.T.M.A.N interface:
|
||||
post-up ip addr add 10.50.96.1/21 dev $IFACE
|
||||
# Regeln, wann die fff Routing-Tabelle benutzt werden soll:
|
||||
post-up ip rule add iif $IFACE table fff
|
||||
post-up ip rule add from 10.0.0.0/8 table fff
|
||||
post-up ip rule add to 10.0.0.0/8 table fff
|
||||
# Route in die Aschaffenburger Hood:
|
||||
# post-up ip route add 10.50.96.0/21 dev $IFACE table fff
|
||||
post-up ip route replace 10.50.96.0/21 dev $IFACE proto static table fff
|
||||
# Start des DHCP Servers:
|
||||
post-up invoke-rc.d isc-dhcp-server restart
|
||||
|
||||
##Ausschalten post-down:
|
||||
# Loeschen von oben definieren Routen, Regeln und Interface:
|
||||
post-down ip route del 10.50.96.0/21 dev $IFACE table fff
|
||||
post-down ip rule del from 10.0.0.0/8 table fff
|
||||
post-down ip rule del to 10.0.0.0/8 table fff
|
||||
post-down ip rule del iif $IFACE table fff
|
||||
post-down ifconfig $IFACE down
|
||||
|
Loading…
Reference in New Issue
Block a user