public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
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.] default routes not set
Date: Thu, 9 Apr 2009 18:00:13 +0800	[thread overview]
Message-ID: <200904091800.21893.lindner_marek@yahoo.de> (raw)
In-Reply-To: <6.2.5.6.2.20090409001324.0390cd00@gmail.com>


Hi,

> Gateway client - got IP (169.254.0.1) from gateway: 192.168.100.2
> Adding default route via gate0 (table 68)

> When I run route -n on the ar430w, there's no default route set.  I
> manually ran:
> route add default gw 169.254.0.1

so far everything is correct but the deprecated "route -n" command shows you 
only one routing table. As the log indicates the default route went into table 
68. You can see it using:

ip route ls table 68

More information regarding the routing tables can be found here:
http://www.open-mesh.net/wiki/RoutingVodoo


> Next I tried to ping the outside world on the ar430w but it gets no
> where.  Any ideas?

You need to NAT on your gateways (wrt54gl) internet interface. 
iptables -t nat -I POSTROUTING -o $your_wan_if -j MASQUERADE

Depending on the batman version you use it might be required to NAT on the 
gate0 interface on the client side in a similar fashion. With batman version 
0.3.2 its not necessary anymore.

Regards,
Marek


      parent reply	other threads:[~2009-04-09 10:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09  7:23 [B.A.T.M.A.N.] default routes not set leongmzlist
2009-04-09  7:50 ` leongmzlist
2009-04-09 10:02   ` Marek Lindner
2009-04-09 10:00 ` Marek Lindner [this message]

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=200904091800.21893.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --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