Hi Jens
The script i just used is:
# add one if per 3 second and give output, also monitor dmesg
dmesg -w &
for i in `seq 1 255`; do
# one interface
ip link add gre$i type gretap local 192.168.99.1 remote 192.168.3.$i ttl
255 dev lan1
ip link set up dev gre$i
batctl if add gre$i
# another inf
ip link add grex$i type gretap local 192.168.99.1 remote 192.168.4.$i ttl
255 dev lan1
ip link set up dev grex$i
batctl if add grex$i
echo -n $(uptime|cut -d"," -f4-) $(ifconfig lan1|grep TX\ p) $i
sleep 3
done
So this adds two interfaces per 3 seconds to bat0.
root@wrt1900ac:~# batctl if
grex122: active
gre123: active
grex123: active
gre124: active
grex124: active
gre125: active
grex125: active
gre126: active
...
grex119: active
gre120: active
grex120: active
gre121: active
grex121: active
gre122: active
root@wrt1900ac:~# batctl if | wc
344 688 5116
So i have 344 interfaces in the mesh. No memory problems reported.
Andrew