Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why sometimes my ADSL sets to ppp1 instead of ppp0?

Reply
Thread Tools Display Modes

Why sometimes my ADSL sets to ppp1 instead of ppp0?

 
 
Michael Badt
Guest
Posts: n/a

 
      04-18-2004, 07:36 PM
Hi,
I have a Mandrake 10 (CE) connected to the Internet using rp-pppoe and
eth1 (eth0 is present but not connected).
I can connect to the Internet by running the adsl-start script (as root).
When connected ppp0 is established and everything is fine.

However, if I try to connect using the Tkpppoe it times out without
establishing a connection and, afterwards, running the adsl-start gets
connected but using ppp1 which won't work as my FW & routing are set to
ppp0. In that case I have to close & reopen the terminal in order to get
connected via ppp0.
I have checked Tkpppoe parameters and they are correct.

a. Why can't I use TKpppoe?
b. Are there any other graphical (I use KDE 3.2) alternatives?
c.Why do I get connected via ppp1 and how can I make it to connect via
ppp0?

TIA

 
Reply With Quote
 
 
 
 
joseph philip
Guest
Posts: n/a

 
      04-18-2004, 08:19 PM
On Sun, 18 Apr 2004 19:36:12 +0000, Michael Badt wrote:

> Hi,
> I have a Mandrake 10 (CE) connected to the Internet using rp-pppoe and
> eth1 (eth0 is present but not connected).
> I can connect to the Internet by running the adsl-start script (as root).
> When connected ppp0 is established and everything is fine.
>
> However, if I try to connect using the Tkpppoe it times out without
> establishing a connection and, afterwards, running the adsl-start gets
> connected but using ppp1 which won't work as my FW & routing are set to
> ppp0. In that case I have to close & reopen the terminal in order to get
> connected via ppp0.
> I have checked Tkpppoe parameters and they are correct.
>
> a. Why can't I use TKpppoe?
> b. Are there any other graphical (I use KDE 3.2) alternatives?
> c.Why do I get connected via ppp1 and how can I make it to connect via
> ppp0?
>
> TIA


The pppoe stuff uses the next available ppp interface.After you loose the
connection, it takes a bit of time for that ppp interface to be
de-registered. In that time, if you dial out again, the next available ppp
interface is ppp1 or ppp2.

You have a problem with Tkpppoe. Are you specifying the correct data for
it?


To keep your iptables scripts independant of ppp0 and ppp1 and ppp2 etc,
use "ppp+" when specifying the interface.

To keep your iptables filter rules independant of your external ip
address, match on the ppp interface and -J to another chain (say, wanin)
with all the rules for input from the outside, which filter on ports and
packet flags and connection states.



If you are doing port forwarding ( the "nat table or "-t nat") that table
will have to be re-set with the correct port forwarding entries everytime
the link comes up. Call it from /etc/ppp/ip-up


hth

 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      04-18-2004, 09:37 PM
Michael Badt <(E-Mail Removed)> writes:

]Hi,
]I have a Mandrake 10 (CE) connected to the Internet using rp-pppoe and
]eth1 (eth0 is present but not connected).
]I can connect to the Internet by running the adsl-start script (as root).
]When connected ppp0 is established and everything is fine.

]However, if I try to connect using the Tkpppoe it times out without
]establishing a connection and, afterwards, running the adsl-start gets
]connected but using ppp1 which won't work as my FW & routing are set to
]ppp0. In that case I have to close & reopen the terminal in order to get
]connected via ppp0.
]I have checked Tkpppoe parameters and they are correct.

The kernel hands pppd the first number available. If ppp0 is not
available, then it hands in ppp1. What else could it do. For some reason
ppp0 is not available. Maybe an old version which has not dies, maybe a
bug, maybe..... anyway. it has the first one.


]a. Why can't I use TKpppoe?

I would guess because it stupidly assumes that it is ppp0 that is being
used.

]b. Are there any other graphical (I use KDE 3.2) alternatives?
]c.Why do I get connected via ppp1 and how can I make it to connect via
]ppp0?

