JRH <(E-Mail Removed)> wrote:
> I am unable to obtain a stable dialup connection using linuxconf.
> The symptom is that the connection dies after a short time, often
> around 1.5 minutes.
> Can anyone tell me how to fix pppd and/or linuxconf so that
> netconf connects ok?
> An example log follows:
> Aug 14 20:33:18 JandC pppd[12795]: Script /etc/ppp/ip-up finished (pid
> 12807), status = 0x0
> Aug 14 20:33:46 JandC pppd[12795]: Terminating on signal 15.
This looks like you terminated pppd. We need log messages for a
connection that died when you didn't want it to do so.
> Aug 14 20:33:46 JandC pppd[12795]: Script /etc/ppp/ip-down started
> (pid 12874)
> Aug 14 20:33:46 JandC pppd[12795]: sent [LCP TermReq id=0x2 "User request"]
> Aug 14 20:33:47 JandC pppd[12795]: rcvd [LCP TermAck id=0x2]
> Aug 14 20:33:47 JandC pppd[12795]: Connection terminated.
> Aug 14 20:33:47 JandC pppd[12795]: Connect time 0.6 minutes.
> This connection was started with
> $ netconf --connect uklinux
> Netconf does not return to the console until AFTER the link
> dies, and has an exit code of 255.
> After much experimentation, it appears that the cause is that pppd
> does not detach.
I don't see how that would cause pppd to often die "after a short
time." Running without or without the updetach option won't make any
difference in connection time as far as pppd itself is concerned.
> Running
> $ pppd file /var/run/pppd-args.uklinux -detach
> creates a stable connection but does NOT return to the console without
> doing ctl-C to kill the link. pppd dump option shows that the -detach
> option is being used.
If this really does produce a "stable connection" then the fault is
in what either the netconf or linuxconf script does. Considering that
you think the problem is solved by just switching option on the pppd
command line above, even that seems highly unlikely.
> Running
> $ pppd file /var/run/pppd-args.uklinux updetach
> works properly (returns to console once connected, with exit code
> of 0) and is a workaround for the problem, but does tend to negate
> the advantages of using linuxconf.
What advantages would those be? Is one advantage that of being unable
to easily determine the real nature of your problem?
If you use a script to configure or start a PPP connection then you are
stuck with what is written into the script. If it cannot configure/start
pppd to run the way you want then you have to dig into the script and
change it. Or find a workaround(?) as you did above.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* Emacs vs vi:
Sort of like a Swiss Army knife versus a rapier. */