Tech Support > Operating Systems > Linux / Variants > Pppd question??
Pppd question??
Posted by Ishwar Rattan on December 3rd, 2003


On a serial line (/dev/modem), dialup connection has been set manually
PPP chars are visible..) -- then --

What is correct invocation of pppd to start using this link to talk
PPP to the other-end (dialup end)?

Thanks in advance.
-ishwar

Posted by Molchun on December 3rd, 2003


Ishwar Rattan wrote:

As somebody said before 'man pppd' will tell you almost everything you need
to know. But I remember my "suffering" in pre-DSL days trying top oblige
some M$ oriented ISPs so here are some tips.

The simplest way to initiate the connection is 'pppd call myisp'.
For this to work you need to have a file called 'myisp' in /etc/ppp/pears
and pppd must be SUI. In the myisp file put all the connection settings for
this particular account (myisp), you can have several. The 'myisp file is
not a script (not executable). Here is the example of what I used to have
in this file for my 'freeserve' account:

------ cut ----------

/dev/tts/0 115200
-pap
user myusername
ipparam freeserve
connect 'chat -s -v -t 100 -f /etc/ppp/chatscript -T 08089916001'

-------- cut -------

in here you put the specific 'myisp' options and the chat invocation
parameters. 'chat' is the actual program that talks to your modem.
As you see among the 'chat' parameters you have to provide the chatscript
which can reside anywhere as long as you let 'chat' know where it is.
Here is my chatscript:

------ cut -----

ABORT 'NO DIALTONE'
ABORT ERROR
ABORT 'NO ANSWER'
ABORT BUSY
ABORT 'NO CARRIER'
'' "AT&F"
OK ATM1L1
OK "ATDT\T"
CONNECT '\d\c'

------- cut -------

All the general options that apply to all accounts go into /etc/ppp/options
which looks like this:

----- cut -------

lock
asyncmap 0
crtscts
modem
noipdefault
updetach
defaultroute
usepeerdns
noauth

------ cut --------

Ah, almost forgot, your account password goes into pap-secrets or
chap-secrets files (depending on what authentication your ISP uses) and
they reside in /etc/ppp. Put just one line in both of those files, like
this: 'username * passwd'

That's about it - easy. But DO read the manual there are other ways to play
with pppd like how to invoke your 'fetchmail' upon connection etc.

Cheers.

--
Jabber: molchun@jabber.org
PGP ID: 0x304563A8


Posted by Ransom on December 3rd, 2003


Ishwar Rattan wrote:

man pppd
In the 'Examples' section you'll find what you want.

Ransom
--
For real email get public key 0xF6BB5695 from www.keyserver.net

Posted by Anonymous on December 3rd, 2003


"M" == Molchun <molchun@REMOVEbluerealm.co.uk>:
M> For this to work you need to have a file called 'myisp' in /etc/ppp/pears

Minor typo. The file must be in /etc/ppp/peers

-=-
This message was posted via two or more anonymous remailing services.




Posted by Molchun on December 3rd, 2003


Anonymous wrote:

Thank you .
That shows how hungry I was dreaming about pears.

--
Jabber: molchun@jabber.org
PGP ID: 0x304563A8



Similar Posts