Hi,
The problem is, that I have a vpn network on tap0 (10.18.0.0/24) and I dont know how I can link this two networks/interfaces to each other with batman. I tried to assign tap0 to batman, but this doesnt work.
I want to be able to ping hosts that uses batman in the vpn and in the wlan network. How can I do this?
I have been reading the other mails but I don't fully understand what you are trying to achieve here. Nevertheless, I'll try to write something. If I got it all wrong, please let me know. :-)
It is important to keep in mind that IP addresses are totally irrelevant to make this setup work. I mention this since you seem to have experience with layer 3 routing. Even if the tap interfaces had no IP addresses batman-adv would route the traffic through. Unless you need to access services on the VPN interfaces via IPs you can safely run them without.
If you IP networks don't share the same broadcast domain (e.g. 10.18.1.0/24 vs 10.18.0.0/24) batman-adv won't propate IP routing entries because it assumes that is what you want. To resolve this you have 2 choices:
The easy way: Move all nodes into the same broadcast domain. All nodes will be able to communicate with each other without problems. Disadvantage: If you have many nodes (100+) in close range it will create considerable (ethernet) broadcast overhead.
The routing way: Let your VPN nodes know how to reach to "other" IP networks by adding routing entries. Naturally, this will reduce the broadcast overhead but requires a mechanism to distribute the routes (as batman-adv won't do it for you). There a couple of standard ways you can choose from. Depending on your setup & needs one or the other might be more interesting to use which brings us back to my initial question. :-)
Regards, Marek