* PPP Question
@ 2002-09-24 7:38 Peter
2002-09-24 15:27 ` Ray Olszewski
0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2002-09-24 7:38 UTC (permalink / raw)
To: linux
Hi,
I have 3 ISPs of which one with 2 phone numbers (ppp1 and ppp2). Using the
command /sbin/ifup pppx I can connect only to ppp0 and ppp1; ppp2 and ppp3
will just sit doing nothing. The same happens using the guis rp3 and usernet,
on the window waiting the bar just moves for ever back and forth.
Yet using rp3-config -debug or kppp I can dial-up and connect with all 4
numbers.
Is there an explanation to this and can correction be made that command
/sbin/ifup which I prefer can be used for all ppps?
In wvdial.conf all looks correct the same in pap/chap-secret.
Thanks & regards
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-24 7:38 Peter
@ 2002-09-24 15:27 ` Ray Olszewski
2002-09-25 2:31 ` Peter
0 siblings, 1 reply; 12+ messages in thread
From: Ray Olszewski @ 2002-09-24 15:27 UTC (permalink / raw)
To: Peter, linux
Nothing comes to mind based on the info you posted. Perhaps I (or someone)
could suggest something if you posted
1. the relevant portions of /etc/interfaces
2. whatever the log files contain about an unsuccessful attempt
I omit the ppp config stuff from this list since you say it works if run
directly (or at least I think you are saying that - I've never used kppp so
am not *sure* that it relies on the same config files - if not, please post
that info too, concealing only your password).
At 03:38 PM 9/24/02 +0800, Peter wrote:
>Hi,
>
>I have 3 ISPs of which one with 2 phone numbers (ppp1 and ppp2). Using the
>command /sbin/ifup pppx I can connect only to ppp0 and ppp1; ppp2 and ppp3
>will just sit doing nothing. The same happens using the guis rp3 and usernet,
>on the window waiting the bar just moves for ever back and forth.
>
>Yet using rp3-config -debug or kppp I can dial-up and connect with all 4
>numbers.
>
>Is there an explanation to this and can correction be made that command
>/sbin/ifup which I prefer can be used for all ppps?
>
>In wvdial.conf all looks correct the same in pap/chap-secret.
--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA ray@comarre.com
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-24 15:27 ` Ray Olszewski
@ 2002-09-25 2:31 ` Peter
2002-09-25 2:46 ` Ray Olszewski
0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2002-09-25 2:31 UTC (permalink / raw)
To: linux-newbie
Aha,
here are the log messages and wvdial.conf for ppp1 which readily connects and
ppp2
which will not connect saying see below
]$ /sbin/ifup ppp2
]# tail /var/log/messages
Sep 25 09:50:00 philonline WvDial: OK
Sep 25 09:50:00 philonline WvDial: Sending: ATM1L3
Sep 25 09:50:00 philonline WvDial: ATM1L3
Sep 25 09:50:00 philonline WvDial: OK
Sep 25 09:50:00 philonline WvDial: Modem initialized.
Sep 25 09:50:00 philonline WvDial: Configuration does not specify a valid
phone number.
Sep 25 09:50:00 philonline WvDial: Configuration does not specify a valid
login name.
Sep 25 09:50:00 philonline WvDial: Configuration does not specify a valid
password.
Sep 25 09:50:00 philonline pppd[1466]: Connect script failed
Sep 25 09:50:01 philonline pppd[1466]: Exit
]# cat /etc/wvdial.conf
[Dialer Skyinet-PLDT]
Username = 4003460535@webcard.skyinet.net
Password =
Phone = 8787111
Inherits = Dialer Defaults
Stupid mode = 0
]$ /sbin/ifup ppp1
]# tail /var/log/messages
Sep 25 09:50:31 philonline WvDial: OK
Sep 25 09:50:31 philonline WvDial: Modem initialized.
Sep 25 09:50:31 philonline WvDial: Sending: ATDT 4362222
Sep 25 09:50:31 philonline WvDial: Waiting for carrier.
Sep 25 09:50:31 philonline WvDial: ATDT 4362222
Sep 25 09:50:35 philonline pppd[1541]: Terminating on signal 15.
Sep 25 09:50:35 philonline WvDial: Disconnecting at Wed Sep 25 09:50:35 2002
Sep 25 09:50:35 philonline pppd[1541]: Serial connection established.
Sep 25 09:50:35 philonline pppd[1541]: Using interface ppp0
Sep 25 09:50:35 philonline pppd[1541]: Connect: ppp0 <--> /dev/ttyS0
]# cat /etc/wvdial.conf
[Dialer Skyinet]
Username = 4003460535@webcard.skyinet.net
Password =
Phone = 4362222
Inherits = Dialer Defaults
Stupid mode = 0
There is no such file as /etc/interfaces
Now after above exercise I exchanged manually in /etc/wvdial.conf the two
telephone numbers and surprise, surprise ppp2 and ppp3 as well as ppp1
connected readily.
I'll be darn, my old boos used to say.
ray@comarre.com said:
> Nothing comes to mind based on the info you posted. Perhaps I (or
> someone) could suggest something if you posted
> 1. the relevant portions of /etc/interfaces
> 2. whatever the log files contain about an unsuccessful
> attempt
> I omit the ppp config stuff from this list since you say it works if
> run directly (or at least I think you are saying that - I've never
> used kppp so am not *sure* that it relies on the same config files -
> if not, please post that info too, concealing only your password).
> At 03:38 PM 9/24/02 +0800, Peter wrote:
>Hi,
> >I have 3 ISPs of which one with 2 phone numbers (ppp1 and ppp2). Using the >command /sbin/ifup pppx I can connect only to ppp0 and ppp1; ppp2 and ppp3
>> will just sit doing nothing. The same happens using the guis rp3 and
> usernet, on the window waiting the bar just moves for ever back and forth.
> >Yet using rp3-config -debug or kppp I can dial-up and
> connect with all 4 numbers.
> >Is there an explanation to this and can correction be made that command >/sbin/ifup which I prefer can be used for all ppps?
> >In wvdial.conf all looks correct the same in pap/chap-secret.
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-25 2:31 ` Peter
@ 2002-09-25 2:46 ` Ray Olszewski
2002-09-25 8:00 ` Peter
0 siblings, 1 reply; 12+ messages in thread
From: Ray Olszewski @ 2002-09-25 2:46 UTC (permalink / raw)
To: Peter, linux-newbie
Glad you got it working. One small correction on what I sent you before.
At 10:31 AM 9/25/02 +0800, Peter wrote:
[...]
>There is no such file as /etc/interfaces
Sorry. Make that /etc/network/interfaces .
--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA ray@comarre.com
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-25 2:46 ` Ray Olszewski
@ 2002-09-25 8:00 ` Peter
2002-09-25 15:21 ` Ray Olszewski
0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2002-09-25 8:00 UTC (permalink / raw)
To: linux-newbie
Thanks Ray!
ray@comarre.com said:
> Glad you got it working. One small correction on what I sent you
> before.
> At 10:31 AM 9/25/02 +0800, Peter wrote: [...]
> >There is no such file as /etc/interfaces
> Sorry. Make that /etc/network/interfaces .
There are no interfaces files in my RH7.2 box /etc/. I had checked it before I
sent the message. There is only a /etc/networks which is empty and there is
/etc/sysconfig/network.
Regards
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-25 8:00 ` Peter
@ 2002-09-25 15:21 ` Ray Olszewski
2002-09-26 2:12 ` Peter
0 siblings, 1 reply; 12+ messages in thread
From: Ray Olszewski @ 2002-09-25 15:21 UTC (permalink / raw)
To: Peter, linux-newbie
At 04:00 PM 9/25/02 +0800, Peter wrote:
>Thanks Ray!
>
>ray@comarre.com said:
> > Glad you got it working. One small correction on what I sent you
> > before.
>
> > At 10:31 AM 9/25/02 +0800, Peter wrote: [...]
>
> > >There is no such file as /etc/interfaces
>
> > Sorry. Make that /etc/network/interfaces .
>
>There are no interfaces files in my RH7.2 box /etc/. I had checked it
>before I
>sent the message. There is only a /etc/networks which is empty and there is
>/etc/sysconfig/network.
Curious. What does your man page for "ifup" say about where it looks for
its default interfaces file?
--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA ray@comarre.com
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-25 15:21 ` Ray Olszewski
@ 2002-09-26 2:12 ` Peter
2002-09-26 2:30 ` Ray Olszewski
0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2002-09-26 2:12 UTC (permalink / raw)
To: Ray Olszewski, linux-newbie
ray@comarre.com said:
> Curious. What does your man page for "ifup" say about where it looks
> for its default interfaces file?
]$ pinfo ifup
Przemek's Info Viewer v0.5.8
Error: could not open info file, trying manual
Error: No manual page found either.
]$ locate ifup |more
/etc/sysconfig/network-scripts/ifup
/etc/sysconfig/network-scripts/ifup-aliases
/etc/sysconfig/network-scripts/ifup-ipv6
/etc/sysconfig/network-scripts/ifup-plip
/etc/sysconfig/network-scripts/ifup-plusb
/etc/sysconfig/network-scripts/ifup-post
/etc/sysconfig/network-scripts/ifup-ppp
/etc/sysconfig/network-scripts/ifup-routes
/etc/sysconfig/network-scripts/ifup-sit
/etc/sysconfig/network-scripts/ifup-sl
/etc/sysconfig/network-scripts/ifup-wireless
/etc/sysconfig/network-scripts/ifup-ippp
/etc/sysconfig/network-scripts/ifup-isdn
/etc/sysconfig/network-scripts/ifup-cipcb
/sbin/ifup
In /sbin/ifup the word interface does not appear in the script.
Regards
--
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
2002-09-26 2:12 ` Peter
@ 2002-09-26 2:30 ` Ray Olszewski
0 siblings, 0 replies; 12+ messages in thread
From: Ray Olszewski @ 2002-09-26 2:30 UTC (permalink / raw)
To: Peter, linux-newbie
At 10:12 AM 9/26/02 +0800, Peter wrote:
>ray@comarre.com said:
> > Curious. What does your man page for "ifup" say about where it looks
> > for its default interfaces file?
>
>]$ pinfo ifup
>Przemek's Info Viewer v0.5.8
>Error: could not open info file, trying manual
>Error: No manual page found either.
>[...]
>In /sbin/ifup the word interface does not appear in the script.
Oh what fun. On your system (Red Hat? I forget), "/sbin/ifup" is a script.
On my (Debian) systems, the same app name, "/sbin/ifup", identifies a binary.
I hate it when stuff this basic becomes both distribution specific -AND-
named in ways that invite confusion. Pfui!
--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA ray@comarre.com
-------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: PPP Question
@ 2002-09-27 0:00 Heimo Claasen
0 siblings, 0 replies; 12+ messages in thread
From: Heimo Claasen @ 2002-09-27 0:00 UTC (permalink / raw)
To: linux-newbie
On Mandrake (and a number of other distributions), "ifup pppN" and
"Ifdown pppN" indeed are (basch-) scripts.
Well, I had two Debian installations, at one time, where the same
(scipt, bash-function) was called "p-on/p-off" and "pon/poff" (without
arguments), respectively.
> I hate it when stuff this basic becomes both distribution specific -AND-
> named in ways that invite confusion. Pfui!
Now go tell me.
// Heimo Claasen // <hammer at revobild dot net> // Brussels 2002-09-26
The WebPlace of ReRead - and much to read ==> http://www.revobild.net
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 12+ messages in thread
* ppp question
@ 2009-10-05 16:38 Davy Leon
2009-10-05 17:33 ` Bill Unruh
2009-10-05 17:38 ` James Carlson
0 siblings, 2 replies; 12+ messages in thread
From: Davy Leon @ 2009-10-05 16:38 UTC (permalink / raw)
To: linux-ppp
Hi folks
I have a question. Every time I dialup to the internet pppd executes an
script called ip-up. My question is, everytime someone dials in it's
executed too? If the answer is yes, how can I handle the script to execute
one part when dianing out and another part when dialing in. I meant
something like
if dialing in then
...
...
if dialing out then
...
....
Thanks in advance
David
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ppp question
2009-10-05 16:38 ppp question Davy Leon
@ 2009-10-05 17:33 ` Bill Unruh
2009-10-05 17:38 ` James Carlson
1 sibling, 0 replies; 12+ messages in thread
From: Bill Unruh @ 2009-10-05 17:33 UTC (permalink / raw)
To: linux-ppp
On Mon, 5 Oct 2009, Davy Leon wrote:
> Hi folks
>
> I have a question. Every time I dialup to the internet pppd executes an
> script called ip-up. My question is, everytime someone dials in it's executed
> too? If the answer is yes, how can I handle the script to execute one part
> when dianing out and another part when dialing in. I meant something like
One of the arguments given to ip-up is the IP addresses assigned to the remote
and local systems. Since when someone calls in the IP address is assigned by
you and is almost certainly different from the IP address assigned to you when
you dial out. You can base the response on the IP address range
man pppd
>
> if dialing in then
>
> ...
> ...
>
> if dialing out then
>
> ...
> ....
>
>
>
> Thanks in advance
>
> David
> --
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: ppp question
2009-10-05 16:38 ppp question Davy Leon
2009-10-05 17:33 ` Bill Unruh
@ 2009-10-05 17:38 ` James Carlson
1 sibling, 0 replies; 12+ messages in thread
From: James Carlson @ 2009-10-05 17:38 UTC (permalink / raw)
To: linux-ppp
Davy Leon wrote:
> I have a question. Every time I dialup to the internet pppd executes an
> script called ip-up. My question is, everytime someone dials in it's
> executed too?
Yes. It's executed every time an IP interface is brought up by PPP.
Note that PPP itself knows nothing about dialing in or out; those are
attributes of the lower layer -- the chat script and modems or other
communications gear involved. PPP is symmetric and peer-to-peer.
There's no "client" or "server."
> If the answer is yes, how can I handle the script to
> execute one part when dianing out and another part when dialing in. I
> meant something like
The man page has a number of environment variables documented that you
could use for this task. $PEERNAME is fairly useful -- it will be set
only if you have an authenticated peer name.
If you have different devices for dialing in and out (it's often a good
idea to do this, but not always done), then $DEVICE might tell you what
you want to know.
If you want to get fancier, you can use $LINKNAME with the "linkname"
option.
The simple answer would be:
if [[ -n ${PEERNAME:+I_am_server} ]]; then
# the peer probably called me
else
# I'm probably dialing out
fi
But note that this is making a big assumption about authentication
configuration: that you always authenticate people calling you, and you
never authenticate people you call. That's how PPP is commonly used,
but there's nothing in the standards that _requires_ it to be used that way.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-10-05 17:38 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 16:38 ppp question Davy Leon
2009-10-05 17:33 ` Bill Unruh
2009-10-05 17:38 ` James Carlson
-- strict thread matches above, loose matches on Subject: below --
2002-09-27 0:00 PPP Question Heimo Claasen
2002-09-24 7:38 Peter
2002-09-24 15:27 ` Ray Olszewski
2002-09-25 2:31 ` Peter
2002-09-25 2:46 ` Ray Olszewski
2002-09-25 8:00 ` Peter
2002-09-25 15:21 ` Ray Olszewski
2002-09-26 2:12 ` Peter
2002-09-26 2:30 ` Ray Olszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.