*BSD News Article 82891


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.idt.net!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!newsgate.duke.edu!usenet
From: reese@chem.duke.edu (Charles Reese)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: User mode PPP not hanging up modem
Date: Thu, 14 Nov 1996 21:31:56 GMT
Organization: Duke University, Durham, NC, USA
Lines: 157
Message-ID: <328b8f99.13656318@news.duke.edu>
References: <stanbE08zHy.3H3@netcom.com> <55jq3p$1rt@anorak.coverform.lan>     <stanbE0CHGM.wF@netcom.com> <55m2ha$3eg@anorak.coverform.lan>     <stanbE0HA0H.K9H@netcom.com> <5639ir$huf@anorak.coverform.lan>     <stanbE0n1n8.FKC@netcom.com> <56aenl$4or@anorak.utell.net> <stanbE0u5En.51n@netcom.com>
NNTP-Posting-Host: async249-107.async.duke.edu
X-Newsreader: Forte Free Agent 1.1/16.230

On Thu, 14 Nov 1996 00:59:11 GMT, stanb@netcom.com (Stan Brown) wrote:

>brian@anorak.utell.net (Brian Somers) writes:
>
>>In article <stanbE0n1n8.FKC@netcom.com>,
>>	stanb@netcom.com (Stan Brown) writes:
>>: brian@anorak.coverform.lan (Brian Somers) writes:
>>: 
>>[.....]
>>>>Are you saying that ppp behaves this way using the same equipment as you
>>>>did with kermit ?  If so, you *must* be running ppp in some wierd way
>>>>so that it doesn't see the HUP.
On Thu, 14 Nov 1996 00:59:11 GMT, stanb@netcom.com (Stan Brown) wrote:

>brian@anorak.utell.net (Brian Somers) writes:
>
>>In article <stanbE0n1n8.FKC@netcom.com>,
>>	stanb@netcom.com (Stan Brown) writes:
>>: brian@anorak.coverform.lan (Brian Somers) writes:
>>: 
>>[.....]
>>>>Are you saying that ppp behaves this way using the same equipment as you
>>>>did with kermit ?  If so, you *must* be running ppp in some wierd way
>>>>so that it doesn't see the HUP.

I have been having a similar problem with PPP, but only on my Cyclades
ports.  I can login in on ttyd1 with a shell or ppp and all works
fine.  I can break the connection and reconnect without a problem.  I
see the same behaviour on my ttyc0 (Cyclades 16 Ype port) for a shell
login but I can only login once with PPP  as the PPP process does not
die when I break the connection.   Have a look in your
/var/log/ppp.log file and see if the ppp process is not getting the
HUP signal or if its just hanging partway through the termination
sequence.  I enclose a bit of my log showing normal and the hanging
termination.
	I sure hope one of the PPP experts can solve the one.



Cheers
Charlie Reese



ppp.conf:
default:
 disable lqr
 set debug phase lcp chat
 set timeout 0

ttyc0:
 set ifaddr 10.0.0.2 10.0.0.65
 enable proxy

ttyd1:
 set ifaddr 10.0.0.2 10.0.0.64
 enable proxy


ttyd1 case
11-11 16:39:13 [386] Using interface: tun0
11-11 16:39:13 [386] Listening at 3000.
11-11 16:39:13 [386] PPP Started.
11-11 16:39:13 [386] Packet mode enabled
11-11 16:39:13 [386] LCP: state change Initial --> Closed
11-11 16:39:13 [386] LCP: SendConfigReq
11-11 16:39:13 [386]  ACFCOMP
11-11 16:39:13 [386]  PROTOCOMP

