[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

diald and ppp



I am trying to set up diald and ppp. I thought it would be easy like it
was with Debian 1.3, but I guess Debian developers or someone wanted to 
keep me on my toes so they changed stuff. Here are my problems.

If I try to connect manually with the following script:

exec pppd connect \
'chat -v -f /etc/diald/manconnect' \
-detach crtscts ttyS0 defaultroute \
user infinetwork \
/dev/ttyS0 115200

I gets connected then disconnects after a few seconds. In the ppp.log file
the error is

diald[126]: failed to set terminal attributes: Invalid argument

If I try and let diald bring up the connect automagically. All that happens
is a couple of lights flash on the modem and that is it. I obviously have 
something set wrong. If anyone could help me look in the right file I 
would appreciate it. If you need any more information like files let
me know I would really like to get this working without to much time 
going by.

I have attached /etc/diald/diald.options and /etc/diald/connect
I am using pap-secrets also.

-- 
Thanks,
Keith
********************************************************************************
Debian GNU/Linux			http://www.naples.net/~nfn11988			
# /etc/diald/diald.options
#
#	$Id: diald.options,v 1.8 1996/12/08 20:33:01 gv Exp $	
#
# Sample diald.options -- works for PPP links and fixed IP
#
# Edit to match your set up.
#

# This is the port the modem is connected to.
# *** MODIFY to match your set up ***
# See the file /usr/doc/diald/debian.device.gz for discussion about
# the use of /dev/ttyS? instead of /dev/cua?.
device /dev/ttyS0

# diald log file: do not change.
accounting-log /var/log/diald.log

# diald monitoring pipe: do not change.
fifo /var/run/diald.fifo

# This turns on full debugging.
#debug 31

# We have PPP
mode ppp

# IP number for deselby.xs4all.nl
local 172.16.1.1
# IP number for the provider's machine. This is different each time we connect.
# This is not a problem, but it'll make the routine table look funny.
remote 1172.16.1.100
netmask 255.255.255.0

# If the connection gets broken from the ISP, redial only
# if there's outgoing traffic from our side.
two-way

# When the link's up, change routes to point to the real link
# instead of the proxy.
reroute

# diald should set a default route to the proxy SLIP link.
defaultroute

# These two scripts must be executable.
#ip-up /etc/diald/ip-up
#ip-down /etc/diald/ip-down

# Scripts used to bring up/shut down the serial line.
connect "/etc/diald/connect"
disconnect "/etc/ppp/ppp-disconnect"

# Do UUCP locking.
lock

# We connect through a modem.
modem
crtscts

# Local tweaking
connect-timeout 90
dial-fail-limit 2
died-retry-count 0

# Dutch PTT timetable: same charge for 2.5 (peak) 5 (night) minutes.
#impulse 280,20
#restrict 08:00:00 18:00:00 1-5 * *
#impulse 130,20

include /etc/diald/standard.filter

TIMEOUT 5
"" ATZ&C1&D2%C0
OK ATDT4038000
ABORT "NO CARRIER"
ABORT BUSY
ABORT "NO DIALTONE"
ABORT WAITING
TIMEOUT 45
CONNECT ""
TIMEOUT 5


Reply to: