All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Gateway on multiple interfaces
@ 2009-04-28 17:42 Nathan Wharton
  2009-04-29  3:14 ` Marek Lindner
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Wharton @ 2009-04-28 17:42 UTC (permalink / raw)
  To: B.A.T.M.A.N

I am using B.A.T.M.A.N. 0.3.2-beta rv1246 with the batgat module.
Internet tunneling works well on the first interface mentioned on the
command line.  Tunneling does not work on the secondary interface, and
it floods the log file on the gateway with:

Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash
Apr 28 17:38:09 OpenWrt user.debug kernel: batgat: [get_ip_addr:645]
found client in hash

And on the client with:

Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
request: sender IP is not gateway IP
Apr 28 17:33:10 OpenWrt user.notice batmand: Error - can't receive ip
from gateway: number of maximum retries reached

Is there something I can do to get it to work on the secondary interface?

On the gateway, I am using:
batmand -d 3 -g 11000 -a 10.2.1.0/24 --disable-client-nat
--hop-penalty 5 --purge-timeout 10000 ath0 eth0
ath0 is IP 10.0.2.1/16
eth0 is IP 10.255.2.1/16

On the client, I am using:
batmand -d 3 -r 2 -a 10.1.11.0/24 --disable-client-nat --hop-penalty 5
--purge-timeout 10000 ath0 eth0
ath0 is IP 10.0.1.11/16
eth0 is IP 10.255.1.11/16

Thanks in advance for any help on this.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [B.A.T.M.A.N.] Gateway on multiple interfaces
  2009-04-28 17:42 [B.A.T.M.A.N.] Gateway on multiple interfaces Nathan Wharton
@ 2009-04-29  3:14 ` Marek Lindner
  2009-04-29 14:09   ` Nathan Wharton
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Lindner @ 2009-04-29  3:14 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking


Hi,

> Is there something I can do to get it to work on the secondary interface?

I'm not 100% about your setup. The problem occurs if the gateway client tries 
to retrieve an IP address from the gateway via the gateways secondary 
interface ? 


> On the gateway, I am using:
> batmand -d 3 -g 11000 -a 10.2.1.0/24 --disable-client-nat
> --hop-penalty 5 --purge-timeout 10000 ath0 eth0
> ath0 is IP 10.0.2.1/16
> eth0 is IP 10.255.2.1/16

On the gateway the option "--disable-client-nat" has no effect. I just commited 
an additional warning that should indicate that in the future.

Regards,
Marek


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [B.A.T.M.A.N.] Gateway on multiple interfaces
  2009-04-29  3:14 ` Marek Lindner
@ 2009-04-29 14:09   ` Nathan Wharton
  2009-04-30  3:17     ` Marek Lindner
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Wharton @ 2009-04-29 14:09 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Tue, Apr 28, 2009 at 10:14 PM, Marek Lindner <lindner_marek@yahoo.de> wrote:

> I'm not 100% about your setup. The problem occurs if the gateway client tries
> to retrieve an IP address from the gateway via the gateways secondary
> interface ?

Yes.  It occurs if the interfaces through which the gateway and client
can communicate are not the interfaces listed first on the command
line.

>> On the gateway, I am using:
>> batmand -d 3 -g 11000 -a 10.2.1.0/24 --disable-client-nat
>> --hop-penalty 5 --purge-timeout 10000 ath0 eth0
>> ath0 is IP 10.0.2.1/16
>> eth0 is IP 10.255.2.1/16
>
> On the gateway the option "--disable-client-nat" has no effect. I just commited
> an additional warning that should indicate that in the future.
>
> Regards,
> Marek

Will it still be in effect if it is no longer the gateway, and the
gateway moves to another node in the mesh?  All the nodes start with
-r 2, and a batmand -c -g is issued on a node that finds an uplink.
If it loses the uplink, batmand -c -r 2 is issued, and
--disable-client-nat should still be on.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [B.A.T.M.A.N.] Gateway on multiple interfaces
  2009-04-29 14:09   ` Nathan Wharton
@ 2009-04-30  3:17     ` Marek Lindner
  2009-04-30 16:29       ` Nathan Wharton
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Lindner @ 2009-04-30  3:17 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wednesday 29 April 2009 22:09:45 Nathan Wharton wrote:
> Yes.  It occurs if the interfaces through which the gateway and client
> can communicate are not the interfaces listed first on the command
> line.

I just cooked a patch that should ignore these IP inconsistencies. Please try 
revision 1255 and let us know if it helped.


> Will it still be in effect if it is no longer the gateway, and the
> gateway moves to another node in the mesh?  All the nodes start with
> -r 2, and a batmand -c -g is issued on a node that finds an uplink.
> If it loses the uplink, batmand -c -r 2 is issued, and
> --disable-client-nat should still be on.

Ok, you are right. In your setup it makes sense.

Regards,
Marek


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [B.A.T.M.A.N.] Gateway on multiple interfaces
  2009-04-30  3:17     ` Marek Lindner
@ 2009-04-30 16:29       ` Nathan Wharton
  2009-05-01  7:57         ` Marek Lindner
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Wharton @ 2009-04-30 16:29 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wed, Apr 29, 2009 at 10:17 PM, Marek Lindner <lindner_marek@yahoo.de> wrote:
> On Wednesday 29 April 2009 22:09:45 Nathan Wharton wrote:
>> Yes.  It occurs if the interfaces through which the gateway and client
>> can communicate are not the interfaces listed first on the command
>> line.
>
> I just cooked a patch that should ignore these IP inconsistencies. Please try
> revision 1255 and let us know if it helped.

Works perfectly here now.  I hope that didn't mess something else up.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [B.A.T.M.A.N.] Gateway on multiple interfaces
  2009-04-30 16:29       ` Nathan Wharton
@ 2009-05-01  7:57         ` Marek Lindner
  0 siblings, 0 replies; 6+ messages in thread
From: Marek Lindner @ 2009-05-01  7:57 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Friday 01 May 2009 00:29:29 Nathan Wharton wrote:
> > I just cooked a patch that should ignore these IP inconsistencies. Please
> > try revision 1255 and let us know if it helped.
>
> Works perfectly here now.  I hope that didn't mess something else up.

Great! Actually that should not be a problem but let me know if you find 
something.

Regards,
Marek


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-01  7:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 17:42 [B.A.T.M.A.N.] Gateway on multiple interfaces Nathan Wharton
2009-04-29  3:14 ` Marek Lindner
2009-04-29 14:09   ` Nathan Wharton
2009-04-30  3:17     ` Marek Lindner
2009-04-30 16:29       ` Nathan Wharton
2009-05-01  7:57         ` Marek Lindner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.