On Tue, 1 Feb 2000, Clarence Donath wrote:

> > > On Tue, 1 Feb 2000, Clarence Donath wrote:
> > >
> > > Doh!  No response on my question.  I'll try one more time, then I'll post
> in
> > > Bugzilla.  Thanks.
> > >
> > > ------------------
> > >
> > > Since RH6.0, a ppp1 connection will show up as ppp0 in ifconfig.  Is there
> > > something I can tweak so ifconfig shows me which ppp is actually up?
> 
> > Can you be a little bit more specific? What exactly do you expect ifconfig
> > to show?
> >
> > Misa
> 
> Sure :)
> 
> When I run ifconfig I get:
> 
> eth0      Link encap:Ethernet  HWaddr 00:00:1B:4C:F9:42
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:209806 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:56793 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:30 txqueuelen:100
>           Interrupt:5 Base address:0x300
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
> 
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:209.113.185.169  P-t-P:209.150.4.3  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:2911 errors:1 dropped:0 overruns:0 frame:1
>           TX packets:2941 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10
> 
> If I bring down ppp0 and bring up ppp1, it will always show ppp0.  I can't tell
> by ifconfig whether ppp0 or ppp1 is up.  It used to show ppp1 when ppp1 was up
> using ifconfig for Red Hat v5.2, but since 6.0 it always says ppp0 no matter
> which ppp is up.

        I've had the same problem (trying to bring up ipchains rules by
device name). It's not possible to tell pppd to run on a certain ppp
interface; it will just use the first free one.
        I guess you shouldn't rely on the ppp name, but rather on the ip
address. Or, if you really need the interface, try to tweak
/etc/ppp/ipup-local to write the interface name into a file, and then read
the file. 
        Quote from pppd's manual page:

/etc/ppp/ip-up
  A program or script which is executed when the link is available for
  sending and receiving IP packets (that is, IPCP has come up).  It is
  executed with the parameters

 interface-name tty-device speed local-IP-address remote-IP-address
ipparam

        So, it takes some scripting to do it...

HTH
Misa


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to