Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOW2 ppp connect with Deb-Lenny?

22 views
Skip to first unread message

no.to...@gmail.com

unread,
May 17, 2010, 7:45:28 PM5/17/10
to
I've only got an old-fashion dial-up & ppp connection, which I've been using for
'non-debian' linux.

For years I've been using a connect script that looks like:-
pppd lcp-echo-interval 300 lcp-echo-failure 4 connect '
chat -v "" ATZ OK ATX OK ATM2DT0123070301 CONNECT "" TIMEOUT 299 ' \
/dev/ttyS1 115200 debug crtscts modem defaultroute : name "......."

I need to fetch some file via a PC which has Debian Lenny [no X] installed.

`locate ppp` indicates that
/lib/modules/...kernel/drivers/net/
has 8 different ppp* files.

How can I connect via my standard dial-up modem ?

With my script that called pppd, I was able to see if/when a connection was made
by using 'tail -f /var/log/messages'. How will Deb-Lenny tell me that the ppp
connection is made ?

Thanks for any info.

== Chris Glur.

SteveW

unread,
May 20, 2010, 9:45:03 PM5/20/10
to

I use these 3 programs for dialup configuration and usage. Although I
don't use Debian, they all appear to exist in Lenny:

Step-by-step walkthrough configuration. It creates the required config
files and chat scripts, and has useful descriptions of the available
options:
http://packages.debian.org/stable/admin/pppconfig

Connect and disconnect using the commands pon and poff:
http://packages.debian.org/lenny/ppp

Display status of ppp connection:
http://packages.debian.org/lenny/pppstatus

no.to...@gmail.com

unread,
May 24, 2010, 10:40:01 PM5/24/10
to
In article <0fa527ec-0545-4519...@31g2000prc.googlegroups.com>, SteveW <stev...@yahoo.com> wrote:

> On May 17, 4:45=A0pm, no.top.p...@gmail.com wrote:
> > I've only got an old-fashion dial-up & ppp connection, which I've been us=


> ing for
> > 'non-debian' linux.
> >
> > For years I've been using a connect script that looks like:-

> > =A0 pppd =A0lcp-echo-interval 300 lcp-echo-failure 4 =A0connect '
> > =A0 chat -v "" ATZ OK ATX OK ATM2DT0123070301 CONNECT "" TIMEOUT 299 ' \
> > =A0 /dev/ttyS1 115200 debug crtscts modem defaultroute : name "......."


> >
> > I need to fetch some file via a PC which has Debian Lenny [no X] installed.
> >
> > `locate ppp` indicates that

> > =A0 /lib/modules/...kernel/drivers/net/


> > has 8 different ppp* files.
> >
> > How can I connect via my standard dial-up modem ?
> >

> > With my script that called pppd, I was able to see if/when a connection w=
> as made
> > by using 'tail -f /var/log/messages'. How will Deb-Lenny tell me that the=


> ppp
> > connection is made ?
> >
> > Thanks for any info.
> >

> > =3D=3D Chris Glur.


>
> I use these 3 programs for dialup configuration and usage. Although I
> don't use Debian, they all appear to exist in Lenny:
>
> Step-by-step walkthrough configuration. It creates the required config
> files and chat scripts, and has useful descriptions of the available
> options:
> http://packages.debian.org/stable/admin/pppconfig
>
> Connect and disconnect using the commands pon and poff:
> http://packages.debian.org/lenny/ppp
>

THANKS !!
And with: `tail -f /var/log/messages`
I can see it PAP-connecting to my ISP; but an
error message re. <can't locate the http/S>.

So I'm guessing the DNS/s need to be entered somewhere;
and `apropos DNS` didn't tell me HOW2.
Please advise how to enter DNS info.

== Chris Glur.

SteveW

unread,
May 26, 2010, 7:36:44 PM5/26/10
to
On May 24, 7:40 pm, no.top.p...@gmail.com wrote:

