Date: Sun, 24 Jan 1999 15:11:12 +0000 From: Mark Ovens <marko@uk.radan.com> To: dennis <dennisip@geocities.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Problem on PPP Message-ID: <36AB3810.7EA7875B@uk.radan.com> References: <199901241427.WAA21215@sn1.speednet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <your_user_name> set authkey <your_passwd> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36AB3810.7EA7875B>