98/12/09 K.Fujii for G3 Series PB/266 [1] ppp-on/ppp-off/callback [1-1] ppp-on # cp /usr/doc/ppp-***/scripts/ppp-on /usr/sbin # vi /usr/sbin/ppp-on TELEPHONE=77-1210 # The telephone number for the connection ACCOUNT=fujiik/ppp # The account name for logon (as in 'George Burns') PASSWORD= # The password for this account (and 'Gracie Allen') LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0 REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0 NETMASK=255.255.0.0 # The proper netmask if needed .... #DIALER_SCRIPT=/etc/ppp/ppp-on-dialer DIALER_SCRIPT=/etc/ppp/callback .... exec /usr/sbin/pppd debug lock modem crtscts /dev/modem 56000 \ ^^^^^ .... # chmod 511 /usr/sbin/ppp-on [1-2] ppp-off # cp /usr/doc/ppp-***/scripts/ppp-off /usr/sbin # chmod 511 /usr/sbin/ppp-on [1-3] callback # cp /usr/doc/ppp-***/scripts/ppp-off /etc/ppp/ # vi /etc/ppp/callback .... #PHONE=555-1212 #MODEMPASS=modem_identifier .... #ACCOUNT=my_account_name #PASSWORD=my_password .... /usr/sbin/chat -v \ TIMEOUT 3 \ ABORT '\nBUSY\r' \ ABORT '\nNO ANSWER\r' \ ABORT '\nRINGING\r\n\r\nRINGING\r' \ '' AT \ 'OK-+++\c-OK' 'AT&C0&D2S0=0H0' \ TIMEOUT 30 \ OK ATDT$TELEPHONE \ CONNECT '' \ ogin: $ACCOUNT \ word: $PASSWORD \ "\nNO CARRIER\r" .... [2] /dev/modem # dmesg | less ..... tty02 at 0xd018b020 (irq = 79) is a Z8530 ESCC, port = internal-modem (cobalt mo dem) .... # cd /dev # ln -s ttyS2 modem [3] Trun off eth0 # netcfg Then deactivate eth0 for modem to take over. Alternatively one can directly use # /etc/sysconfig/network-scripts/ifdown eth0 [4] Connect to KEK # export PATH=$PATH:/usr/sbin:/sbin # ppp-on # tail -f /var/log/message # exit $ slogin jlcuxf ..... [5] Disconnect # export PATH=$PATH:/usr/sbin:/sbin # ppp-off