[NTLUG:Discuss] Diald problem

Neil Aggarwal neil at JAMMConsulting.com
Sat Mar 31 19:46:11 CST 2001


Hello:

I tried subscribing to the diald mailing list, but it seems
like it is defunct, so I am hoping that someone here can help me.

Anyway, I am trying to use diald to connect on demand to
my ISP from my RH 7 box.

I was able to get pppd set up and working correctly manually,
but when I try to use diald, it give me these messages in 
/var/log/messages:

When I run diald, I get these messages: (I dont know what this means)
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap0
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap1
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap2
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap3
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap4
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap5
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap6
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap7
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap8
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap9
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap10
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap11
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap12
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap13
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap14
Mar 31 19:28:12 localhost modprobe: modprobe: Can't locate module tap15

When I try to connect to a site, I get these messages:
Mar 31 19:28:12 localhost diald[14160]: start sl0: SIOCSIFMETRIC:
Operation not supported 
Mar 31 19:28:12 localhost diald[14160]: Cannot determine ethernet
address for proxy ARP
Mar 31 19:28:21 localhost diald[14160]: Trigger: udp      
192.168.0.1/1031      192.150.87.2/53   
Mar 31 19:28:21 localhost diald[14160]: Calling site 192.168.0.2 
Mar 31 19:28:42 localhost diald[14160]: connector: chat:  Mar 31
19:28:42 CONNECT 28800
Mar 31 19:28:42 localhost diald[14160]: Connected to site 192.168.0.2 
Mar 31 19:28:42 localhost diald[14160]: Running pppd (pid = 14210).
Mar 31 19:28:42 localhost pppd[14210]: pppd 2.3.11 started by root, uid
0
Mar 31 19:28:42 localhost pppd[14210]: Using interface ppp0
Mar 31 19:28:42 localhost pppd[14210]: Connect: ppp0 <--> /dev/ttyS0
Mar 31 19:28:53 localhost pppd[14210]: Peer is not authorized to use
remote address 64.1.31.5
Mar 31 19:28:53 localhost pppd[14210]: BSD-Compress (15/12) compression
enabled
Mar 31 19:28:53 localhost pppd[14210]: Connection terminated.
Mar 31 19:28:53 localhost pppd[14210]: Connect time 0.2 minutes.
Mar 31 19:28:53 localhost pppd[14210]: Sent 469 bytes, received 284
bytes.
Mar 31 19:28:53 localhost pppd[14210]: Exit.
Mar 31 19:28:53 localhost diald[14160]: start sl0: SIOCSIFMETRIC:
Operation not supported 
Mar 31 19:28:53 localhost diald[14160]: start sl0: RTNETLINK answers: No
such process 
Mar 31 19:28:53 localhost diald[14160]: Cannot determine ethernet
address for proxy ARP
Mar 31 19:28:53 localhost diald[14160]: ioctl(SIOCDARP): No such file or
directory
Mar 31 19:28:53 localhost diald[14160]: stop ppp0: RTNETLINK answers: No
such process 
Mar 31 19:28:53 localhost kernel: ppp: ppp0 not active
Mar 31 19:28:53 localhost diald[14160]: stop ppp0: SIOCSIFFLAGS: Device
not configured 
Mar 31 19:28:54 localhost diald[14160]: Delaying 30 seconds before clear
to dial.
Mar 31 19:29:25 localhost diald[14160]: Calling site 192.168.0.2 
Mar 31 19:29:46 localhost diald[14160]: connector: chat:  Mar 31
19:29:46 CONNECT 28800
Mar 31 19:29:46 localhost diald[14160]: Connected to site 192.168.0.2 
Mar 31 19:29:46 localhost diald[14160]: Running pppd (pid = 14220).
Mar 31 19:29:46 localhost pppd[14220]: pppd 2.3.11 started by root, uid
0
Mar 31 19:29:46 localhost pppd[14220]: Using interface ppp0
Mar 31 19:29:46 localhost pppd[14220]: Connect: ppp0 <--> /dev/ttyS0
Mar 31 19:29:56 localhost pppd[14220]: Peer is not authorized to use
remote address 64.1.23.5
Mar 31 19:29:57 localhost pppd[14220]: Connection terminated.
Mar 31 19:29:57 localhost pppd[14220]: Connect time 0.2 minutes.
Mar 31 19:29:57 localhost pppd[14220]: Sent 422 bytes, received 243
bytes.
Mar 31 19:29:57 localhost pppd[14220]: Exit.
Mar 31 19:29:57 localhost diald[14160]: start sl0: SIOCSIFMETRIC:
Operation not supported 
Mar 31 19:29:57 localhost diald[14160]: start sl0: RTNETLINK answers: No
such process 
Mar 31 19:29:57 localhost diald[14160]: Cannot determine ethernet
address for proxy ARP
Mar 31 19:29:57 localhost diald[14160]: ioctl(SIOCDARP): No such file or
directory
Mar 31 19:29:57 localhost diald[14160]: stop ppp0: RTNETLINK answers: No
such process 
Mar 31 19:29:57 localhost kernel: ppp: ppp0 not active
Mar 31 19:29:57 localhost diald[14160]: stop ppp0: SIOCSIFFLAGS: Device
not configured 
Mar 31 19:29:58 localhost diald[14160]: Delaying 30 seconds before clear
to dial.
Mar 31 19:30:05 localhost diald[14160]: SIGTERM. Termination request
received.
Mar 31 19:30:05 localhost diald[14160]: Diald is dieing with code 0
Mar 31 19:30:05 localhost diald[14160]: ioctl(SIOCDARP): No such file or
directory

