Thank you a lot for you answers!
I still got two question left that I remembered when I read your answers: We discussed our networksetup on IRC (you remember?) and we decided to choose the setup with tinc an not sending batman advanced packages over VPN.
Now batman advanced nodes behind the VPN does not get listet in the originator tables of nodes on the other side of the VPN. But do they get listed on the gateway list? Can Batman advanced choose a gateway behind the VPN?
I can not test this at the moment so I have to ask.
Last one: Is it right that the trunk version of batman advanced is not compatible with Batman advanced 0.2.1? Is trunk compatible with 2010.0.0?
Thank you Clemens
Am Mittwoch 07 Juli 2010, 00:06:51 schrieb Marek Lindner:
On Tuesday, July 06, 2010 23:46:36 Clemens John wrote:
Okay I did this but I have some questions left:
No problem. :)
Does the DHCP server on the gateway need to distribute IP-Adresses?
The server should distribute IP addresses and a default route to itself. I'm not sure whether you will find a dhcp server which does not distribute IPs but default routes.
If so I think they have to be distributet on the batman interface right?
Correct.
Does the Batman advanced interface on the clients need to request an IP-Adress from the DHCP server or can I also set a static IP adress?
That depends on your needs. Any interface which is supposed to use the gateway feature has to run a dhcp client. If the batX interface on the client does not need it you can give it a static address. If you just want to define the IP address of a specific host you can also work with aliases / multiple IPs per interface.
If the clients need to request an IP adress from the DHCP server, where is the difference between requesting an IP without Batman advanced and with Batman advanced? Does Batman advanced say from wich server to request the IP or which default route to choose?
Normal dhcp requests are broadcasted through the entire network. Every dhcp server that receives this request will answer. If the client receives multiple answers it depends on the implementation to choose its "favorite" dhcp server. Most clients simply use the first server that answered. If you enable the gateway client this request will not be broadcasted but directly sent to the chosen gateway. The other dhcp servers will not receive this dhcp request.
Sry for this question we just discussed this on the last community meeting and somebody wondered if this is the most beautiful way. Maybe it´s not but you are right there is no other way.
We had this layer2/layer3 discussion quite often and this is the compromise we managed to achieve. It only works when enabled and indirectly via dhcp. It is not "beautiful" but it works. :)
Okay but it will likely be usable without crashing right?
No, it should not crash. I'm using it on a daily basis without problems.
How can I configure batman advanced in /etc/config/batman-adv to enable gw server/client mode?
Since it was not part of an official release it also is not supported by the uci scripts. You would have add it yourself.
Regards, Marek