I don't have the information right here at hand, so I'm reconstructing
it from memory, but it might lead you in the right direction.

There are two ways to configure your DNS lookup service, dynamic (your
ISP provides you with their DNS info each time you connect) and static
(you manually set the IP addresses to use).

I use the static method, using the two IP addresses provided by
OpenDNS. I create a file (by default that file doesn't exist) called /
etc/resolv.conf and enter the two IP addresses in the required format.
I think "man resolv.conf" gives more info. When there is a file at /
etc/resolv.conf, it is used for all DNS lookups; that is, I believe it
overrides any DNS settings that exist anywhere else, so it isn't
connection dependent. That's what I wanted because I prefer OpenDNS to
my ISP's DNS service.

For the dynamic DNS method, run pppconfig and go carefully through all
the setup screens. I believe one of the options has "DNS" in its
label, and the instructions walk you through the possibilities. If you
want your ISP to give you its DNS IP addresses each time you connect,
choose the option that sounds most like that in its description. "man
pppconfig" might have more info, too.

AJackson

unread,
May 28, 2010, 2:13:55 PM5/28/10
to
...

>
> THANKS !!
> And with: `tail -f /var/log/messages`
>  I can see it PAP-connecting to my ISP; but an
>  error message re. <can't locate the http/S>.

http/S ???
Have you an error in a URL somewhere?
Shouldn't it be http:// instead?

> So I'm guessing the DNS/s need to be entered somewhere;
>  and `apropos DNS` didn't tell me HOW2.
> Please advise how to enter DNS info.

Install tha package resolvconf, and ppp will set up the domain name
resolution for you.

When a computer program want to use DNS ->IP (or any other DNS
question), it calls clib. The C library check how to resolve the
question with /etc/nsswitch.conf (look in manual page for more
information, you want to look for the "hosts:" line to get to-from
name - IP-number).
You want to look like this there.

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

It means first look in files (the file /etc/hosts) then Avahil (mDNS,
host.local domain names), then DNS (/etc/resolv.conf) and lastly all
info from mDNS. (minimal would be "hosts: files dns").

To use DNS, clib look into /etc/resolv.conf to know which DNS-servers
to look for DNS-servers.

The package resolvconf is some scripts that handles that file
"automaticly" by ppp, dhcp or /etc/network/interfaces
This is prob. what you want. Editing the file directly can easily
become messy, been there done that :(

So if you set up /etc/network/interfaces to use "static" IP-address,
you can use argument "dns-nameservers 11.12.13.14" to set dns servers
to use for that interface 11.12.13.14. Look into "man resolvconf" for
more information. If you use "dhcp", that is automatic information
from your IPS, you don't need to do anyting, unless you want to use
DNS-servers of your own. And if you use PPP, the pppd-daemon will set
up DNS-servers for you.

so:
1) Install "resolvconf"
2) Set up any static DNS-servers in /etc/network/interfaces if you
want/need for the interfaces that needs this. Interfaces with dhcp
and ppp will handle this automaticly, and "lo" interface should never
be changed.
3) Connect to Internet with the method you like.

Good luck.

AJackson

unread,
May 28, 2010, 2:18:41 PM5/28/10
to
On May 27, 1:36 am, SteveW <steve2...@yahoo.com> wrote:
> On May 24, 7:40 pm, no.top.p...@gmail.com wrote:

...

>
> I don't have the information right here at hand, so I'm reconstructing
> it from memory, but it might lead you in the right direction.
>
> There are two ways to configure your DNS lookup service, dynamic (your
> ISP provides you with their DNS info each time you connect) and static
> (you manually set the IP addresses to use).

Dynamicly through DHCP, which will give you at least IP, Netmask and
DNS-servers when you connect through this internet interface.
Staticly where you set IP, Netmask and DNS-servers for an interface to
network yourself.

You could manage /etc/resolv.conf by yourself, but using the package
"resolvconf" is much easier in Debian. You do not need to mess with /
etc/resolv.conf for each connection method you have.

