You do not need a routing daemon on all nodes but just on the gateways, each gateway will talk to others and saying i am announcing that subnet with that cost, so when the gateway receive a packet for that subnet it forward the packet to the right router and tell the client "next time you need that subnet use the other router" with an icmp message
On 04/12/12 23:08, Mitar wrote:
Hi!
On Thu, Apr 12, 2012 at 5:37 PM, Jernej Kos k@jst.sm wrote:
Since from layer 3, the batman mesh looks just like a big LAN, any node could simply add a route saying "prefix A via gateway B dev bat0" where B is a mesh node known to batman via its L2 identifier, no?
So I have almost convinced Kostko that we could switch to Batman, but he does not want to run multiple routing daemons on nodes. So could Batman support announcing also L3 prefixes? For example, that in the node configuration you could define that that node (let say it has IP 10.10.10.10) should announce also some L3 subnet. Like 192.168.42.0/24. And when that node would be reachable from other node, that other node would run:
ip route add prefix 192.168.42.0/24 via gateway 10.10.10.10 dev bat0
Doable? Because to run additional routing daemon just to rediscover which nodes are around and announce things ... when Batman already knows all this ...
Mitar