Find out why ppp0 is not available and fix that.


This illustrates why programs should NOT assume things about allocations
from the kernel. The script /etc/ppp/ip-up is handed the device which is
used (ppp0, ppp1,...) and can be used to communicate that choice to
other programs. That the writers are to lazy to do so is a bug in
software design which is very hard to fix.

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      04-18-2004, 09:40 PM
Michael Badt <(E-Mail Removed)> wrote:

> I have a Mandrake 10 (CE) connected to the Internet using rp-pppoe and
> eth1 (eth0 is present but not connected).
> I can connect to the Internet by running the adsl-start script (as root).
> When connected ppp0 is established and everything is fine.


> However, if I try to connect using the Tkpppoe it times out without
> establishing a connection and, afterwards, running the adsl-start gets
> connected but using ppp1 which won't work as my FW & routing are set to
> ppp0. In that case I have to close & reopen the terminal in order to get
> connected via ppp0.


What is meant by "the terminal" that you have to close and reopen?

> I have checked Tkpppoe parameters and they are correct.


> a. Why can't I use TKpppoe?


I don't know.

> b. Are there any other graphical (I use KDE 3.2) alternatives?


I don't know.

> c.Why do I get connected via ppp1 and how can I make it to connect via
> ppp0?


There very likely a down ppp0 interface that, for whatever reason,
hasn't been removed. ifconfig -a shows existing down interfaces too.

I've not had one for so long that I don't know why they are not downed
sometimes, but TKpppoe is the culprit.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Michael Badt
Guest
Posts: n/a

 
      04-19-2004, 04:52 AM
joseph philip wrote:

> On Sun, 18 Apr 2004 19:36:12 +0000, Michael Badt wrote:
>
>> Hi,
>> I have a Mandrake 10 (CE) connected to the Internet using rp-pppoe and
>> eth1 (eth0 is present but not connected).
>> I can connect to the Internet by running the adsl-start script (as root).
>> When connected ppp0 is established and everything is fine.
>>
>> However, if I try to connect using the Tkpppoe it times out without
>> establishing a connection and, afterwards, running the adsl-start gets
>> connected but using ppp1 which won't work as my FW & routing are set to
>> ppp0. In that case I have to close & reopen the terminal in order to get
>> connected via ppp0.
>> I have checked Tkpppoe parameters and they are correct.
>>
>> a. Why can't I use TKpppoe?
>> b. Are there any other graphical (I use KDE 3.2) alternatives?
>> c.Why do I get connected via ppp1 and how can I make it to connect via
>> ppp0?
>>
>> TIA

>
> The pppoe stuff uses the next available ppp interface.After you loose the
> connection, it takes a bit of time for that ppp interface to be
> de-registered. In that time, if you dial out again, the next available ppp
> interface is ppp1 or ppp2.
>
> You have a problem with Tkpppoe. Are you specifying the correct data for
> it?
>
>
> To keep your iptables scripts independant of ppp0 and ppp1 and ppp2 etc,
> use "ppp+" when specifying the interface.
>
> To keep your iptables filter rules independant of your external ip
> address, match on the ppp interface and -J to another chain (say, wanin)
> with all the rules for input from the outside, which filter on ports and
> packet flags and connection states.
>
>
>
> If you are doing port forwarding ( the "nat table or "-t nat") that table
> will have to be re-set with the correct port forwarding entries everytime
> the link comes up. Call it from /etc/ppp/ip-up
>
>
> hth

Thanks Bill and Joseph.
I'll sure try to follow your insight.

Michael Badt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet radio sets Michael Chare Broadband 52 04-19-2008 04:27 PM
WiFi product chip sets April2006 Wireless Internet 9 06-16-2006 05:21 PM
The Jet Sets Cheryl Baker Home Networking 0 11-10-2005 01:09 AM
The Jet Sets Cheryl Baker Home Networking 0 11-10-2005 12:49 AM
BT sets goal of 100% ADSL coverage Sunil Sood Broadband 4 11-17-2003 10:05 PM



1 2 3 4 5 6 7 8 9 10 11