Assuming you need the link's name for identifying/killing purposes, you can use the linkname option in pppd.
pppd will create a dynamic name (such as ppp0, ppp1, etc) but you could find it's pid info from /var/run/pppd-<linkname>.pid and the dynamic ppp name it has assigned.
The /etc/ip-up script will also have a $LINKNAME env variable which will assist you in finding the link itself.
 
Enjoy,
Isaac Aaron
Quality Bytes
 
-------Original Message-------
 
Date: iem xairi 25 `txil 2001 11:08:35
Subject: Re: ppp0 ppp1 ppp2 ...
 
That is what I did,
but when I'm reconnecting for some reasons it choose to make ppp1.
only rebooting make it choose ppp0 again.
It's seems to keep some kind of log or history regarding the previous ppp connections, but Where and can I change it ?
 
 

Sagi Bashari wrote:

Run ifconfig ppp0 down before reconnecting.

On Wed, 25 Apr 2001, Tomer Dagan wrote:

>
> I'm using pptp to make an Adsl connection and it is working fine.
> at the moment I'm playing around with Iptables and routing so I have to
> turn off the pptp connection.
> The connection is turn off by: ifconfig ppp0 down ; killall pptp
> The problem is that when I reconnect the ppp intraface become ppp1 and
> not ppp0 which confuse all my setting.
> Is there a way to force the connection to be ppp0 ?
> The pptp line for making a connection is:
> pptp 10.0.0.138 debug user myusername@IKmyIPSprovider remotename
> "10.0.0.138 RELAY_PPP1" defaultroute netmask 255.0.0.0 noauth
>
>     thanks,
>
>
>
> --
>
>                                    Tomer Dagan
>                                System Administrator
>                                   Broadcast Video
>                                 www.broadcast.co.il
>                            Harakevet 44, Tel Aviv, Israel
>                            tel: +972-3-6384747  fax: +972-3-6384729
>
>
>

-- 



                                   Tomer Dagan
                               System Administrator
                                  Broadcast Video
                                www.broadcast.co.il
                           Harakevet 44, Tel Aviv, Israel
                           tel: +972-3-6384747  fax: +972-3-6384729
 
 
_________________________________________________
IncrediMail - Email has finally evolved - Click Here

Reply via email to