Koneksi dengan menggunakan pppsetup (Slackware)
Skrip ppp setup merupakan skrip yang dibuat oleh ROBERT S. LIESENFELD dan disertakan hampir di setiap distribusi Slackware. Untuk memanggilnya cukup ketikkan pppsetup dengan account root.$ su #pindah ke account root
password:
# pppsetup
Segera akan muncul layar pppsetup Versi 1.98, informasi pembuatnya dan kegunaannya. Tekan Enter. Pertama kali adalah permintaan untuk mengetikkan nomor telepon ISP yang akan dihubungi. Misalnya :
atdt3524001 <- untuk menelpon dengan tone
atdp3524001 <- untuk menelpon denga pulse
Selanjutnya tekan enter, dan masuk ke penentuan modem.
Pilih ttys0 jika modem Anda disambungkan ke port Com1
Pilih ttys1 jika modem Anda disambungkan ke port Com2
Pilih ttys2 jika modem Anda disambungkan ke port Com3
Pilih ttys3 jika modem Anda disambungkan ke port Com4
Setelah menentukan modem, dilanjutkan dengan menentukan baudrate dari modem.
460800 untuk modem dengan kecepatan 460KBps - Modem ISDN
230400 untuk modem dengan kecepatan 230KBps - Modem 56KBps atau ISDN
115200 untuk modem dengan kecepatan 115KBps - Modem 56KBps atau 33.6 atau 28.8
57600 untuk modem dengan kecepatan 57.6KBps - Modem 56KBps atau 33.6 atau 28.8
38400 untuk modem dengan kecepatan 38.4KBps - Modem 56KBps atau 33.6 atau 28.8
19200 untuk modem dengan kecepatan 19.2KBps - Modem ISDN
57600 untuk modem dengan kecepatan 9.6KBps - Modem ISDN
Pilih sesuai konfigurasi modem Anda. Selanjutnya akan muncul pertanyaan :
Does your service provider provide call back?
Jawab no. Call back adalah fasilitas yang memungkinkan server untuk menelepon kembali beberapa saat setelah login. Pertanyaan selanjutnya adalah tentang init string dari modem. Tekan enter langsung dan biarkan pppsetup memasukkan nilai standar.
Konfigurasi selanjutnya adalah nama domain dari ISP. Misal; indosat.net.id, telkom.net.id dan sebagainya. Isikan nama domain ini, diikuti dengan nomor IP dari DNS Name Server ISP. Jika Anda tidak yakin, tanyakanlah pada ISP Anda. Lalu akan ditanyakan metode autentikasi, pilih PAP. Dua konfigurasi terakhir adalah username dan password Anda untuk login ke ISP. Semua input yang diisikan selama setup ini akan disimpan dalam satu file yang berada di/etc/ppp/pppsetup.txt (minus username dan password untuk login ke ISP). Berikut contoh filenya :
===============================================================
PPPSETUP 1.98 on SLACKWARE.
Written by Robert S. Liesenfeld <xunil@bitstream.net> <IRC:Xunil>
Changes for 1.98 by Kent Robotti <robotti@erols.com>
Patched for Slackware by Patrick Volkerding <volkerdi@slackware.com>
You should get these docs if you don't already have them:
ftp://metalab.unc.edu/pub/Linux/docs/howto/PPP-HOWTO
ftp://metalab.unc.edu/pub/Linux/docs/faqs/PPP-FAQ
Press [Enter] to continue with pppsetup...
===============================================================
These are your PPP configuration files and instructions...
===============================================================
# This is your /etc/ppp/pppscript.
TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
"" "AT&FH0"
OK "atdt3524001"
TIMEOUT 75
CONNECT
# This is your /etc/ppp/options file.
# General configuration options for PPPD:
lock
defaultroute
noipdefault
modem
/dev/ttyS1
57600
crtscts
# Uncomment the line below for more verbose error reporting:
#debug
# If you have a default route already, pppd may require the other side
# to authenticate itself, which most ISPs will not do. To work around this,
# uncomment the line below. Note that this may have negative side effects
# on system security if you allow PPP dialins. See the docs in /usr/doc/ppp*
# for more information.
#noauth
passive
asyncmap 0
name "fade"
# This is your /etc/ppp/options.demand dialing file.
# General configuration options for PPPD:
lock
defaultroute
noipdefault
modem
/dev/ttyS1
57600
crtscts
# Uncomment the line below for more verbose error reporting:
#debug
# If you have a default route already, pppd may require the other side
# to authenticate itself, which most ISPs will not do. To work around this,
# uncomment the line below. Note that this may have negative side effects
# on system security if you allow PPP dialins. See the docs in /usr/doc/ppp*
# for more information.
#noauth
passive
asyncmap 0
name "fade"
ipcp-accept-local
ipcp-accept-remote
0.0.0.0:10.10.10.10
demand
connect "/usr/sbin/chat -v -f /etc/ppp/pppscript"
If you have a ethernet connection you should change the local:remote
IP addresses in the options.demand file, to your actual local and
remote address. Example: 215.346.117.89:312.217.187.96
# This in your /etc/resolv.conf file.
search cbn.net.id
nameserver 202.158.3.7
202.158.3.7 <-IMPORTANT: This should be the IP address of
your service providers nameserver.
# This is your /etc/ppp/pap-secrets file.
Look at /etc/ppp/pap-secrets.
Does everything look correct? if not, run 'pppsetup' again...
===============================================================
To connect to your service provider.
===============================================================
# ppp-go <-Make PPP connection.)
logging you in Username: or Login: and Password: etc.
You won't see a Username or Login: and Password: prompt
if they're using PAP or CHAP to authenticate you.
If they use PAP or CHAP you'll just see CONNECT - got it.
If the connection was successful you'll see the Local IP and
Remote IP address printed to the screen, you can press [Enter].
If you run ppp-go in X windows you probably won't see a Local
and Remote IP address printed to the screen, you'll just see
the connection process come to a end, wait a few seconds and
press [Enter] at that point.
If you don't connect for whatever reason e.g. Failed No
Dialtone, Busy, No Carrier, Whatever, Exit, just press
[Enter] at that point.
if you have syslogd running, you can see the output messages
from pppd and chat in the /var/log/messages and or debug file.
Sample /var/log/messages file.
spawn pppd[562]: Using interface ppp0
spawn pppd[562]: Connect: ppp0 <-> /dev/modem
spawn pppd[562]: local IP address 215.87.78.18
spawn pppd[562]: remote IP address 205.94.97.35
You don't have a successful PPP connection until you
receive a local & remote IP address like above.
If you have the X window system, you could connect in a Xterm.
spawn # startx
spawn # ppp-go
spawn # netscape mosaic etc.
# ppp-off <-To end the ppp connection.)
# ppp-go -h <-For help.)
There is no support in linux for "WinModems", if you have a
WinModem you will not be able to use it in linux.
There is support for plug n play modems, if you have a pnp
modem you may need "isapnptools" to get it recognized.
===============================================================
#### Look at the /usr/doc/pppsetup/pppsetup-1.98.README. ####
#### A copy of this text can be found in: /etc/ppp/pppsetup.txt ####
===============================================================
Done... You can exit now...
End...
Tidak ada komentar:
Posting Komentar