This is probably a terribly FAQ, but please excuse me asking it. I am
having trouble getting diald to work reliably on my machine. It is
running Red Hat 6, diald 1.06, and getting one of two scenarios. In
all cases diald is happy to connect, start ppp and set up the routing
table - it is when it comes to shut down that the problems start.
diald also shares the modem lines with mgetty for dial-in calls:
1. either diald aborts (in some way) shortly after sending the
SIGHUP to pppd:
Jul 23 11:06:10 mirror diald[2276]: Running connect (pid = 2284).
Jul 23 11:06:11 mirror connect: Initializing Modem
Jul 23 11:06:11 mirror connect: Dialing system
Jul 23 11:06:33 mirror connect: Connected
Jul 23 11:06:33 mirror connect: Logging in
Jul 23 11:06:36 mirror connect: Starting Comm Protocol
Jul 23 11:06:36 mirror connect: Protocol started
Jul 23 11:06:36 mirror diald[2276]: Running pppd (pid = 2296).
Jul 23 11:06:36 mirror pppd[2296]: pppd 2.3.7 started by dialout, uid 0
Jul 23 11:06:36 mirror pppd[2296]: Using interface ppp0
Jul 23 11:06:36 mirror pppd[2296]: Connect: ppp0 <--> /dev/ttyS0
Jul 23 11:06:37 mirror modprobe: can't locate module ppp-compress-21
Jul 23 11:06:37 mirror modprobe: can't locate module ppp-compress-26
Jul 23 11:06:37 mirror modprobe: can't locate module ppp-compress-24
Jul 23 11:06:37 mirror pppd[2296]: local IP address 158.152.45.217
Jul 23 11:06:37 mirror pppd[2296]: remote IP address 158.152.1.222
Jul 23 11:07:19 mirror diald[2276]: Closing down idle link.
Jul 23 11:07:26 mirror pppd[2296]: Hangup (SIGHUP)
Jul 23 11:07:26 mirror pppd[2296]: Modem hangup
Jul 23 11:07:26 mirror pppd[2296]: Connection terminated.
Jul 23 11:07:26 mirror pppd[2296]: Connect time 0.9 minutes.
Jul 23 11:07:26 mirror pppd[2296]: Sent 3805 bytes, received 3689 bytes.
Jul 23 11:07:26 mirror pppd[2296]: Exit.
Jul 23 11:07:26 mirror mgetty[2332]: TIOCMBIS failed: Input/output error
Jul 23 11:07:26 mirror mgetty[2332]: cannot turn off soft carrier:
Input/output error
Jul 23 11:07:26 mirror mgetty[2332]: tcgetattr failed: Input/output error
Jul 23 11:07:26 mirror mgetty[2332]: cannot get TIO: Input/output error
and you can see that when mgetty tries to reassume control of the
line that there is a problem. diald has to be restarted to enable
any further use of the line.
b. or diald aborts after attempting to reset part of the routing table
before sending a SIGHUP to pppd, requiring a manual 'kill' from the
keyboard to make pppd drop the line:
Jul 23 11:09:48 mirror diald[2360]: Running connect (pid = 2365).
Jul 23 11:09:48 mirror connect: Initializing Modem
Jul 23 11:09:49 mirror connect: Dialing system
Jul 23 11:10:11 mirror connect: Connected
Jul 23 11:10:11 mirror connect: Logging in
Jul 23 11:10:14 mirror connect: Starting Comm Protocol
Jul 23 11:10:14 mirror connect: Protocol started
Jul 23 11:10:14 mirror diald[2360]: Running pppd (pid = 2379).
Jul 23 11:10:14 mirror pppd[2379]: pppd 2.3.7 started by dialout, uid 0
Jul 23 11:10:14 mirror pppd[2379]: Using interface ppp0
Jul 23 11:10:14 mirror pppd[2379]: Connect: ppp0 <--> /dev/ttyS0
Jul 23 11:10:14 mirror modprobe: can't locate module ppp-compress-21
Jul 23 11:10:15 mirror modprobe: can't locate module ppp-compress-26
Jul 23 11:10:15 mirror modprobe: can't locate module ppp-compress-24
Jul 23 11:10:15 mirror pppd[2379]: local IP address 158.152.45.217
Jul 23 11:10:15 mirror pppd[2379]: remote IP address 158.152.1.222
Jul 23 11:10:51 mirror diald[2360]: Closing down idle link.
Jul 23 11:10:51 mirror diald[2360]: Nonzero exit status (7) on command
'/sbin/route add 158.152.1.100 metric 1 window 6000 dev sl0'
<manual kill -1 2379 at this point>
Jul 23 11:11:04 mirror pppd[2379]: Hangup (SIGHUP)
Jul 23 11:11:04 mirror pppd[2379]: Modem hangup
Jul 23 11:11:04 mirror pppd[2379]: Connection terminated.
Jul 23 11:11:04 mirror pppd[2379]: Connect time 0.9 minutes.
Jul 23 11:11:04 mirror pppd[2379]: Sent 3310 bytes, received 2847 bytes.
Jul 23 11:11:04 mirror pppd[2379]: Exit.
< same mgetty stuff as above >
The /etc/diald.conf is:
mode ppp
connect /usr/lib/diald/connect
device /dev/ttyS0
device /dev/ttyS2
speed 115200
modem
lock
crtscts
local <my static IP address>
remote <the ISP's gateway IP address>
defaultroute
mtu 1500
window 6000
redial-backoff-start 4
redial-backoff-limit 300
dial-fail-limit 15
include /usr/lib/diald/standard.filter
accounting-log /usr/lib/diald/log
Can someone help me out here ? I really need to get this working smoothly
as I act as a mail handler for other machines (connected via UUCP), and
the on-demand stuff is important. I'd also like to get rid of the modprobe
comments as well, if anyone knows how to do that ...
Jonathan
------------------------------------------------------------------------------
Jonathan Allen | [EMAIL PROTECTED] | Voice: 01271-379023
Barum Computer Consultants | | Fax: 01271-324183
------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]