Hello,
I've recently (well, yesterday) got a cablemodem installed and want to use
diald to control the sign-on/off to the Internet (yes, I pay for connect
time).
First of all, the diald docs aren't very helpful - something along the
lines of "some ISDN people should write 'mode dev' and put the appropriate
device line in the config file".
So naturally (?) I wrote:
mode dev
device eth0
since my cablemodem is attached to that interface (I guessed that I could
use the interface instead of a device AFTER spending an hour or so trying
to find or make up an ethernet device :-) ).
Result? Core dumps every time!
Finally I downloaded the source code and realize that I should've written
device /dev/eth0
since diald strips the /dev/ part (that really should be in the docs,
and it shouldn't coredump if you omit the /dev/ part).
(BTW: Will it work with an alias device, e.g. eth0:0?)
Enough about that.
Now I can start diald and it listens on its sl0 device
and also reacts when I try to ping some host. But it never makes the
connection or calls any of my supplied scripts to establish the connection
(I have both ip-up and ip-down defined and neither gets called).
Using 'debug 31' I've found out that it makes a state change to CONNECT,
then immediately proceeds to START_LINK, which is allowed to time out and
my delroute script is called.
Why doesn't it change to UP like it's supposed to?
Am I doing something wrong (and what?) or is this a problem with diald?
(Before you ask: yes, my scripts are executable :-) ).
I should probably mention that I have an addroute script that does NOT
perform the signon and I'm not sure that it would be a good idea, since I
can see in the logs that addroute gets called for the sl0 interface as
well.
I think I want to do the signon in ip-up unless someone can convince me
not to :-)
Oh, and: diald works like a charm with my "real" modem using PPP and a
diald.conf that is only slightly different from the cablemodem one.
Anything else? Oh yes, I'm running diald 0.16-5 on a Red Hat Linux 5.0
with a custombuilt 2.0.32 kernel.
Thanks in advance for any help,
Torben Thellefsen
Attached: /etc/diald.conf
mode dev
connect /bin/true
disconnect /bin/true
device /dev/eth0
local 192.168.a.a
remote 192.168.b.b
defaultroute
include /etc/diald/stofa.filter
accounting-log /var/log/diald
fifo /etc/diald/diald.ctl
addroute /etc/diald/addroute
delroute /etc/diald/delroute
ip-up /etc/diald/ip-up
ip-down /etc/diald/ip-down