On Tue, 2008-09-23 at 19:51 +0200, a.anselmi@oltrelinux.com wrote:
[...]
> maybe a stupd question, in a multi-hop multi-gateway mesh how I can
> detect the IP of the "real" gateway node to internet (the node at the
> last hop)?

One thing is: You may have more gateways and they may change at any time
- or used at the same time - for whatever reason, e.g. the weather.

On Wed, 2008-09-24 at 09:20 -0400, Eric Malkowski wrote:
> traceroute and parse the output until you hit an IP that you know isn't 
> in your network, and then it's the node who owns the last private IP in 
> the output who has the gateway you're using to the internet.
> 
> Perhaps there's some better way -- this is just a quick thought.

Basically all nodes which announce 0.0.0.0/0 (or combination of subnets
which result in the same) are such gateway nodes.
So you just have to find all nodes with such HNAs.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




