[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the device of the ppp connection




Charlie Brady schrieb:
> 
> On Fri, 13 Nov 2009, Mark Ryden wrote:
> 
>> What I mean is this: I have eth0 - eth3 on a machine, and a ppp
>> connection. I want to know by a
>> short program which device is the one which the ppp connection is
>> using (I know that usually this can
>> be deduced by running "ps" for the corresponding ppp daemon, and
>> inspecting the parameters; for example, with pppoe, I have "-I eth1"
>> parameter (-I stands for interface). But I want a more general
>> way which can be used in cases when we cannot get this info).
> 
> I would do this via an environment variable that you set via your start
> script:
> 
> PPPOE_DEVICE=eth1 pppoe .... -I eth1
> 
> Have a look at daemontools or runit for mechanisms to give you good
> reliable control of the execution environment of long-running processes.
> 
> ---

you can scan the output of ifconfig -a,
but normaly pppd setups a ppp0.

re,
 wh

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux Audio Users]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite Photos]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]     [Fedora Users]

Powered by Linux