*BSD News Article 55573


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!yarrina.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!EU.net!Germany.EU.net!news.dfn.de!news.dkrz.de!tubsibr!rznb27.rz.tu-bs.de!y0001415
From: y0001415@ws.rz.tu-bs.de (Martin Butkus)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: iijppp questions
Date: 28 Nov 1995 18:00:36 GMT
Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
Lines: 127
Distribution: world
Message-ID: <49fio5$r19@ra.ibr.cs.tu-bs.de>
References: <49agd8$8dh@hermes.acs.unt.edu>
NNTP-Posting-Host: rznb27.rz.tu-bs.de
X-Newsreader: TIN [version 1.2 PL2]

Kwang Bae Min (kbm0001@jove.acs.unt.edu) wrote:
:  set phone 1234567
:  disable chap
:  deny chap
:  enable pap
:  accept pap
:  set authname mypppac
:  set authkey  myppppw
:  set login "TIMEOUT 60 command:-\\r-command: ppp"
:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 	   (I am not 100% sure if this is proper, in view of the way
: 	    my ISP's menu works - section 2 above.)
: 	    [Q1] Is this OK?

As the "dial OK" and "login OK" messages appeared, I think yes, they're OK.

:  set timeout 0
:  set ifaddr 0 0

: /etc/ppp/ppp.linkup
: -------------------
: MYADDR:
:  add 0 0 HISADDR
: (Note: MYADDR and HISADDR are literally there. I am not sure if MYADDR
:  macro is built-in in iijppp. Because of dynamic IP assignment, I just
:  left it as above.) [Q2] Is it OK?

Nope. These have to be the numerical IP adresses of your box (MYADDR)
and the IP gateway (router) of your ISP (HISADDR) respectively.
I don't know what to specify for MYADDR when using dynamic IP assignment
(maybe "default"?) but you should be able to specify HISADDR. This will
set a default route to the ppp gateway after linkup.

: /etc/ppp/ppp.secret
: -------------------
: mypc  		MYPCPW  	10.0.0.1
:                                 ^^^^^^^^
: 				[Q3] Is this OK?

Good heavens! No, it's NOT OK to post your password in a newsgroup! 
What do you think the word "secret" stands for? ;-) 

Now this "MYPCPW" has to be set to the password that your ISP gave you.
It obviously isn't set correctly in your configuration (see below).
I don't think the IP address 10.0.0.1 is correct, either. (Does it belong 
there, anyway?) Consult the manpage for (iij)ppp please.

: [Q5] Only a few minutes after booting, the following error message shows
:      up on the console.  I am totally clueless why it happens and what
:      I have done wrong in iijppp configuration.
:      What should I do to correct this problem?

I have no clue. Maybe you should fix the other bugs in your config first and
try again. 
Do you want to do dial-on-demand PPP? Maybe you just forgot to have a
"ppp -auto" in your /etc/rc.local file??

: 5) Why ppp connection not established?
: ======================================

: Now, I reboot the machine, again, yes again, in order to test iijppp
: before the route-to-tun0 problem occurs.

: Tesing iijppp: (My test of iijppp proceeded as follows:)
:  1)  mypc# ppp
:  2)  User Process PPP. Written by Toshiharu OHNO.
:  3)  Log level is 09
:  4)  Using interface: tun0
:  5)  Interactive mode
:  6)  ppp on mypc> passwd MYPCPW
:  7)  ppp ON mypc> dial abc
:  8)  dial OK!
:  9)  login OK!
:  11) ppp ON mypc> Packet mode.
:  12) ppp ON mypc> 
:  13) ppp ON mypc> quit
:  14) mypc#

:  [Q6]
:  It took some time (about a minute or so) between 8) and 9).

The login script seems to work well then.

:  Then 11) and 12) show up by themselves. (I did not hit Enter key at 12).)
:  At step 12), I can hear the modem dropping the line.
:  The 'ppp ON mypc>' prompt does not change to 'PPP ON mypc>'
:  as explined in the iijppp manual, i.e., it seems ppp connection
:  is not established.
:  What has gone wrong and what should I do?

I think that authenticitation (PAP) has gone wrong, i.e. your password might
have been been specified incorrectly. See below.

The connection to your ISP was established successfully and ppp mode was
enabled. The authenticitation phase begins.

: 11-26 10:27:51 [141] LCP: LayerUp
: 11-26 10:27:51 [141] Phase: Authenticate
: 11-26 10:27:51 [141]  his = c023, mine = c023
			      ^^^^^^^^^^^^^^^^^

this doesn't look too good ... maybe the MYADDR/HISADDR problem ...

: 11-26 10:27:51 [141] PAP: mypppac (myppppw)
			             ^^^^^^^
your password ...

: 11-26 10:27:51 [141] PapInput: REQUEST
: 11-26 10:27:51 [141] PapOutput: NAK

NAK = not acknowledged. PAP verification has been wrong.
So your problem is in /etc/ppp/ppp.secret.

: Thank you very much,


You're welcome. I hope that this helps you. I know from my own experience that
ppp configuration is not an easy task, esp. if you don't know that much
about networking. BTW, what I tell you may be complete crap, so don't be
too much surprised if it doesn't work. The only time I had to configure
a ppp link was when I wanted to connect my box at home to campus so I am by 
no means an expert in configuring (iij)ppp.

--
Martin Butkus					>>> Live long and prosper. <<<
Phone/Fax: +49.5331.298710
Am Stadtwege 10, 38304 Wolfenbuettel, Germany