Halo..
Saya sudah coba itu.. tapi waktu saya mengexecute ifconfig command.. saya tidak
mendapatkan stats utk ppp0.. dan waktu saya mo ping server indosat.. saya mendapatkan
error.. "ping: sendto: Network is unreachable" itu kan berarti saya blom connected ke
servernya.. nah.. adakah file laen yg harus saya modify agar saya bisa mendapatkan
koneksi ke ISP? Misalnya.. /etc/hosts, /etc/resolv.conf dan minta kaish contohnya.. :)
Louis
---- you wrote:
> Halo juga,
> Saya konek ke Indosat juga langsung dari Linux (RedHat 4.2, kernel 2.0.33).
> Semua lancar dan ini script yang saya gunakan. Ada 2 file saya tempatkan di
> /etc/ppp : ppp-on dan ppp-on-dialer. Cukup mengedit file ppp-on (isi no.
> telp, account, password). File yg kedua dipanggil dari yang pertama. untuk
> konek cukup jalankan script ppp-on sebagai root. untuk diskonek, kill pid
> dari proses pppd (ada yg tau cara lain yg lebih sopan?)
>
> ---- mulai file /etc/ppp/ppp-on ----
>
> #!/bin/sh
> #
> # Script to initiate a PPP connection. This is the first part of the
> # pair of scripts. This is not a secure pair of scripts as the codes
> # are visible with the 'ps' command. However, it is simple.
> #
> # These are the parameters. Change as needed.
> TELEPHONE=??? # The telephone number for the connection
> ACCOUNT=??? # 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.255.0 # The proper netmask if needed
> #
> # Export them so that they will be available to 'ppp-on-dialer'
> export TELEPHONE ACCOUNT PASSWORD
> #
> # This is the location of the script which dials the phone and logs
> # in. Please use the absolute file name as the $PATH variable is not
> # used on the connect option. (To do so on a 'root' account would be
> # a security hole so don't ask.)
> #
> DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
> #
> # Initiate the connection
> #
> #
> PATH=$PATH:/sbin
>
> setserial /dev/cua1 spd_vhi
>
> exec /usr/sbin/pppd /dev/cua1 115200 \
> defaultroute mtu 1024 mru 1024 -chap -pap\
> asyncmap 0 $LOCAL_IP:$REMOTE_IP \
> connect $DIALER_SCRIPT
>
>
> ---- selesai file /etc/ppp/ppp-on -------------------
>
> ---- mulai file /etc/ppp/ppp-on-dialer ------------
>
> #!/bin/sh
> #
> # This is part 2 of the ppp-on script. It will perform the connection
> # protocol for the desired connection.
> #
> /usr/sbin/chat -v \
> TIMEOUT 30 \
> ABORT BUSY \
> ABORT "NO ANSWER" \
> ABORT "NO CARRIER" \
> "" ATZ \
> OK ATDT$TELEPHONE \
> CONNECT "" \
> login: $ACCOUNT \
> assword: $PASSWORD
>
> ----- selesai file /etc/ppp/ppp-on-dialer-------------------------------
>
> Selamat mencoba. Kasih tau kalo bisa.
>
> P.J. "Asa" Wirapati
> Bioinformatics Unit
> Eijkman Institute for Molecular Biology
>
> Powered by Linux since 1994
>
> -
> STOP-LANGGANAN: 'unsubscribe' ke: [EMAIL PROTECTED]
> START-LANGGANAN: 'subscribe' ke: [EMAIL PROTECTED]
--------------------------------------------------------
Get free personalized email at http://www.lycosemail.com
-
STOP-LANGGANAN: 'unsubscribe' ke: [EMAIL PROTECTED]
START-LANGGANAN: 'subscribe' ke: [EMAIL PROTECTED]