...
11-11 16:39:17 [386] IPCP: LayerUp.
11-11 16:39:17 [386]  myaddr = 10.0.0.2  hisaddr = 10.0.0.64
11-11 16:39:17 [386] found interface ed0 for proxy arp
11-11 16:39:17 [386] OsLinkup: 10.0.0.64
can't open /etc/ppp/ppp.linkup.
can't open /etc/ppp/ppp.linkup.
can't open /etc/ppp/ppp.linkup.
11-11 16:39:19 [386] CCP: Received Configure Request (2) state =
Ack-Rcvd (7)
11-11 16:39:19 [386] CCP:  SendConfigAck(Ack-Rcvd)
11-11 16:39:19 [386] CCP: state change Ack-Rcvd --> Opend
11-11 16:39:19 [386] CCP: LayerUp.
11-11 16:39:19 [386] myproto = 0, hisproto = 0
11-11 16:39:19 [386] CCP: Received Terminate Request (3) state = Opend
(9)
11-11 16:39:19 [386] CCP: LayerDown.
11-11 16:39:19 [386]   CCP: SendTerminateAck
11-11 16:39:19 [386] CCP: state change Opend --> Stopping
11-11 16:41:07 [386] LCP: Received Terminate Request (3) state = Opend
(9)
11-11 16:41:07 [386] LCP: LayerDown
11-11 16:41:07 [386] OsLinkdown: 10.0.0.64
11-11 16:41:07 [386] Phase: Terminate
11-11 16:41:07 [386] LCP: SendTerminateAck.
11-11 16:41:07 [386] LCP: state change Opend --> Stopping
11-11 16:41:08 [386] Disconnected!
11-11 16:41:08 [386] Connect time: 114 secs
11-11 16:41:08 [386] Phase: Dead
11-11 16:41:09 [386] PPP Terminated.


11-11 16:46:51 [421] Using interface: tun0
11-11 16:46:51 [421] Listening at 3000.
11-11 16:46:51 [421] PPP Started.
11-11 16:46:51 [421] Packet mode enabled
11-11 16:46:51 [421] LCP: state change Initial --> Closed
11-11 16:46:51 [421] LCP: SendConfigReq
11-11 16:46:51 [421]  ACFCOMP
11-11 16:46:51 [421]  PROTOCOMP

....
11-11 16:46:55 [421] IPCP: LayerUp.
11-11 16:46:55 [421]  myaddr = 10.0.0.2  hisaddr = 10.0.0.65
11-11 16:46:55 [421] found interface ed0 for proxy arp
11-11 16:46:55 [421] OsLinkup: 10.0.0.65
can't open /etc/ppp/ppp.linkup.
can't open /etc/ppp/ppp.linkup.
can't open /etc/ppp/ppp.linkup.
11-11 16:46:58 [421] CCP: Received Configure Request (2) state =
Ack-Rcvd (7)
11-11 16:46:58 [421] CCP:  SendConfigAck(Ack-Rcvd)
11-11 16:46:58 [421] CCP: state change Ack-Rcvd --> Opend
11-11 16:46:58 [421] CCP: LayerUp.
11-11 16:46:58 [421] myproto = 0, hisproto = 0
11-11 16:46:58 [421] CCP: Received Terminate Request (3) state = Opend
(9)
11-11 16:46:58 [421] CCP: LayerDown.
11-11 16:46:58 [421]   CCP: SendTerminateAck
11-11 16:46:58 [421] CCP: state change Opend --> Stopping
11-11 16:47:36 [421] LCP: Received Terminate Request (3) state = Opend
(9)
11-11 16:47:36 [421] LCP: LayerDown
11-11 16:47:36 [421] OsLinkdown: 10.0.0.65
11-11 16:47:36 [421] Phase: Terminate
11-11 16:47:36 [421] LCP: SendTerminateAck.
11-11 16:47:36 [421] LCP: state change Opend --> Stopping
11-11 16:48:45 [421] LCP: Received Configure Request (1) state =
Stopping (5)
## state = 5
11-11 16:48:47 [421] LCP: Received Terminate Request (2) state =
Stopping (5)
11-11 16:48:47 [421] LCP: SendTerminateAck.

This is where it stops with ttyc0.  I logged in using a shell on the
ttyd1 line and killed the ppp -direct ttyc0 process.  It would not let
me login to a ppp session on ttyd1 while the ttyc0 process was alive.

Below is the log continued after I kill the old one and started a new
ppp.
11-11 16:53:21 [463] Using interface: tun0
11-11 16:53:21 [463] Listening at 3000.
11-11 16:53:21 [463] PPP Started.
11-11 16:53:21 [463] Packet mode enabled

etc.