[plug] connecting using PAP

Matt Kemner zombie at networx.net.au
Wed Feb 3 15:46:35 WST 1999


On Wed, 3 Feb 1999, Marc Wiriadisastra wrote:

> What is the script for Vianet.  So we can help other people.  They use
> Pap and what is the sequence using Red Hat 5.2

For PAP login, the easiest way I find to connect is:
(this is a modification of what I use to dial into Networx from home)

chat script: (save this to /etc/ppp/Vianet.chat)

#start of script
""
ATZ
OK
ATDT9xxxxxxx
CONNECT
""
ername:
#end of script

change "ername:" to "ogin:" depending on what you're dialing into.
replace xxxxxxx with your phone number.

then create a script eg. "/usr/local/sbin/DialVianet" that contains:

#!/bin/bash
/usr/sbin/pppd connect '/usr/sbin/chat -f /etc/ppp/Vianet.chat' 115200 /dev/modem modem crtscts user USERNAME

Make sure the above is all on one line.
replace "USERNAME" with your username.
then edit /etc/ppp/pap-secrets and add the line:
USERNAME	*	PASSWORD

replace "USERNAME" with your username and "PASSWORD" with your password.

then make DialVianet executable (chmod 700) and execute it.

If it doesn't seem to work, change the DialVianet script and add a "-v"
between "/usr/sbin/chat" and "-f", then watch your /var/log/messages
(or /var/log/ppp.log, or elsewhere, depending on how your syslogd if
 configured)

Hope this helps

 - Matt



More information about the plug mailing list