Re: PPP not exiting
See below interleaved with teh text.
Michael Collard <quadfour@iinet.net.au> writes:
]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.
Tell us how you have the dialup setup set up. What you say below is not
standard. (You should have mgetty in inittab to answer the phone and then
pass off to pppd-- not pppd with the passive option)
]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.
fine. This is hardly a full debug.
]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
DO NOT use ATZ to initialize your modem. Use AT&F to reset factory
defaults. ATZ can leave the modem in a very very weird state.
]I have also tried passing &D3 with no change.
We have no idea what these options mean. They differ from modem to modem.
]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:
What does /etc/ppp/options have?
]172.16.0.1:172.16.0.2
]asyncmap 0
]lock
]debug
]mtu 1432
]mru 1432
]passive
Get rid of passive.
]crtscts
]proxyarp
]auth
Do you really want the other side to authenticate themselves to you?
]-chap
]+pap
With 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.
Are you using the full serial cable ( at least 9 lines, not just 3?)
Anyway one way around non-hangups is to use the the LCP EchoReq options.
But I suspect a badly configured modem.
]I don't know what else to do here. Any suggestions appreciated.
]Michael Collard
|