Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews1.nwnet.net!news.u.washington.edu!uw-beaver!uhog.mit.edu!news.mathworks.com!fu-berlin.de!news.dfn.de!RRZ.Uni-Koeln.DE!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!schweikh From: schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt) Newsgroups: comp.unix.bsd.freebsd.misc Subject: PPP trouble: same magic Date: 24 Jan 1996 09:32:16 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Lines: 213 Message-ID: <4e4ub0$oa0@info4.rus.uni-stuttgart.de> NNTP-Posting-Host: itosun.ito.uni-stuttgart.de Hello, I'm desperately trying to make user land PPP work (2.1.0-RELEASE). I have followed recent threads that said - don't configure tun0 in /etc/sysconfig as the handbook wrongly suggests - use openmode active - have a "set ifaddr 0 0" in your script but still can't get it running. The dial and login stuff succeeds. As you can see below, ppp says it switched to packet mode but the 'ppp' prompt does not change to 'PPP'. After about 30 seconds with an active carrier, carrier drops, maybe because both ends could not agree on protocol negotiations or whatever. When I look at /var/log/ppp.log I find something that makes me nervous, i.e. 01-23 19:06:40 [291] MAGICNUM 794ef22d magic is same!! 794ef22d, 794ef22d, 0 (each time I try there's a new MAGICNUM) I have attached part of /etc/sysconfig, ppp.conf, a sample ppp session and /var/log/ppp.log. There must be something I missed. Any help greatly appreciated, thanks Jens /etc/sysconfig: =============== network_interfaces="lo0 tun0" ifconfig_lo0="inet localhost" defaultrouter=129.69.31.190 /etc/ppp/ppp.conf: ================== default: set device /dev/cuaa2 set speed 38400 set openmode active disable lqr deny lqr disable pred1 deny pred1 set debug phase chat lqm lcp tcp/ip hdlc async set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT wait ABORT NO\\sDIALTONE TIMEOUT 5 \"\" ATE0V1Q0 OK AT&N9DP07116857733 TIMEOUT 120 CONNECT" provider: set login "TIMEOUT 4 username>--username> jjs word> uh-oh keys: 6" set timeout 720 set ifaddr 0 0 Sample ppp session: =================== root:/etc/ppp# ppp User Process PPP. Written by Toshiharu OHNO. Log level is 7f Warning: No password entry for this host in ppp.secret Warning: All manipulation is allowed by anyone in the world Using interface: tun0 Interactive mode ppp ON hal9000> dial dial OK! login OK! ppp ON hal9000> Packet mode. ppp ON hal9000> /var/log/ppp.log: ================= 01-23 19:05:51 [291] Using interface: tun0 01-23 19:05:51 [291] PPP Started. 01-23 19:05:56 [291] Expecting 01-23 19:05:56 [291] sending: ATE0V1Q0 01-23 19:05:56 [291] Expecting OK 01-23 19:05:56 [291] Wait for (5): OK --> OK 01-23 19:05:56 [291] sending: AT&N9DP07116857733 01-23 19:05:56 [291] Expecting CONNECT 01-23 19:05:56 [291] Wait for (120): CONNECT --> CONNECT 01-23 19:06:36 [291] LCP: state change Initial --> Closed 01-23 19:06:36 [291] LCP: SendConfigReq 01-23 19:06:36 [291] ACFCOMP 01-23 19:06:36 [291] PROTOCOMP 01-23 19:06:36 [291] ACCMAP [6] 00000000 01-23 19:06:36 [291] MRU [4] 1500 01-23 19:06:36 [291] MAGICNUM [6] 794ef22d 01-23 19:06:36 [291] HdlcOutput 01-23 19:06:36 [291] ff 03 c0 21 01 01 00 18 08 02 07 02 02 06 00 00 01-23 19:06:36 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d fc c5 01-23 19:06:36 [291] WriteModem 01-23 19:06:36 [291] 7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28 01-23 19:06:36 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:36 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:36 [291] 2d fc c5 7e 01-23 19:06:36 [291] LCP: state change Closed --> Req-Sent 01-23 19:06:37 [291] ReadFromModem 01-23 19:06:37 [291] 20 31 36 38 30 30 0d 0a 01-23 19:06:39 [291] LCP: SendConfigReq 01-23 19:06:39 [291] ACFCOMP 01-23 19:06:39 [291] PROTOCOMP 01-23 19:06:39 [291] ACCMAP [6] 00000000 01-23 19:06:39 [291] MRU [4] 1500 01-23 19:06:39 [291] MAGICNUM [6] 794ef22d 01-23 19:06:39 [291] HdlcOutput 01-23 19:06:39 [291] ff 03 c0 21 01 02 00 18 08 02 07 02 02 06 00 00 01-23 19:06:39 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d b6 57 01-23 19:06:39 [291] WriteModem 01-23 19:06:39 [291] 7e ff 7d 23 c0 21 7d 21 7d 22 7d 20 7d 38 7d 28 01-23 19:06:39 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:39 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:39 [291] 2d b6 57 7e 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 45 6e 74 65 72 20 75 73 65 72 6e 61 6d 65 3e 20 01-23 19:06:40 [291] 23 c0 21 7d 21 7d 21 7d 20 7d 38 7d 28 7d 22 7d 01-23 19:06:40 [291] 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 7d 20 7d 01-23 19:06:40 [291] 21 7d 24 7d 25 dc 7d 25 7d 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 26 79 4e f2 2d fc c5 7e 7e ff 7d 23 c0 21 7d 21 01-23 19:06:40 [291] 7d 22 7d 20 7d 38 7d 28 7d 22 7d 27 7d 22 7d 22 01-23 19:06:40 [291] 7d 26 7d 20 7d 20 7d 20 7d 20 7d 21 7d 24 7d 25 01-23 19:06:40 [291] dc 7d 25 7d 26 79 4e f2 2d b6 57 7e 01-23 19:06:40 [291] HdlcInput: 01-23 19:06:40 [291] ff 03 c0 21 01 02 00 18 08 02 07 02 02 06 00 00 01-23 19:06:40 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d b6 57 01-23 19:06:40 [291] LCP: Received Configure Request (2) state = Req-Sent (6) 01-23 19:06:40 [291] ACFCOMP 01-23 19:06:40 [291] PROTOCOMP 01-23 19:06:40 [291] ACCMAP 00000000 01-23 19:06:40 [291] MRU 1500 01-23 19:06:40 [291] MAGICNUM 794ef22d magic is same!! 794ef22d, 794ef22d, 0 01-23 19:06:40 [291] LCP: SendConfigAck(Req-Sent) 01-23 19:06:40 [291] ACFCOMP 01-23 19:06:40 [291] PROTOCOMP 01-23 19:06:40 [291] ACCMAP 00000000 01-23 19:06:40 [291] MRU 1500 01-23 19:06:40 [291] MAGICNUM 794ef22d 01-23 19:06:40 [291] HdlcOutput 01-23 19:06:40 [291] ff 03 c0 21 02 02 00 18 08 02 07 02 02 06 00 00 01-23 19:06:40 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d 7a ba 01-23 19:06:40 [291] WriteModem 01-23 19:06:40 [291] 7e ff 7d 23 c0 21 7d 22 7d 22 7d 20 7d 38 7d 28 01-23 19:06:40 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:40 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:40 [291] 2d 7a ba 7e 01-23 19:06:40 [291] LCP: state change Req-Sent --> Ack-Sent 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 7e 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] ff 7d 23 c0 21 7d 22 7d 22 7d 20 7d 38 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 7d 28 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 01-23 19:06:40 [291] 7d 07 07 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 0d 01-23 19:06:40 [291] ReadFromModem 01-23 19:06:40 [291] 0a 07 45 6e 74 65 72 20 75 73 65 72 20 70 61 73 01-23 19:06:40 [291] 73 77 6f 72 64 3e 01-23 19:06:42 [291] LCP: SendConfigReq 01-23 19:06:42 [291] ACFCOMP 01-23 19:06:42 [291] PROTOCOMP 01-23 19:06:42 [291] ACCMAP [6] 00000000 01-23 19:06:42 [291] MRU [4] 1500 01-23 19:06:42 [291] MAGICNUM [6] 794ef22d 01-23 19:06:42 [291] HdlcOutput 01-23 19:06:42 [291] ff 03 c0 21 01 03 00 18 08 02 07 02 02 06 00 00 01-23 19:06:42 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d 7f de 01-23 19:06:42 [291] WriteModem 01-23 19:06:42 [291] 7e ff 7d 23 c0 21 7d 21 7d 23 7d 20 7d 38 7d 28 01-23 19:06:43 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:43 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:43 [291] 2d 7f de 7e 01-23 19:06:46 [291] LCP: SendConfigReq 01-23 19:06:46 [291] ACFCOMP 01-23 19:06:46 [291] PROTOCOMP 01-23 19:06:46 [291] ACCMAP [6] 00000000 01-23 19:06:46 [291] MRU [4] 1500 01-23 19:06:46 [291] MAGICNUM [6] 794ef22d 01-23 19:06:46 [291] HdlcOutput 01-23 19:06:46 [291] ff 03 c0 21 01 04 00 18 08 02 07 02 02 06 00 00 01-23 19:06:46 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d 33 7b 01-23 19:06:46 [291] WriteModem 01-23 19:06:46 [291] 7e ff 7d 23 c0 21 7d 21 7d 24 7d 20 7d 38 7d 28 01-23 19:06:46 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:46 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:46 [291] 2d 33 7b 7e 01-23 19:06:49 [291] LCP: SendConfigReq 01-23 19:06:49 [291] ACFCOMP 01-23 19:06:49 [291] PROTOCOMP 01-23 19:06:49 [291] ACCMAP [6] 00000000 01-23 19:06:49 [291] MRU [4] 1500 01-23 19:06:49 [291] MAGICNUM [6] 794ef22d 01-23 19:06:49 [291] HdlcOutput 01-23 19:06:49 [291] ff 03 c0 21 01 05 00 18 08 02 07 02 02 06 00 00 01-23 19:06:49 [291] 00 00 01 04 05 dc 05 06 79 4e f2 2d fa f2 01-23 19:06:49 [291] WriteModem 01-23 19:06:49 [291] 7e ff 7d 23 c0 21 7d 21 7d 25 7d 20 7d 38 7d 28 01-23 19:06:49 [291] 7d 22 7d 27 7d 22 7d 22 7d 26 7d 20 7d 20 7d 20 01-23 19:06:49 [291] 7d 20 7d 21 7d 24 7d 25 dc 7d 25 7d 26 79 4e f2 01-23 19:06:49 [291] 2d fa f2 7e 01-23 19:06:49 [291] ReadFromModem 01-23 19:06:49 [291] 07 01-23 19:06:49 [291] ReadFromModem 01-23 19:06:49 [291] 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 01-23 19:06:49 [291] 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 01-23 19:06:49 [291] 07 07 01-23 19:06:49 [291] ReadFromModem 01-23 19:06:49 [291] 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 01-23 19:06:49 [291] 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 01-23 19:06:49 [291] 07 07 07 07 01-23 19:06:49 [291] ReadFromModem 01-23 19:06:49 [291] 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 07 01-23 19:06:49 [291] 07 01-23 19:06:52 [291] LCP: state change Ack-Sent --> Stopped 01-23 19:06:52 [291] LCP: LayerFinish 01-23 19:06:53 [291] Phase: Dead -- SIGSIG -- signature too long (core dumped)