From: Axel Neumann <axel@open-mesh.net>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] routing problem? / Changes in exp rv790
Date: Sun, 11 Nov 2007 18:16:18 +0100 [thread overview]
Message-ID: <200711111816.18242.axel@open-mesh.net> (raw)
In-Reply-To: <2bda28cd0711110755u7d78282x169f21e2698b5af1@mail.gmail.com>
Hi
> Now I have other question about routing...
>
> I have 4 nodes: A,B,C and D
>
>
> A-------B-------D
> \-------C-------/
>
> fromA> D via B dev ath0 proto static
> fromD> A via C dev ath0 proto static
I have difficulties to clearly understand the last two lines.
Is this what routing table 66 or table 65 tells you at node A and D. Perhaps
its easier if you just paste the command and output of the command which
revealed this information, might also simplify to find other reasons for
strange behavior.
In this sense, one question? Do you use different networks/netmasks for the
different links. Because this might be one reason for problems.
The thing is:
when the batman network of node A is different from the batman networks used
by node D then D will not search its routing table 66 for the appropriate
route to node A. Even if the correct route form D to A is listed by the
command: ip r ls t 66
The problem are the rules which are configured by the batman daemon.
The command: "ip rule" on node D might show something like:
0: from all lookup local
6599: from all lookup 65
6600: from all to x.y.D.0/24 lookup 66
32766: from all lookup main
32767: from all lookup default
while on node A it might show the same except for one line:
6600: from all to x.y.A.0/24 lookup 66
Rule 6600 tells the network layer to only search table 66 for certain
destinations. And if D is searching for a destination in x.y.A.0/24 it will
not fit :-(.
Anyway, because there has been so much confusion about this, i changed this
with exp 0.3 revision 790. The daemon now configures the critical rule as:
6600: from all lookup 66
No more restrictions for table 66. This should always fit.
Since revision 790, also the unreachable rule is omitted by default, which has
been another reason for confusion.
If you (or others) want to have back the old unreachable rules or the
restrictive mask for table 66, the daemon may be started with the
--more-rules switch.
>
> When A talk to D choose B while when D talk to A choose C.
> In this scenario node D can't talk to A for example with ping.
does ping really not work?
>
> Is correct this type of routing?
Why not? According to your setup, both routes would work. This would be a
typical case for asymmetric routing. But generally nothing speaks against
such a route.
ciao
/axel
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@open-mesh.net
> https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n
next prev parent reply other threads:[~2007-11-11 17:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 14:23 [B.A.T.M.A.N.] routing problem? Stefano Scipioni
2007-11-10 11:43 ` Axel Neumann
2007-11-11 15:55 ` Stefano Scipioni
2007-11-11 17:16 ` Axel Neumann [this message]
2007-11-11 20:41 ` [B.A.T.M.A.N.] batmand crash / core dump Michael Burmeister-Brown
2007-11-11 22:30 ` [B.A.T.M.A.N.] batman gw nodes and routing (rv792) Predrag Balorda
2007-11-12 14:31 ` Axel Neumann
2007-11-11 22:34 ` [B.A.T.M.A.N.] vis and batman-exp (rv780-792) Predrag Balorda
2007-11-12 7:57 ` Stefano Scipioni
2007-11-12 13:53 ` Axel Neumann
2007-11-12 14:00 ` Predrag Balorda
2007-11-12 17:13 ` [B.A.T.M.A.N.] batmand crash / core dump Axel Neumann
2007-11-24 13:02 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200711111816.18242.axel@open-mesh.net \
--to=axel@open-mesh.net \
--cc=b.a.t.m.a.n@open-mesh.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox