Thread: PPP not exiting
View Single Post

  #1 (permalink)  
Old 06-09-2004
Michael Collard
 
Posts: n/a
Default PPP not exiting

I have a problem with a dialin setup I'm using. I do have the actual
dialin session working and traffic is going backwards and forwards,
however if the connection ends for any reason then pppd is left behind
doing squat.

I am using PPP 2.4.1 provided with Mandrake 9.2. I use this for my PPPoE
connection without any problem whatsoever.

The last bit of my log looks like:

Jun 9 22:13:05 natalie pppd[26963]: using channel 84
Jun 9 22:13:05 natalie pppd[26963]: Using interface ppp1
Jun 9 22:13:05 natalie pppd[26963]: Connect: ppp1 <--> /dev/tts/0
Jun 9 22:13:05 natalie pppd[26963]: sent [LCP ConfReq id=0x2 <mru 1432>
<asyncmap 0x0> <auth pap> <magic 0x28ba878a> <pcomp> <accomp>]
Jun 9 22:13:17 natalie last message repeated 4 times
Jun 9 22:13:18 natalie pppd[26963]: Hangup (SIGHUP)
Jun 9 22:13:18 natalie pppd[26963]: Modem hangup
Jun 9 22:13:18 natalie pppd[26963]: Connection terminated.

pppd then will just sit there as long as I let it. The only way I can get
rid of it is with a 'kill -9' and then mgetty will kick back into action.
The output of a ps x shows the following:

26963 tts/0 S 0:00 pppd modem file /etc/ppp/options.server

The /etc/mgetty+sendfax/mgetty.config file looks like this:

port ttyS0
modem-type data
speed 57600
init-chat "" \d+++\d\d\dATZ OK AT&C1 OK AT&D2 OK AT&K3Q0 OK AT OK

I have also tried passing &D3 with no change.

My /etc/mgetty+sendfax/login.config file only has this line uncommented:

/AutoPPP/ - a_ppp /usr/sbin/pppd modem file /etc/ppp/options.server

My /etc/ppp/options.server file has the following:

172.16.0.1:172.16.0.2
asyncmap 0
lock
debug
mtu 1432
mru 1432
passive
crtscts
proxyarp
auth
-chap
+pap

I have also tried the -detach option and this makes it even worse. So far
I read through the PPP, Modem & dialin howtos and scoured usenet for
someone else that has actually solved this problem. If it will help
anyone, when pppd does mention it hangs up the /var/run/ppp1.pid file
dissapears. The modem I am using is a standard 56K modem, a Netcomm
MegaModem, pretty generic. I have checked the serial cable to ensure all
the signal go through OK & have used that modem & cable for dialing out on
many occasions.

I don't know what else to do here. Any suggestions appreciated.

Michael Collard
Reply With Quote