ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister


Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters




General discussions > Public newsgroups > alt.os.linux > PPP Connection problems

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread



Author PPP Connection problems
Steve Williams
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
PPP Connection problems

Hi!

I am having problems connecting to the internet using PPP using the pppd
command from bash. I can connect to the internet using KPPP but I want to
minimalise dependancy on KPPP and allow others in my house to Telnet it
and start the connection instead of having to put it on at the server.

I have reffered to http://www.tldp.org/HOWTO/ISP-Hookup-HOWTO-2.html and
the "Configuring system for Internet" page at http://www.linuxnow.com/ and
created my files to do so.

As you can see from /var/log/syslog it does not connect. It starts by
dialing the number, handshaking, and then it just hangs up again. Is there
anybody who can help me with this?

I am using Mandrake 8, pppd 2.4.1, and KPPP 2.0.9

[ START /usr/bin/wanup ]
#!/bin/sh

/usr/sbin/pppd call tiscali

[ END /usr/bin/wanup ]

[ START /etc/ppp/peers/tiscali ]
connect "/usr/sbin/chat -v -f /etc/chatscripts/tiscali"
crtscts
modem
/dev/ttyS0
115200
defaultroute
noipdefault
user meower@tiscali.co.uk
[ END /etc/ppp/peers/tiscali ]

[ START /etc/chatscripts/tiscali ]
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
"" ATZ
OK ATM
OK ATDT08089933031
TIMEOUT 35
CONNECT ""
[ END /etc/chatscripts/tiscali ]

[ START /etc/ppp/pap-secrets ]
# Secrets for authentication using PAP
# client server secret IP addresses
meower@tiscali.co.uk * MyPassword
[ END /etc/ppp/pap-secrets ]

[ START /var/log/syslog ]
Nov 19 15:10:00 poshbox pppd[7547]: pppd 2.4.1 started by root, uid 0
Nov 19 15:10:01 poshbox chat[7548]: abort on (BUSY)
Nov 19 15:10:01 poshbox chat[7548]: abort on (NO CARRIER)
Nov 19 15:10:01 poshbox chat[7548]: abort on (VOICE)
Nov 19 15:10:01 poshbox chat[7548]: abort on (NO DIALTONE)
Nov 19 15:10:01 poshbox chat[7548]: abort on (NO ANSWER)
Nov 19 15:10:01 poshbox chat[7548]: send (ATZ^M)
Nov 19 15:10:01 poshbox chat[7548]: expect (OK)
Nov 19 15:10:01 poshbox chat[7548]: ATZ^M^M
Nov 19 15:10:01 poshbox chat[7548]: OK
Nov 19 15:10:01 poshbox chat[7548]: -- got it
Nov 19 15:10:01 poshbox chat[7548]: send (ATM^M)
Nov 19 15:10:01 poshbox chat[7548]: expect (OK)
Nov 19 15:10:01 poshbox chat[7548]: ^M
Nov 19 15:10:02 poshbox chat[7548]: ATM^M^M
Nov 19 15:10:02 poshbox chat[7548]: OK
Nov 19 15:10:02 poshbox chat[7548]: -- got it
Nov 19 15:10:02 poshbox chat[7548]: send (ATDT08089933031^M)
Nov 19 15:10:02 poshbox chat[7548]: timeout set to 35 seconds
Nov 19 15:10:02 poshbox chat[7548]: expect (CONNECT)
Nov 19 15:10:02 poshbox chat[7548]: ^M
Nov 19 15:10:26 poshbox chat[7548]: ATDT08089933031^M^M
Nov 19 15:10:26 poshbox chat[7548]: CONNECT
Nov 19 15:10:26 poshbox chat[7548]: -- got it
Nov 19 15:10:26 poshbox chat[7548]: send (^M)
Nov 19 15:10:26 poshbox pppd[7547]: Serial connection established.
Nov 19 15:10:26 poshbox pppd[7547]: Using interface ppp0
Nov 19 15:10:26 poshbox pppd[7547]: Connect: ppp0 <--> /dev/ttyS0
Nov 19 15:10:26 poshbox /etc/hotplug/net.agent: assuming ppp0 is already
up
Nov 19 15:10:46 poshbox pppd[7547]: Hangup (SIGHUP)
Nov 19 15:10:46 poshbox pppd[7547]: Modem hangup
Nov 19 15:10:46 poshbox pppd[7547]: Connection terminated.
Nov 19 15:10:46 poshbox /etc/hotplug/net.agent: NET unregister event not
supported
Nov 19 15:10:47 poshbox pppd[7547]: Exit.
[ END /var/log/syslog ]

