View previous topic :: View next topic |
Author |
Message |
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Sun Jul 04, 2004 7:41 pm Post subject: pppd dies with exit code 16 |
|
|
Hello,
For the past few weeks I have been trying to get dialup working in Gentoo to no avail. I have Windows 2000 installed on another partition, and dialup works without any problems.
I've looked through the forums and found similar problems (exit code 16), but no solutions that worked for me. I've also tried numerous combinations of different options in /etc/ppp/options. I've tried /etc/wvdial.conf with and without Stupid Mode on.
The frustrating thing is that the modem connects and everything, but then for some reason or another, it just disconnects at the end. I've tried the whole pon/poff thing, as well as minicom, none of which have helped me.
Here's some configuration information:
/etc/ppp/options:
Code: |
crtscts
debug
defaultroute
lock
modem
noipdefault
|
/etc/wvdial.conf:
Code: |
[Dialer Defaults]
Modem = /dev/ttyS0
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = XXXX
Username = XXXX
Password = XXXX
Stupid Mode = 1
|
When I actually run wvdial, it produces the following output:
Code: |
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDTXXXX
--> Waiting for carrier.
ATDT7770123
CONNECT 50666/ARQ
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jul 3 21:26:14 2004
--> pid of pppd: 26930
--> Using interface ppp0
--> Disconnecting at Sat Jul 3 21:26:30 2004
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
|
Here's what's in /var/log/messages:
Code: |
Jul 3 21:26:15 ellesar pppd[26930]: pppd 2.4.2 started by root, uid 0
Jul 3 21:26:15 ellesar pppd[26930]: using channel 4
Jul 3 21:26:15 ellesar pppd[26930]: Using interface ppp0
Jul 3 21:26:15 ellesar pppd[26930]: Connect: ppp0 <--> /dev/tts/0
Jul 3 21:26:15 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:18 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:21 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:24 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:27 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:30 ellesar pppd[26930]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb846b681> <pcomp> <accomp>]
Jul 3 21:26:30 ellesar pppd[26930]: Modem hangup
Jul 3 21:26:30 ellesar pppd[26930]: Connection terminated.
Jul 3 21:26:30 ellesar pppd[26930]: Exit.
|
I read the pppd manual page, and it said that exit code 16 means that a modem hung up the phone; not very helpful.
So if anyone has any ideas, please let me know...I'm going crazy here... |
|
Back to top |
|
|
srlinuxx l33t
Joined: 22 Nov 2003 Posts: 627
|
Posted: Mon Jul 05, 2004 1:30 am Post subject: |
|
|
I haven't investigated what each of those options exactly do, but this /etc/ppp/options works for me. Maybe you can use it as an example to experiment with yours.
Code: |
[root@tuxmachine]: /home/s: 20:28 # cat /etc/ppp/options
lock
noauth
noipdefault
usepeerdns
|
_________________ --You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots |
|
Back to top |
|
|
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Mon Jul 05, 2004 3:53 am Post subject: |
|
|
I tried those options, but the problem is the same. |
|
Back to top |
|
|
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Tue Jul 06, 2004 9:53 pm Post subject: |
|
|
Anyone have any suggestions? |
|
Back to top |
|
|
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Tue Jul 27, 2004 4:56 pm Post subject: |
|
|
Anyone? |
|
Back to top |
|
|
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Mon Aug 09, 2004 6:25 pm Post subject: |
|
|
Well, I tried dialing up with the newest Knoppix release, and I got the same result (exit code = 16), and this was even with kppp, which I had hoped would have some magical setting that would make my problem disappear. So the problem isn't w/ Gentoo, it's not w/ the modem, it's not w/ my ISP...? (Still hoping someone has a suggestion ) |
|
Back to top |
|
|
cqx n00b
Joined: 19 Jul 2003 Posts: 7 Location: Grand Forks, ND
|
Posted: Tue Aug 10, 2004 2:13 am Post subject: SOLVED! |
|
|
This turned out to be a modem problem. I must've bumped a couple jumpers in the back of my modem, because after turning "Load NVRAM defaults" on, and switching from "Carrier detect normal" to "Carrier detect override", I can finally connect!
I guess I still have no idea why Windows 2000 was able to connect w/ these jumper settings and Linux was not; oh well, it connects now, so I am content for the time being. |
|
Back to top |
|
|
|