On 03/03/2012 05:43 AM, Marek Lindner wrote:
On Saturday, March 03, 2012 16:16:15 Nicolás Echániz wrote:
Maerk thanks for your fast reply. In fact, that's how we started, that's what I meant by:
"We have also tried adding eth0 to bat0 and take it out of br-lan, which also "works" but gives routing loops from time to time."
but my english sometimes fails me :)
Your English is quite good. To be honest I lost the overview about what interface is added where and what is connected how. Some people might be able to simply look at the uci config to understand the setup but I am not one of those. :-)
Let me write down what I understood - feel free to correct me.
some nodes -- node1 -- adhoc[wlan0-1] + ethernet[eth0] -- node2 -- more nodes
Each node also has wlan0 for non-mesh clients but this is of no relevance at this point. What is eth1 for ?
in the node marisa-mr, eth1 is the WAN port of the router, that is not being used as wan but just as a non-batman ethernet interface to connect to a router inside the house.
You are saying that from time to time the packets loop between node1 and node2 using adhoc & ethernet to fly forth and back ?
exactly so.
Is this a known issue or should this not happen in a setup where both interfaces are added to batman?
You should not have loops either way but it is easy to build loops in complicated setups. At first we should understand your setup and configuration. Drawing a little picture that shows what interface is connected to what other interface also can help.
alright, I'll try some ascii art, but I'm afraid you'll find out my english is better :P
(non-batman) wlan0 | ------ | czuk | ------ /wlan1 / / / / 1500m / / / wlan1 ---------- / | cisterna | ---------- (batman enabled | cabled clients) wlan0 | / \ eth0 / \ | / \ ------- / \ | nogal | / 350m \ 600m / ------- / \ --------wlan0 / \ / / \ / wlan0--------------wlan0-1 / \ ------------ ------------ | marisa-mr | 0m | marisa-blt | ------------ ------------ \ | \eth0__________________eth0/ wlan0 eth1 (non-batman) (non-batman) | | | [in-house router]
where not indicated otherwise, links are between interfaces added to batman.
I hope it's understandable!
... at the moment I've disabled marisa-mr_wlan0 and everything works fine.
The routing loop problem appears when marisa-mr_wlan0 is enabled, as shown in the drawing.
The setup makes more sense when you add the antennae information. marisa-blt has a panel/sector antena, but marisa-mr has a 24dbi grid pointed at cisterna, which in turn has another grid pointed back (on wlan0) and a second grid (on wlan1) points at czuk on the opposite side, where a grid points back.
I've drawn the "desired" links; the wireless portion is ad-hoc, so there are many more links present between the nodes, in fact cisterna, czuk and both marisa's can all "see" each other.
cisterna_wlan1 has a reasonable link through the back lobe of the grid antenna to both marisa-blt_wlan0-1 and marisa-mr_wlan0.
If you'd like me to send any more information just ask please; and if you get bored, I'll understand!!
-- NicoEchániz