Report this post to a moderator

Old Post 11-19-02 03:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
Zed
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: PPP Connection problems

On Tue, 19 Nov 2002 14:25:48 +0000, Steve Williams wrote:

> I am using Mandrake 8, pppd 2.4.1, and KPPP 2.0.9
>
> [ START /usr/bin/wanup ]
> #!/bin/sh
>
> /usr/sbin/pppd call tiscali
>
> [ END /usr/bin/wanup ]
>
> [ START /etc/ppp/peers/tiscali ]
> connect "/usr/sbin/chat -v -f /etc/chatscripts/tiscali"
> crtscts
> modem
> /dev/ttyS0
> 115200
> defaultroute
> noipdefault
> user meower@tiscali.co.uk


Shouldn't this be just your username of "meower"?

> [ START /etc/ppp/pap-secrets ]
> # Secrets for authentication using PAP
> # client server secret IP addresses
> meower@tiscali.co.uk * MyPassword


Ditto.

> [ START /var/log/syslog ]


You can get more detailed logs from pppd by adding the word "debug" to
your /etc/ppp/options file.

Zed


Report this post to a moderator

Old Post 11-20-02 03:24 PM
Reply w/Quote Edit/Delete Message IP: Logged
Chrome Plated Steve
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: PPP Connection problems

On 20 Nov 2002, "Zed" <hendersn@zeta.org.au> enlightened
alt.os.linux.mandrake with this gem:

> On Tue, 19 Nov 2002 14:25:48 +0000, Steve Williams wrote:
>
>> I am using Mandrake 8, pppd 2.4.1, and KPPP 2.0.9
>>
>> [ START /usr/bin/wanup ]
>> #!/bin/sh
>>
>> /usr/sbin/pppd call tiscali
>>
>> [ END /usr/bin/wanup ]
>>
>> [ START /etc/ppp/peers/tiscali ]
>> connect "/usr/sbin/chat -v -f /etc/chatscripts/tiscali"
>> crtscts
>> modem
>> /dev/ttyS0
>> 115200
>> defaultroute
>> noipdefault
>> user meower@tiscali.co.uk

>
> Shouldn't this be just your username of "meower"?


It's supposed to carry @tiscali.co.uk.

>> [ START /etc/ppp/pap-secrets ]
>> # Secrets for authentication using PAP
>> # client server secret IP addresses
>> meower@tiscali.co.uk * MyPassword

>
> Ditto.
>
>> [ START /var/log/syslog ]

>
> You can get more detailed logs from pppd by adding the word "debug" to
> your /etc/ppp/options file.


Thanks Zed, after spending more time at Deja I came across Unruh's guide
to connecting, and needless to say his methods were higly effective. I've
not got it to work

My next project, to have it started by logging on as "neton" and to stop
by loggin on as "netoff" is already complete.

Now I am left with the more interesting project of getting it started and
stopped through a web browser on another machine in my house

--
Super Shiny Chrome Plated Steve

Owner, managing director, and mop-boy to alt.fan.steve-williams,
Highly classy person who likes posh things,
And complete and utter XXXXXXX.

Report this post to a moderator

Old Post 11-20-02 11:24 PM
Reply w/Quote Edit/Delete Message IP: Logged
Bill Unruh
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: PPP Connection problems

Chrome Plated Steve <hello@how.are.you> writes:

]On 20 Nov 2002, "Zed" <hendersn@zeta.org.au> enlightened
]alt.os.linux.mandrake with this gem:

]> On Tue, 19 Nov 2002 14:25:48 +0000, Steve Williams wrote:
]>
]>> I am using Mandrake 8, pppd 2.4.1, and KPPP 2.0.9
]>>
]>> [ START /usr/bin/wanup ]
]>> #!/bin/sh
]>>
]>> /usr/sbin/pppd call tiscali
]>>
]>> [ END /usr/bin/wanup ]
]>>
]>> [ START /etc/ppp/peers/tiscali ]
]>> connect "/usr/sbin/chat -v -f /etc/chatscripts/tiscali"
]>> crtscts
]>> modem
]>> /dev/ttyS0
]>> 115200
]>> defaultroute
]>> noipdefault
]>> user meower@tiscali.co.uk
]>
]> Shouldn't this be just your username of "meower"?

]It's supposed to carry @tiscali.co.uk.

]>> [ START /etc/ppp/pap-secrets ]
]>> # Secrets for authentication using PAP
]>> # client server secret IP addresses
]>> meower@tiscali.co.uk * MyPassword
]>
]> Ditto.
]>
]>> [ START /var/log/syslog ]
]>
]> You can get more detailed logs from pppd by adding the word "debug" to
]> your /etc/ppp/options file.

]Thanks Zed, after spending more time at Deja I came across Unruh's guide
]to connecting, and needless to say his methods were higly effective. I've
]not got it to work

