From owner-freebsd-questions Sun Jan 24 07:13:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA12391 for freebsd-questions-outgoing; Sun, 24 Jan 1999 07:13:19 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA12381 for ; Sun, 24 Jan 1999 07:13:14 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.10 #1) id 104RDb-0001qx-00; Sun, 24 Jan 1999 15:12:56 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id PAA01278; Sun, 24 Jan 1999 15:12:01 GMT Received: from uk.radan.com (rasnt-1) by beavis.uk.radan.com (4.1/SMI-4.1) id AA28446; Sun, 24 Jan 99 15:11:57 GMT Message-Id: <36AB3810.7EA7875B@uk.radan.com> Date: Sun, 24 Jan 1999 15:11:12 +0000 From: Mark Ovens X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: dennis Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problem on PPP References: <199901241427.WAA21215@sn1.speednet.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dennis wrote: > > I am running FreeBSD 2.2.6 but i have some problem on connecting to my > ISP... > after i login and choose the protocal(PPP),it show"Packet mode"and after a > moment , > it disconnected.. > > below is some of the content of my rc.conf,ppp.conf,ppp.log,ppp.linkup > > ppp.log: > Jan 24 12:43:40 speednet ppp[266]: tun0: Command: term > Jan 24 12:43:40 speednet ppp[266]: tun0: Phase: Connected! > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: State change Initial-Closed > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: LcpSendConfigReq > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: ACFCOMP[2] > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: PROTOCOMP[2] > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: ACCMAP[6] 0x00000000 > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: MRU[4] 1500 > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: MAGICNUM[6] 0x43be75e6 > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: State change Closed --> > Req-Sent > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: Received Configure Ack (1) > state = Req-Sent (6) > Jan 24 12:44:22 speednet ppp[266]: tun0: LCP: State change Req-Sent --> > Ack-Rcvd > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: Received Configure Request > (152) state = Ack-Rcvd (7) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: ACCMAP[6] 0x000a0000 > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: MAGICNUM[6] 0x1cd35f14 > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: PROTOCOMP[2] > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: ACFCOMP[2] > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: SendConfigAck(Ack-Rcvd) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: ACCMAP[6] 0x000a0000 > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: AUTHPROTO[4] 0xc023 (PAP) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: MAGICNUM[6] 0x1cd35f14 > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: PROTOCOMP[2] > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: ACFCOMP[2] > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: State change Ack-Rcvd --> > Opened > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: LcpLayerUp > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: NewPhase: Authenticate > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: his = PAP, mine = none > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: PAP: > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: PapInput: NAK > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: Received PAP_NAK (No > hostname received to authenticate) > Jan 24 12:44:24 speednet ppp[266]: tun0: Phase: NewPhase: Terminate The other end appears to be wanting PAP authentication. Try adding the following to your ppp.conf in the ``speed:'' section instead of ``set login .....'': set authname set authkey also you may need to change the ``set ifaddr'' to: set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: LcpLayerDown > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: SendTerminateReq. > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: State change Opened --> > Closing > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: Received Terminate Request > (153) state = Closing (4) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: LcpSendTerminateAck. > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: Received Terminate Ack (2) > state = Closing (4) > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: State change Closing --> > Closed > Jan 24 12:44:24 speednet ppp[266]: tun0: LCP: LcpLayerFinish > Jan 24 12:44:25 speednet ppp[266]: tun0: Phase: Modem: Connect time: 45 > secs: 183 octets in, 151 octets out > Jan 24 12:44:25 speednet ppp[266]: tun0: Phase: total 7 bytes/sec > Jan 24 12:44:25 speednet ppp[266]: tun0: Phase: NewPhase: Dead > Jan 24 12:44:30 speednet ppp[266]: tun0: Command: quit > Jan 24 12:44:31 speednet ppp[266]: tun0: Phase: PPP Terminated (normal). > > rc.conf: > ### Basic network options: ### >  > hostname="speednet.net"  > nisdomainname="NO" >  > firewall_enable="NO"  > firewall_type="UNKNOWN"  > firewall_quiet="NO"  > tcp_extensions="NO"  > network_interfaces="ppp0 lo0" > ifconfig_lo0="inet 202.69.250.1" > ifconfig_ppp0="inet netmask 255.255.255.0" >  > > ppp.conf: > > 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  > >  > speed: >  > set phone 27306900 >  > set login "TIMEOUT 5 ogin:--ogin: ....... word: ......." > >  > set timeout 120 >  > set ifaddr 0 0 >  > delete ALL >  > add 0 0 HISADDR >  > > ppp.linkup > > MYADDR: > delete 0 > add 0 0 HISADDR > !bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au > > ThankS! > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Trust the computer industry to shorten Year 2000 to Y2K. It was this thinking that caused the problem in the first place. FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message