Here is exactly what I did, from start to finish:

I Install Redhat 7.0 using a Workstation installation.

During the installation, I set-up eth0 as:
				IP Address: 192.168.1.1
				Netmask: 255.255.255.0
				Network: 192.168.1.0
				Broadcast: 192.168.1.255
				Hostname: diald.JAMMConsulting.com
				Gateway: Leave blank
				Primary DNS: [1st DNS from my ISP]
				Secondary DNS: [2nd DNS from my ISP]
				Ternary DNS: Leave blank


I create a file /etc/ppp/chatscript with this line:
REPORT CONNECT ABORT BUSY '' atdt[Number to dial] CONNECT ''

I created a file /etc/ppp/startppp with these contents:
#!/bin/sh
/usr/sbin/pppd /dev/ttyS0 115200 connect '/usr/sbin/chat -f
/etc/ppp/chatscript' defaultroute crtscts proxyarp passive

I created a file /etc/ppp/stopppp with these contents:
#!/bin/sh
/usr/share/doc/ppp-2.3.11/scripts/ppp-off

I made these files executable:
chmod +x /etc/ppp/startppp
chmod +x /etc/ppp/stopppp

I added a line to /etc/ppp/pap-secrets:
[ISP user name] * [ISP password]

I added a line to /etc/ppp/options:
name [ISP user name]

This all worked.  When I type:
	/etc/ppp/startppp
PPP connects to my ISP and I can do anything I want on the Internet.

When I type:
	/etc/ppp/stopppp
The link terminates.  

I can do this many times.

Next, I tried to set-up diald.  First I downloaded the diald code:
cd /usr/local
lynx ftp://diald.sourceforge.net/pub/diald/diald-0.99.4.tar.gz
tar zxvf diald-0.99.4.tar.gz
cd diald

I edited the Makefile and commented out the two lines about configuring
the makefile

I then compiled and installed it:
make
make install

I created /etc/diald.conf and put these lines into it:
mode ppp
connect "/usr/sbin/chat -f /etc/ppp/chatscript"
device /dev/ttyS0
speed 115200
modem
lock
crtscts
local 192.168.0.1
remote 192.168.0.2
dynamic
defaultroute
proxyarp
include /usr/lib/diald/standard.filter
pppd-options passive

Now, I ran diald with this command:
/etc/sbin/diald


I dont know why diald is having trouble with connecting to my ISP since
I can
do it manually using the same chatscript.

Anyone have any ideas?

Thanks,
	Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



More information about the Discuss mailing list