Re: [B.A.T.M.A.N.] default routes not set

Marek Lindner
2009-04-09T10:00:13Z

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