Tuesday, May 15, 2007

Ngoprek Modem 3G di Linux

Saya merasa sangat kecewa :( juga awalnya ketika modem 3G saya dari produk vodafone tidak berhasil dideteksi oleh Linux di laptop ibm saya. “WAH bisa Berabe NEH masa harus pake
Window$ jika ingin koneksi internet” Memang sih dari CD Driver yang disertakan vodafone hanya support untuk Windows dan MacOS.
Saya pikir kalo ada dua OS di laptop saya merasa risih juga abis udah komit gak pake Windows lagi :) . masak sih gak ada cara untuk menjalan modem vodafone 3G saya di Linux ;) .

Berikut ini tutorial hasil ngoprek dari jam 11 malam sampe 3.30 pagi pada hari rabu tanggal 25 april 2007.
Awalnya sih capek banget abis pulang kerja jam 11 malam baru sampe rumah. Cuci muka gak pake mandi :) abis males udah malem banget ntar rematik lagi, sambil makan martabak beli dari malabar enak lhoh.. lumayan buat ganjal perut.

Buka Laptop terus coba deh… berikut langkah-langkahnya:

1. Untuk pertama kali cek driver PCMCIA sudah aktif atau belum dengan mengetikkan perintah berikut:
[root@aretanet syukrie]# cardctl status
Socket 0:
5V 16-bit PC Card
function 0: [ready]
function 1: [ready], [wp]
Socket 1:
no card

[root@aretanet syukrie]# cardctl config
Socket 0:
Vcc 5.0V Vpp1 0.0V Vpp2 0.0V
interface type is “memory and I/O”
irq 3 [exclusive] [level]
speaker output is enabled
function 0:
config base 0×0400
option 0×5f status 0×08
io 0×02e8-0×02ef [8bit]
Socket 1:
not configured
Kebetulan modem 3G saya pake jenis PCMCIA
Jika hasilnya sepeti di atas berarti PCMCIA card sudah dikenali.

2. Selanjutnya aktifkan service PCMCIA dengan menjalankan perintah:
[root@aretanet syukrie]# /etc/init.d/pcmcia restart

Supaya setiap komputer boot PCMCIA secara otomatis aktifkan di service ntsysv:
root@aretanet syukrie]#ntsysv ( untuk di Redhat)

3. Setelah PCMCIA dikenali di Linux langkah berikutnya adalah menjalankan program PPPD dialer berikut caranya:
-> Buat file vodafone dengan cara:
[root@aretanet syukrie]# vi /etc/ppp/vodafone-chat
isi file vodafone-chat:
###########################################
# Suggested chat script called by PPPD
# File: /etc/ppp/vodafone-chat
###########################################
ABORT BUSY
ABORT ‘NO CARRIER’
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
“” “AT&F”
OK “ATE1″
OK “AT+CGDCONT=1,\042IP\042,\042www.xlgprs.net\042″
SAY “Calling Vodafone GPRS\n”
TIMEOUT 60
OK “ATD*99***1#”
CONNECT \c
###########################################
###########################################

-> buat file vodafone seperti berikut:
[root@aretanet syukrie]# vi /etc/ppp/peers/vodafone

isi filenya vodafone:
#File /etc/ppp/peers/vodafone
###########################################
#Set this to the device allocated to the GlobeTrotter
/dev/modem
#Baudrate
115200
#Idle time for closing connection
idle 7200
#Lock the device for this PPPD process use only
lock
#Use normal handshaking
crtscts
#Assume it is a modem device and force modem control methods
modem
#Any user can start the connection
noauth
#If a default route exists replace it with the ppp link
#You get an error if this command is not supported
#by your version of PPPD
#replacedefaultroute
#Make the ppp link the default root
defaultroute
#Username and Password for computer/GlobeTrotter ppp link
#Normally ignored. Change if GSM Operator requires it
user xlgprs
password proxl
#Change the path to chat if required for your version of Linux
connect “/usr/sbin/chat -V -f /etc/ppp/vodafone-chat”
#Accept IP address provided by network
noipdefault
#Detach PPPD from console used to run the program {optional}
#updetach
#Get DNS addresses from operator
usepeerdns
#Don’t use VJ compression for ppp link
novj
###########################################
###########################################
Penjelasan:
————
username xlgrps // ini adalah account user kita, tergantung provider yang kita gunakan. Kebetulan saya menggunakan proxl.

password proxl // ini adalah password provider yang kita gunakan.

OK “AT+CGDCONT=1,\042IP\042,\042www.xlgprs.net\042″ // baris ini berisi www.xlgprs.net ini adalah nama domain provider yang saya gunakan.

Anda bisa isi sesuai dengan provider yang Anda gunakan.

4. Jika sudah, jalankan PPPD dialer dengan cara:
[root@aretanet syukrie]# pppd call vodafone
coba lakukan ping misalnya:
[root@aretanet syukrie]# ping google.com

jika gak ada masalah…, dan sudah ping ke google. Selamat Anda sudah dapat browsing dengan web browser kesayangan Anda di Linux.

untuk disconnect tinggal ketikan:
[root@aretanet syukrie]# killall pppd

Oke! Mungkin sedikit tulisan ini dapat bermanfaat…

salam sukses selalu,

Muhammad Syukri

http://blog.aretanet.com
http://kpli-tangerang.net

Sumber : http://www.linux.or.id/node/1577

No comments: