Re: hamm/pppconfig?
John Hasler <john@dhh.gt.org> wrote:
>Larry writes:
>> The first time I tried pppconfig it worked perfectly, but I just tried
>> to change the phone number and now it won't connect.
>
>*Exactly* what did you do? *Exactly* what results did you get?
1) My provider changed its phone number, so I ran pppconfig to change
the phone number and pressed <enter> on everything else. (I know
that only the phone number was changed, because I use a DOS offline
reader with the same provider and that's all I had to change.)
2) When I ran PON I immediately noticed the following problem with PAP
authentication, so I thought I might have accidentally selected PAP instead
of CHAT when I changed the phone number.
Feb 20 20:36:04 debian pppd[216]: sent [PAP AuthReq id=0x1 user="ay903" password=""]
Feb 20 20:36:04 debian pppd[216]: rcvd [LCP EchoRep id=0x0 magic=0x30fe74d6]
Feb 20 20:36:05 debian pppd[216]: rcvd [PAP AuthNak id=0x1 "Invalid Login"]
Feb 20 20:36:05 debian pppd[216]: Remote message: Invalid Login
Feb 20 20:36:05 debian pppd[216]: PAP authentication failed
3) I ran pppconfig again and made sure to select CHAT this time and
pressed <enter> on everything else. But this had no effect, because
when I ran PON again the same PAP authentication message appeared.
I have rerun pppconfig numerous times being extremely careful to enter
everything correctly and I still get the same PAP authentication message.
>> I tried deleting /etc/ppp/peers/provider in an effort to erase the
>> defaults and start over, but when I ran pppconfig the defaults were
>> still there.
>
>What do you mean by the defaults? The default valuse displayed by
>pppconfig are not read from a file. They are generated internally by
>pppconfig when the provider files (/etc/chatscripts/provider and
>/etc/ppp/peers/provider) either don't exist or don't look right.
I thought pressing <enter> on all of my previous defaults except for the
change from PAP to CHAT might be causing pppconfig to think that nothing
was changed, so I was trying to get rid of my defaults and start over.
>> What files should I delete to get pppconfig back to where it was when I
>> first installed hamm?
>
>When you first installed hamm the ppp package installed a set of default
>files. Pppconfig ignored these and showed you its defaults. It then
>replaced the files installed by the ppp package with those it generated
>when you answered the questions.
>
>Look in /etc/chatscripts and /etc/ppp/peers for files named 'provider.bak'.
>Depending on exactly what you did, these files may contain your data.
>Rename each of them from 'provider.bak' to just 'provider' and run
>pppconfig again. If you are lucky your old data will come up. If not you
>will have to enter it all again.
I'm pretty sure there was only one provider.bak file in /etc/ppp/peers
and I must have accidentally deleted it. But this is not a problem, because
after I deleted all of the pppconfig files reentering my information was easy.
I just have no idea why changing the phone number with pppconfig would
cause a login failure? When I started using Debian a few months ago I
thought pppconfig was the easiest part of the whole installation.
Larry Fletcher
Redondo Beach, CA USA
P.S. Here's my /etc/ppp/peers/provider file:
# This file was generated by pppconfig. You can edit the following lines
# but please do not delete lines or the change the comments or you will
# confuse pppconfig.
noauth #pppconfig_noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider" #pppconfig_connect
debug #pppconfig_debug
/dev/ttyS0 #pppconfig_dev
115200 #pppconfig_speed
defaultroute #pppconfig_route
noipdefault #pppconfig_ipdefault
user ay903 #pppconfig_user
# End of pppconfig controlled lines. You can add lines below here without
# confusing pppconfig.
Reply to: