*BSD News Article 85771


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!portc01.blue.aol.com!news-peer.gsl.net!news.gsl.net!news.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-pen-14.sprintlink.net!eskimo!wue
From: wue@eskimo.com (Enoch Wu)
Subject: Re: PPP: LCP stopped --- help!!
X-Nntp-Posting-Host: eskimo.com
Message-ID: <E34772.Hrv@eskimo.com>
Sender: news@eskimo.com (News User Id)
Organization: Eskimo North (206) For-Ever
X-Newsreader: TIN [version 1.2 PL2]
References: <E31uDG.MLq@eskimo.com> <5a02o3$bkk@ns.qnis.net>
Date: Sat, 28 Dec 1996 08:21:01 GMT
Lines: 153
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33222

phil@anti-commercial.mailer.org wrote:
: In article <E31uDG.MLq@eskimo.com>, Enoch Wu <wue@eskimo.com> wrote:
: >I followed Jay's ppp tutorial on the internet.  The only
: >difference is perhaps that I have only a SLiRp connection with
: >10.0.2.15 as my IP address.
: >
: >Well, the /var/log/ppp.log file shows:
: >
: >hh:mm:ss   Using interface tun0
: >hh:mm:ss   Listening at 3000
: >hh:mm:ss   PPP started. 
: >dial OK!
: >login OK!
: >hh;mm:ss   LCP state change Initial ---> Closed.
: >hh:mm:ss   LCP state change Closed ---> Stopped.
: >
: >I was wondering if a SLirP (-ppp) is ever going to work, or am
: >I missing something ?  Please help.

: Enoch:
: I feel that we could be of more help to you if you could
: turn your LCP and IPCP debugging on.  Please attempt your login
: again with the debugging level turned up, and email or post
: the results.

: -p
: -- 
: Phil Jensen				QuadraNet Internet Services
: Manager of Network Operations		http://www.qnis.net
: Header tampered to prevent unsolicited commercial email.  (phil@qnis.net)


Phil,

I ran it with "set debug chat phase lcp" and got this log: 



/var/log/ppp.log :

12-27 22:23:37 [140] Using interface: tun0
12-27 22:23:37 [141] Listening at 3000.
12-27 22:23:37 [141] PPP Started.
12-27 22:25:29 [141] Dial attempt 1
12-27 22:25:29 [141] Expecting 
12-27 22:25:29 [141] sending: ATE1Q0
12-27 22:25:29 [141] Expecting OK-AT-OK
12-27 22:25:29 [141] Wait for (5): OK --> OK
12-27 22:25:30 [141] sending: ATDT3673837
12-27 22:25:30 [141] Expecting CONNECT
12-27 22:25:30 [141] Wait for (40): CONNECT --> CONNECT
dial OK!
12-27 22:25:46 [141] Expecting ==>
12-27 22:25:46 [141] Wait for (180): ==> --> ==>
12-27 22:25:54 [141] sending: 4
12-27 22:25:54 [141] Expecting gin:
12-27 22:25:54 [141] Wait for (180): gin: --> gin:
12-27 22:25:54 [141] sending: wue
12-27 22:25:54 [141] Expecting ord:
12-27 22:25:54 [141] Wait for (180): ord: --> ord:
12-27 22:25:55 [141] sending: <password>
12-27 22:25:55 [141] Expecting and?
12-27 22:25:55 [141] Wait for (180): and? --> and?
12-27 22:26:06 [141] sending: i
12-27 22:26:06 [141] Expecting and?
12-27 22:26:06 [141] Wait for (180): and? --> and?
12-27 22:26:09 [141] *Connected!
12-27 22:26:09 [141] sending: s
login OK!
12-27 22:26:09 [141] LCP: state change Initial --> Closed
12-27 22:26:09 [141] LCP: state change Closed --> Stopped



Routing tables
Internet:

Destination        Gateway            Flags     RefsUse     Netif Expire
default            204.122.16.40      UGSc        0        0      tun0
127.0.0.1          127.0.0.1          UH          0        0	  lo0
204.122.16.40      10.0.2.15          UH          1        0      tun0


#!/bin/sh
# /etc/ppp/ppp.init
#
/usr/sbin/ppp -auto eski 
/sbin/route delete default
/sbin/ifconfig tun0 inet 10.0.2.15 204.122.16.40 netmask 0xffffff00
/sbin/route add default 204.122.16.40
##


#################################################################
# /etc/ppp/ppp.conf -- user PPP to an ISP running SliRp in PPP mode.
#  Author: Enoch Wu 12/26/96
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default: 
 set debug chat phase lcp 
 set device /dev/cuaa1 
 set speed 19200  
 disable lqr 
 deny lqr 
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
\\dATDT\\T TIMEOUT 40 CONNECT"
#
#
eski: 
 set phone 3673837  
 set login "TIMEOUT 180 ==> 4 gin: wue ord: <password> and? i and? s" 
 set timeout 120 
 set ifaddr 10.0.2.15/0 204.122.16.40  255.255.255.0 
 add 0 0 204.122.16.40 
#
#
##
#### end of /etc/ppp/ppp.conf    #######


###########################################################################
/etc/ppp/ppp.linkup -- for SliRp to ISP in PPP mode.  
# Author: EW
##########################################################################
10.0.2.15:
 add 10.0.2.0 0 HISADDR
#
# If we are invoked with an argument `iij-demand'', then
# delete existing route entry and add peer as default gateway.
#
iij-demand:
 delete ALL 
 add 0 0 HISADDR
#
# Otherwise, simply add peer as default gateway.
#
MYADDR:
  add 0 0 HISADDR

# -----------------------



# /etc/resolv.conf
nameserver 204.122.16.13
nameserver 204.122.16.40



==================================================================
--EW