Either this is irony or a misspelling. Was that supposed to be "now"?


]My next project, to have it started by logging on as "neton" and to stop
]by loggin on as "netoff" is already complete.

]Now I am left with the more interesting project of getting it started and
]stopped through a web browser on another machine in my house

Boy, talk about hitting a peanut with a pile driver. Why not just do
ssh other-machine pppon
and
ssh othermachine pppoff

You could even make a little icon on your desktop that does that.
Alternatively, put in the demand option, and route your other machine
through the ppp machine, so that when that machine tries to send a
packet onto the net, your machine automatically starts pppd.



Report this post to a moderator

Old Post 11-21-02 03:24 AM
Reply w/Quote Edit/Delete Message IP: Logged
Chrome Plated Steve
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
Re: PPP Connection problems

On 21 Nov 2002, unruh@string.physics.ubc.ca (Bill Unruh) enlightened
alt.os.linux.mandrake with this gem:

> Chrome Plated Steve <hello@how.are.you> writes:
>
> ]On 20 Nov 2002, "Zed" <hendersn@zeta.org.au> enlightened
> ]alt.os.linux.mandrake with this gem:
>
> ]> On Tue, 19 Nov 2002 14:25:48 +0000, Steve Williams wrote:
> ]>
> ]>> I am using Mandrake 8, pppd 2.4.1, and KPPP 2.0.9
> ]>>
> ]>> [ START /usr/bin/wanup ]
> ]>> #!/bin/sh
> ]>>
> ]>> /usr/sbin/pppd call tiscali
> ]>>
> ]>> [ END /usr/bin/wanup ]
> ]>>
> ]>> [ START /etc/ppp/peers/tiscali ]
> ]>> connect "/usr/sbin/chat -v -f /etc/chatscripts/tiscali"
> ]>> crtscts
> ]>> modem
> ]>> /dev/ttyS0
> ]>> 115200
> ]>> defaultroute
> ]>> noipdefault
> ]>> user meower@tiscali.co.uk
> ]>
> ]> Shouldn't this be just your username of "meower"?
>
> ]It's supposed to carry @tiscali.co.uk.
>
> ]>> [ START /etc/ppp/pap-secrets ]
> ]>> # Secrets for authentication using PAP
> ]>> # client server secret IP addresses
> ]>> meower@tiscali.co.uk * MyPassword
> ]>
> ]> Ditto.
> ]>
> ]>> [ START /var/log/syslog ]
> ]>
> ]> You can get more detailed logs from pppd by adding the word "debug"
> ]> to your /etc/ppp/options file.
>
> ]Thanks Zed, after spending more time at Deja I came across Unruh's
> ]guide to connecting, and needless to say his methods were higly
> ]effective. I've not got it to work
>
> Either this is irony or a misspelling. Was that supposed to be "now"?


Spelling mistake. I have indeed got it to work... but as soon as I go out
of the house for more than five minutes the /dev/ttyS0 permissions get
reset so no-one other than me can get the damn thing to work... but a
solution to that is on the way.

> ]My next project, to have it started by logging on as "neton" and to
> ]stop by loggin on as "netoff" is already complete.
>
> ]Now I am left with the more interesting project of getting it started
> ]and stopped through a web browser on another machine in my house
>
> Boy, talk about hitting a peanut with a pile driver. Why not just do
> ssh other-machine pppon
> and
> ssh othermachine pppoff


That's what we're doing at the moment, to put the Internet on you telnet
through and log in as "neton" (which has the "pppon" command in
..bash_login)

> You could even make a little icon on your desktop that does that.
> Alternatively, put in the demand option, and route your other machine
> through the ppp machine, so that when that machine tries to send a
> packet onto the net, your machine automatically starts pppd.


I was thinking of doing that. But I think that would start a war in my
house! Every time someone logs into their computer (it will probably start
some instant messenger) the Internet will get fired up. If we weren't
using the same phone line for phone calls and Internet that wouldn't
matter.

As soon as I can get hold of a reasonable ADSL modem that will work with
Linux, however, it wont matter any more

--
Super Shiny Chrome Plated Steve

Owner, managing director, and mop-boy to alt.fan.steve-williams,
Highly classy person who likes posh things,
And complete and utter XXXXXXX.

Report this post to a moderator

Old Post 11-22-02 08:24 PM
Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply


Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps