[H-GEN] Help with tpg dial up using ppp, please show me what to put in /etc/ppp/ppp-chat
t
s4565 at lycos.co.uk
Fri Mar 21 10:05:53 EST 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Hi
I am trying to connect to tpg with my redhat 7.2, but I cannot get on using
pppd. I am running pppd from the command line with the scripts which
follow.
Can anyone suggest where I am going wrong. I cannot work out what is needed
after the second "ser Access Verification" from the server, anyone know. I
know I have to add to the /etc/ppp-chat-isp a assword line. But I will do
that once I have the second "ser Access Verification" working.
Anyone have a /etc/ppp-chat-isp script they use for tpg and want to share it
with me, it would save a great deal of pain!
Please tell me if you need more info.
Thanks
Tony
----------start /etc/ppp/options
debug
/dev/ttyS1
115200
modem
crtscts
asyncmap 0
defaultroute
noipdefault
lock
lcp-max-configure 60
connect "/usr/sbin/chat -v -t 240 -f /etc/ppp/chat-isp"
----------end /etc/ppp/options
----------start /etc/ppp-chat-isp
iTIMEOUT 10
ABORT 'BUSY'
ABORT "NO ANSWER"
'' \rAT
TIMEOUT 30
OK ATDTphoneNo
CONNECT ""
115200 ""
Verification ""
Username: myUserName
Verification myUserName
----------end /etc/ppp-chat-isp
---------start /var/log/messages
Mar 22 01:12:25 p100 pppd[1579]: pppd 2.4.1 started by root, uid 0
Mar 22 01:12:26 p100 chat[1580]: timeout set to 10 seconds
Mar 22 01:12:26 p100 chat[1580]: abort on (BUSY)
Mar 22 01:12:26 p100 chat[1580]: abort on (NO ANSWER)
Mar 22 01:12:26 p100 chat[1580]: send (^MAT^M)
Mar 22 01:12:26 p100 chat[1580]: timeout set to 30 seconds
Mar 22 01:12:26 p100 chat[1580]: expect (OK)
Mar 22 01:12:26 p100 chat[1580]: ^MAT^M^M
Mar 22 01:12:26 p100 chat[1580]: OK
Mar 22 01:12:26 p100 chat[1580]: -- got it
Mar 22 01:12:26 p100 chat[1580]: send (ATDTphoneNo^M)
Mar 22 01:12:27 p100 chat[1580]: expect (CONNECT)
Mar 22 01:12:27 p100 chat[1580]: ^M
Mar 22 01:12:46 p100 chat[1580]: ATDTphoneNo^M^M
Mar 22 01:12:46 p100 chat[1580]: CONNECT
Mar 22 01:12:46 p100 chat[1580]: -- got it
Mar 22 01:12:46 p100 chat[1580]: send (^M)
Mar 22 01:12:46 p100 chat[1580]: expect (115200)
Mar 22 01:12:46 p100 chat[1580]: 115200
Mar 22 01:12:46 p100 chat[1580]: -- got it
Mar 22 01:12:46 p100 chat[1580]: send (^M)
Mar 22 01:12:46 p100 chat[1580]: expect (Verification)
Mar 22 01:12:46 p100 chat[1580]: ^M
Mar 22 01:12:47 p100 chat[1580]: ^MUser Access Verification
Mar 22 01:12:47 p100 chat[1580]: -- got it
Mar 22 01:12:47 p100 chat[1580]: send (^M)
Mar 22 01:12:47 p100 chat[1580]: expect (Username:)
Mar 22 01:12:47 p100 chat[1580]:
Mar 22 01:12:47 p100 chat[1580]: ^M
Mar 22 01:12:47 p100 chat[1580]: ^M^M
Mar 22 01:12:47 p100 chat[1580]:
Mar 22 01:12:47 p100 chat[1580]: Username:
Mar 22 01:12:48 p100 chat[1580]: -- got it
Mar 22 01:12:48 p100 chat[1580]: send (myUserName^M)
Mar 22 01:12:48 p100 chat[1580]: expect (Verification)
Mar 22 01:12:48 p100 chat[1580]: ^M
Mar 22 01:12:48 p100 chat[1580]: ^MUser Access Verification
Mar 22 01:12:48 p100 chat[1580]: -- got it
Mar 22 01:12:48 p100 chat[1580]: send (myPassWord^M)
Mar 22 01:12:48 p100 pppd[1579]: Serial connection established.
Mar 22 01:12:48 p100 pppd[1579]: Using interface ppp0
Mar 22 01:12:48 p100 pppd[1579]: Connect: ppp0 <--> /dev/ttyS1
Mar 22 01:12:49 p100 pppd[1579]: Warning - secret file /etc/ppp/pap-secrets
has world and/or group access
Mar 22 01:12:53 p100 pppd[1579]: Serial line is looped back.
Mar 22 01:12:53 p100 pppd[1579]: Connection terminated.
Mar 22 01:12:53 p100 pppd[1579]: Hangup (SIGHUP)
Mar 22 01:12:53 p100 pppd[1579]: Exit.
---------end /var/log/messages
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list