> On Thu, 23 Sep 1999, Geof Goodrum wrote:
> > If you run something like MRTG to monitor multiple leased lines with ppp
> > connections, you would want to keep the devices assigned to specific lines
> > constant.  Dynamically reassigning them on reconnects would mess up your
> > stats.
>
> The answer would be to fix the monitoring software.  I contend that it's the
> IP address you are interested in, not the ppp interface.

Sorry, but it's not the monitoring software's problem.  I've never seen a
network monitor that determines which interface it should collect data from
based on an IP address - they just don't work that way.  Network monitors
work on a connection or interface.  If you want to figure out which interface
a certain IP address is, that's up to you.  Then feed that interface info to
the network monitor as a parameter.

Maybe someone could write a program that would take an IP address and 
determine which interface it's on?  I'm sure it can't be that hard.
Something like:

        ip2interface 192.68.0.1

which returns something like 'ppp3'.  This could then be piped into 
whatever needs the interface name:

        tcpdump -i `ip2interface 192.68.0.1`

Just a thought...
============================================================================
    Patrick Klos                           Email: [EMAIL PROTECTED]
    Klos Technologies, Inc.                Web:   http://www.klos.com/
============================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to