Good luck

no.to...@gmail.com

unread,
Jun 7, 2010, 10:17:40 PM6/7/10
to
In article <de252278-71d4-4956...@j12g2000pri.googlegroups.com>, nobody wrote:

>> --SNIP --


> > Please advise how to enter DNS info.
> >
>

> I don't have the information right here at hand, so I'm reconstructing
> it from memory, but it might lead you in the right direction.
>
> There are two ways to configure your DNS lookup service, dynamic (your
> ISP provides you with their DNS info each time you connect) and static
> (you manually set the IP addresses to use).
>
> I use the static method, using the two IP addresses provided by
> OpenDNS. I create a file (by default that file doesn't exist) called

> /etc/resolv.conf and enter the two IP addresses in the required format.

No ! my /etc/resolv.conf has a header comment not to edit by hand.
And the man resolvconf refers to the package README.
What the hell is wrong with Debian management ?!

> I think "man resolv.conf" gives more info. When there is a file at

> /etc/resolv.conf, it is used for all DNS lookups; that is, I believe it


> overrides any DNS settings that exist anywhere else, so it isn't
> connection dependent. That's what I wanted because I prefer OpenDNS to
> my ISP's DNS service.
>
> For the dynamic DNS method, run pppconfig and go carefully through all
> the setup screens. I believe one of the options has "DNS" in its
> label, and the instructions walk you through the possibilities. If you
> want your ISP to give you its DNS IP addresses each time you connect,
> choose the option that sounds most like that in its description. "man
> pppconfig" might have more info, too.
>

I ran `resolvconf -u`, which gave no feed-back, hoping to get
something updated.

Linux slackware 3, RH6.2, Caldera, Mandrake9, FC1 ...all
don't have these Debian problem/S.

IIRC, you just enter the 2 prefered DNS-IP's somewhere,
as indeed Debian has required too in pppconfig.

no.to...@gmail.com

unread,
Jun 7, 2010, 10:17:59 PM6/7/10
to

> > And with: `tail -f /var/log/messages`

> > =A0I can see it PAP-connecting to my ISP; but an
> > 0error message re. <can't locate the http/S>.
> ...


> http/S ???
> Have you an error in a URL somewhere?
> Shouldn't it be http:// instead?
>

OK, my bad abreviation choice for: 'http-type-fetch[s]'
'dog' = one-dog; 'dog/S' = one-or-more-dogs.
> ...


> > Please advise how to enter DNS info.
>
> Install tha package resolvconf, and ppp will set up the domain name
> resolution for you.
>

I installed resolvconf and from my previous description ppp must
have been installed.

> When a computer program want to use DNS ->IP (or any other DNS
> question), it calls clib. The C library check how to resolve the

> SNIP many lines !!


> to use for that interface 11.12.13.14. Look into "man resolvconf" for

> SNIP many lines !!
> Good luck.

NO I don't want to nee luck!
During the last millenium I started using slackware 3, then rh 6.2..
Mandrake 9..FC1, and I've never had to do more than enter my 2 DNS
that the ISP originally gave me [in the days of Win 3.1].

What is wrong with the Debian control-freak designers, who make
programs to create simple text-scripts, instead of TRANSPARENTLY
inviting the user to edit his own scripts ?
> ======== addition ==


> > There are two ways to configure your DNS lookup service, dynamic (your
> > ISP provides you with their DNS info each time you connect) and static
> > (you manually set the IP addresses to use).
>

> Dynamicly through DHCP, which will give you at least IP, Netmask and
> DNS-servers when you connect through this internet interface.
> Staticly where you set IP, Netmask and DNS-servers for an interface to
> network yourself.
>
> You could manage /etc/resolv.conf by yourself, but using the package
> "resolvconf" is much easier in Debian. You do not need to mess with /
> etc/resolv.conf for each connection method you have.
>
> Good luck

> .
I don't want to know about 'Netmask or DHCP'.
I've got no ETHx. Just dial-up, with dynamic IP; which now
pap-confirms as seen by `tail -f /var/log/messages`

Mumia W.

unread,
Jun 8, 2010, 6:09:31 AM6/8/10
to
On 06/07/2010 09:17 PM, no.to...@gmail.com wrote:
> In article <de252278-71d4-4956...@j12g2000pri.googlegroups.com>, nobody wrote:
>
>>> --SNIP --
>>> Please advise how to enter DNS info.
>>>
>> I don't have the information right here at hand, so I'm reconstructing
>> it from memory, but it might lead you in the right direction.
>>
>> There are two ways to configure your DNS lookup service, dynamic (your
>> ISP provides you with their DNS info each time you connect) and static
>> (you manually set the IP addresses to use).
>>
>> I use the static method, using the two IP addresses provided by
>> OpenDNS. I create a file (by default that file doesn't exist) called
>> /etc/resolv.conf and enter the two IP addresses in the required format.
>
> No ! my /etc/resolv.conf has a header comment not to edit by hand.

Mine doesn't because I disabled the "usepeerdns" option in
/etc/ppp/peers/provider.

> And the man resolvconf refers to the package README.
> What the hell is wrong with Debian management ?!

> [...]

Nothing. Read "man pppd." If "usepeerdns" is enabled, pppd sets the
USEPEERDNS environment variable when invoking /etc/ppp/ip-up, and
/etc/ppp/ip-up runs the scripts in /etc/ppp/ip-up.d. The debian-supplied
script /etc/ppp/ip-up.d/0000usepeerdns copies the peer dns settings to
/etc/resolv.conf, but that only happens if USEPEERDNS is set.

OT: Why is "Re (3):" in the subject line?

Harold Stevens

unread,
Jun 8, 2010, 8:17:04 AM6/8/10
to
In <FcudnQ-T3rCOv5PR...@earthlink.com> Mumia W.:

[Snip...]

> OT: Why is "Re (3):" in the subject line?

IMO: this troll's curious attempt to avoid thread plonks. Anybody yelling
about editing resolv.conf like it's some sort of Holy Writ, and Debian in
general for deliberate sabotage, isn't interested in anything useful.

--
Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon any bogus email addresses (wookie) in place for spambots.
Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
I toss GoogleGroup (http://twovoyagers.com/improve-usenet.org/).

SteveW

unread,
Jun 8, 2010, 11:05:06 AM6/8/10
to

At the risk of confusing things even worse, I do want to clarify that
when I referred to "static" vs "dynamic", I was not using the terms in
a formal sense. I meant them as "always the same" vs "changes each
time you connect", and I meant them only with regard to my *DNS* IP
addresses, not the IP address assigned to me when I connect to the
internet.

In other words, by manually editing /etc/resolv.conf, I permanently
set the 2 IP addresses of my DNS service provider (to OpenDNS), and my
computer will use that DNS provider for all connections no matter
what. When I connect to the internet, my ISP might still send me the
IP addresses of its own DNS lookup service (I don't know), but my
computer ignores it, and uses OpenDNS instead.

In Ubuntu, if I recall correctly (might not), there was no file /etc/
resolv.conf until I created it, so there was no warning not to edit
it. I believe (can't check right now) that there *are* one or more
resolv.conf files in subdirectories of /etc/, that are specific to a
particular connection. The configuration setup of ppp seems to be a
confusing tangle of files, but I'm just glad it works. The key to
getting my connection working correctly was carefully going thru
pppconfig, studying every option until I could understand it and know
how to select the correct setting. As a result, pon/poff works
reliably, while wvdial and GnomePPP applet have never worked
successfully for me. (dialup internet using internal linmodem).

AJackson

unread,
Jun 9, 2010, 7:55:49 PM6/9/10
to
On Jun 8, 5:05 pm, SteveW <steve2...@yahoo.com> wrote:
> On May 28, 11:18 am, AJackson <anders.jack...@gmail.com> wrote:
>
> > On May 27, 1:36 am, SteveW <steve2...@yahoo.com> wrote:
>
> > You could manage /etc/resolv.conf by yourself, but using the package
> > "resolvconf" is much easier in Debian.  You do not need to mess with /
> > etc/resolv.conf for each connection method you have.
>
> > Good luck
>
> At the risk of confusing things even worse, I do want to clarify that
> when I referred to "static" vs "dynamic", I was not using the terms in
> a formal sense. I meant them as "always the same" vs "changes each
> time you connect", and I meant them only with regard to my *DNS* IP
> addresses, not the IP address assigned to me when I connect to the
> internet.

That is not confusing, it rather tells me what you actually want to
do.
It's still easy to do with Debian and resolvconf. Read the man pages
for resolveconf.

You can set up all this stuff in /etc/network/interfaces for PPP and
pon/poff do the pppd and let resolvconf handle DNS for you.
If you want the same DNS on ALL your network connections, not just
ppp, then you could remove the package resolveconf and set up /etc/
resolv.conf manually. The risk is that some package could try to
manage your DNS manually, overwriting your /etc/resolv.conf (which is
the mess that resulted in the command and package resolvconf)

So. Without resolvconf package, it's like old days. With all mess
about different network settings trying to get control over the DNS
and contents of /etc/resolv.conf You don't want that. Been there (a
loong time ago) and done that. Don't want to go near that again.

Or you use package resolvconf, and set up DNS as statis in /etc/
network/interfaces as usuall in Debian (and in Ubuntu).

Those other files in /etc/resolvconf.d is not for you to tinker with,
without reading the man pages and documentation in /usr/share/doc/
resolvconf/* first. And not even then...

> In other words, by manually editing /etc/resolv.conf, I permanently
> set the 2 IP addresses of my DNS service provider (to OpenDNS), and my
> computer will use that DNS provider for all connections no matter
> what. When I connect to the internet, my ISP might still send me the
> IP addresses of its own DNS lookup service (I don't know), but my
> computer ignores it, and uses OpenDNS instead.

Set up ppp in /etc/network/interfaces and handle DNS there.

> In Ubuntu, if I recall correctly (might not), there was no file /etc/
> resolv.conf until I created it, so there was no warning not to edit
> it. I believe (can't check right now) that there *are* one or more
> resolv.conf files in subdirectories of /etc/, that are specific to a
> particular connection. The configuration setup of ppp seems to be a
> confusing tangle of files, but I'm just glad it works. The key to
> getting my connection working correctly was carefully going thru
> pppconfig, studying every option until I could understand it and know
> how to select the correct setting. As a result, pon/poff works
> reliably, while wvdial and GnomePPP applet have never worked
> successfully for me. (dialup internet using internal linmodem).

Ubuntu works as Debian in this respect. No difference there.
There is a /etc/resolv.conf in all Linux/Unixes as they are based on
the same (in functionality) libc and nssconf libraries.

Good luck.

no.to...@gmail.com

unread,
Oct 4, 2010, 5:49:51 AM10/4/10
to

man pppd | wc -l = 1827 > 30 pages A4 !!
I added the word 'usepeerdns' to my pppScript, which now looks like:--


pppd lcp-echo-interval 300 lcp-echo-failure 4 connect '

chat -v "" ATZ OK ATX OK ATM2DT0113407501 CONNECT "" TIMEOUT 99 ' \
/dev/ttyS1 115200 debug crtscts modem defaultroute : name "2nm4nx6x@za"

But the <fail resolve error> persists.
And `env | grep DNS` is empty.

> OT: Why is "Re (3):" in the subject line?

Obviously: it's my 3rd reply-cycle

BTW, every time I test this dog, it costs me dial-up charges.


0 new messages