Thanks goes to me! Well I did do everything correctly. How I solved this
problem was to put the following command into a script file:
pppd /dev/tty00 38400 connect 'chat -v "" atdt4290000 ogin: mylogin assword:
mypassword' defaultroute
For some reason typing this in at the command line does not work, but using
a script does. Very odd. I must have some kind of syntax problem with the
command if it won't work from the command line.
Original post below:
-----Original Message-----
From: tru64-unix-managers-owner_at_ornl.gov
[mailto:tru64-unix-managers-owner_at_ornl.gov]On Behalf Of Trevor Osatchuk
Sent: Tuesday, April 10, 2001 1:52 PM
To: Tru64-Unix-Managers (E-mail)
Subject: pppd chat modem dialout setup
Hello there. I have read many archives about this exact process. I have
tried all of the advice given on those posts but still to no avail. I have
a 4.0d system with an external modem attached to /dev/tty00. I enabled ppp
in the kernel and added nppp=2 to sysconfigtab. I made an entry into
/etc/remote:
modem1:dv=/dev/tty00:br#38400:pa=none
With this I can 'tip modem1' and connect up to a remote computer using AT
commands. It works. So, I know that I have the correct port and all of the
invloved parties are functioning properly. However, when I try to get a
connection using pppd it doesn't dial out. This is the command I am using:
/etc/ppp> pppd /dev/tty00 38400 connect 'chat -v -f /etc/ppp/chatscript'
/etc/ppp> ps ax | grep ppp
1572 ?? S 0:00.01 sh -c chat -v -f /etc/ppp/chatscript
1573 ?? S 0:00.01 pppd /dev/tty00 38400 connect chat -v -f
/etc/t
1578 ?? S 0:00.01 chat -v -f /etc/ppp/chatscript
1575 ttyp0 S + 0:00.01 grep ppp
/etc/ppp> cat chatscript
atdt4290000
CONNECT
login: mylogin
CODE: "\qmypassword"
"$ " "\qpppd"
/etc/ppp> cat chat-script
ABORT BUSY \
ABORT 'NO CARRIER' \
"" ATZ OK
ATDT4290000 CONNECT \
name: mylogin \
CODE: mypassword
I have tried both of these chat scripts. I think the second one
'chat-script' is correct, but the other one is an example given in the
release notes for 4.0d. The problem is this, the modem TR light goes on and
when I grep for ppp processes as above I see them working away, but there is
no dialing going on. Is it the chat script? Is there some other file I
need to edit? After I get this to dial then I have to add route. This
particular computer is on a network and needs to be in communication with
the network at all times. If I add default route to the /etc/ppp/options
file will this give me a route there? With no arguments specifying an IP,
will get one assigned?
Thanks,
Trevor Osatchuk
Process Solutions Canada Ltd.
Support and Integration Analyst
(780) 452-2227 Ext. 286
trevor.osatchuk_at_pscl.com
Received on Tue Apr 10 2001 - 21:07:14 NZST