From owner-freebsd-questions Thu Apr 30 04:40:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA26758 for freebsd-questions-outgoing; Thu, 30 Apr 1998 04:40:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ms11.hinet.net (root@ms11.hinet.net [168.95.4.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA26743 for ; Thu, 30 Apr 1998 04:40:40 -0700 (PDT) (envelope-from jwlo@ms11.hinet.net) Received: from ms11.hinet.net (dialup245.cyut.edu.tw [163.17.3.245] (may be forged)) by ms11.hinet.net (8.8.8/8.8.8) with ESMTP id TAA00574; Thu, 30 Apr 1998 19:42:32 +0800 (CST) Message-ID: <3548622B.D0621976@ms11.hinet.net> Date: Thu, 30 Apr 1998 19:36:12 +0800 From: Doug Lo X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: "Ozz!!!" CC: freebsd-questions@FreeBSD.ORG Subject: Re: Weird ppp problem. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ozz, First, thanks for the tips. As I mentioned, I can use PAP to dialup with ijjpp without any problem. But I can't use to dialup another ISP which they don't provide PAP and CHAP. So would you tell me how to do without PAP and CHAP. Thanks in advance, Doug. Ozz!!! wrote: > On Wed, 29 Apr 1998, Doug Lo wrote: > > > Hi, FreeBSDers, > > > > I edited /etc/ppp/ppp.conf and /etc/ppp/ppp.linkup two files, and ppp works fine > > with PAP authentication :-) > > I have another ISP dialup number without PAP and CHAP, so I also edit ppp.conf > > and ppp.linkup, but > > ppp did't work with it. I don't know how to solve this problem, if anyone know > > how to solve it, please let me know, > > thanks in advance. > > > > P.S. I'm using Dynamic IP and my os version is 2.2.6-RELEASE. > > > > The ppp.conf is below: > > default: > > set log Phase Chat Connect Carrier LCP IPCP CCP tun command > > set device /dev/cuaa1 > > set speed 115200 > > deny lqr > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\ > > > > dATDT\\T TIMEOUT 40 CONNECT" > > > > isp: > > set openmode active > > set phone 3325318 > > set login "name: xxxxx:password:xxxxx:No : 2" > > set ifaddr 10.1.1.1/0 10.2.2.2/0 > > dial > > > > The ppp.linkup is: > > isp: > > delete ALL > > add 0 0 HISADDR > > > > The ppp.log file is: > > [ snip ] > > Apr 29 21:20:09 Jupiter ppp[218]: tun0: LCP: ACFCOMP[2] > > Apr 29 21:20:09 Jupiter ppp[218]: tun0: LCP: PROTOCOMP[2] > > Apr 29 21:20:09 Jupiter ppp[218]: tun0: LCP: ACCMAP[6] 0x00000000 > > Apr 29 21:20:09 Jupiter ppp[218]: tun0: LCP: MRU[4] 1500 > > Apr 29 21:20:09 Jupiter ppp[218]: tun0: LCP: MAGICNUM[6] 0x681f8874 > > Apr 29 21:20:12 Jupiter ppp[218]: tun0: LCP: State change Req-Sent --> Stopped > > Apr 29 21:20:12 Jupiter ppp[218]: tun0: LCP: LcpLayerFinish > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: Phase: Modem: Connect time: 35 secs: 253 > > > > octets in, 267 octets out > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: Phase: total 14 bytes/sec > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: Phase: NewPhase: Dead > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: Phase: Disconnected! > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: LCP: LcpLayerFinish > > Apr 29 21:20:14 Jupiter ppp[218]: tun0: Phase: NewPhase: Dead > > Apr 29 21:21:05 Jupiter ppp[218]: tun0: Command: quit > > Apr 29 21:21:06 Jupiter ppp[218]: tun0: Phase: PPP Terminated (normal). > > > > The command I run ppp isp, it appears: > > ppp cyut > > Working in interactive mode > > Using interface: tun0 > > Dial attempt 1 of 1 > > Phone: 3325318 > > dial OK! > > login OK! > > ppp ON Jupiter> Packet mode. > > ppp ON Jupiter> ==> Then it automatically quit. > > > > Best regards, > > Doug. > > > > About PPP... > I use pppd for pap. > I have a following files: > > /etc/ppp/options - file with options for modem > /etc/ppp/pap-secrets - file with login & password for my ISP > /etc/ppp/peers/isp - chat-file for modem > /etc/ppp/chat-isp _ chat-file for dialin > > /etc/ppp/options is following: > asyncmap 0 > crtscts > debug > lock > modem > auth > user > defaultroute > netmask 255.255.255.0 > > /etc/ppp/peers/isp is following: > ttyd1 38400 crtscts > connect '/usr/bin/chat -v -f/etc/ppp/chat-isp' > noauth > > /etc/ppp/pap-secrets is following: > * > > /etc/ppp/chat-isp > "" atz0 > OK atdt > CONNECT \r > > In command prompt pppd starting : > # pppd call isp > > All works fine. > > Rgdz, > oZZ, > osa@unibest.ru > > P.S. I use FreeBSD-CURRENT wiz pppd-2.3.3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message