At 14:28 98/02/23 -0500, you wrote:
>Hallo,
>Saya ingin menanyakan beberapa hal.
>1. Saya ingin mengadakan connection ke ISP saya (Indosat) tetapi tidak
bisa. Saya mencobanya dgn menggunakan minicom dan secara manual menggunakan
pppd. Tetapi waktu saya meng-execute "ifconfig", saya tidak mendapatkan
status utk ppp0 yang berarti saya tidak connected ke ISP. Bagaimanakah saya
bisa membenarkan masalah ini?
>2. Saya menggunakan Dynamic IP and utk setting di /etc/ppp/options,
/etc/hosts.. bisakah anda memberi contoh gimana saya bisa membenarkannya
secara betul.
>3. Saya menggunakan RedHat ver 4.2. Kernel versi 2.0.33.
>Terima kasih atas perhatian anda.
>Cheers,
>Louis
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]