I hope some of you might be able to help me. I'm trying to set up diald 0.99. I've compiled it from source and tried to set it up following the docs and the Diald FAQ, but so far I've not been able to succeed.
I get to the stage where diald will dial up using my scripts, but it will either disconnect the line once the link is established, or it will never take over from where the pppd scripts finished. I have tried using RedHat's "ifup ppp0" scripts which is configured in Linuxconf, or by using "pppd call isp" where the appropriate scripts are located in /etc/ppp/ and /etc/ppp/peers.
If is use a script set up to call "ifup ppp0" the following log will be generated.
<----->
May 30 21:50:00 linux02 kernel: PPP: ppp line discipline successfully unregistered
May 30 21:54:03 linux02 diald[938]: Unknown option 'reroute'
May 30 21:54:03 linux02 diald[939]: Using fifo /var/adm/diald/diald.fifo
May 30 21:54:03 linux02 diald[939]: Using TCP port 10000
May 30 21:54:03 linux02 modprobe: modprobe: Can't locate module tap0
May 30 21:54:03 linux02 modprobe: modprobe: Can't locate module tap1
May 30 21:54:03 linux02 modprobe: modprobe: Can't locate module tap2
May 30 21:54:03 linux02 modprobe: modprobe: Can't locate module tap3
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap4
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap5
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap6
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap7
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap8
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap9
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap10
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap11
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap12
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap13
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap14
May 30 21:54:04 linux02 modprobe: modprobe: Can't locate module tap15
May 30 21:54:04 linux02 kernel: CSLIP: code copyright 1989 Regents of the University of California
May 30 21:54:04 linux02 kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR (dynamic channels, max=256) (6 bit encapsulation enabled).
May 30 21:54:04 linux02 kernel: SLIP linefill/keepalive option.
May 30 21:54:04 linux02 diald[939]: Proxy device established on interface sl0
May 30 21:54:04 linux02 diald[939]: start sl0: SIOCSIFMETRIC: Operation not supported
May 30 21:54:05 linux02 diald[939]: Diald initial setup completed.
May 30 21:54:27 linux02 diald[939]: Trigger: icmp 192.168.0.1/257 193.212.1.10/257
May 30 21:54:27 linux02 diald[939]: Calling site 192.168.0.2
May 30 21:54:29 linux02 connect: Initializing Modem
May 30 21:54:29 linux02 connect: Dialing system
May 30 21:54:52 linux02 connect: Connected
May 30 21:54:52 linux02 connect: Protocol started
May 30 21:54:52 linux02 diald[939]: Connected to site 192.168.0.2
May 30 21:54:52 linux02 diald[939]: Running pppd (pid = 968).
May 30 21:54:52 linux02 kernel: PPP: version 2.3.7 (demand dialling)
May 30 21:54:52 linux02 kernel: PPP line discipline registered.
May 30 21:54:52 linux02 kernel: registered device ppp0
May 30 21:54:52 linux02 pppd[968]: pppd 2.3.11 started by root, uid 0
May 30 21:54:53 linux02 pppd[968]: Connect script failed
May 30 21:54:53 linux02 pppd[968]: Exit.
May 30 21:54:53 linux02 diald[939]: start sl0: SIOCSIFMETRIC: Operation not supported
May 30 21:54:53 linux02 diald[939]: start sl0: SIOCADDRT: File exists
May 30 21:54:53 linux02 diald[939]: start sl0: SIOCDELRT: No such process
May 30 21:54:53 linux02 diald[939]: start sl0: SIOCADDRT: File exists
May 30 21:54:53 linux02 diald[939]: Disconnected. Call duration 1 seconds.
May 30 21:54:53 linux02 diald[939]: IP transmitted 924 bytes and received 0 bytes.
<----->
If I use a script which calls "pppd call isp" diald will initiate the call and the link will be established, but nothing more happens after the pppd session is connected. Diald does not continue after the sessions is connected, and therefor it won't set up the default route as it should.
I hope someone has a working setup of a simple dial-on-demand script for RedHat 6.x which they would be willing to share. I am also interested in a script that should go in /etc/rc.d/init.d/ to start and stop the diald service in a normal manner.
Regards, Thomas Nilsen