E220 dan Ubuntu 8.04 Hardy Heron

Kalau sebelumnya saya menulis mengenai modem E220 yang diatur melalui GUI (Graphical User Interface) mode, maka kali ini saya akan mencoba berbagi bagaimana menghubungan mesin Ubuntu 8.04 ke Internet via Text base (CLI) menggunakan modem huawei E220.

Bagi saya pribadi, menggunakan teks mode lebih sederhana dan powerfull :-D, oke langsung kita ke action ya :

1. Colokin modem
2. Buka terminal dan ketik lsusb
3. Jika sudah ada tulisan :
Bus 002 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Modem sudah terdeteksi dengan baik
4.Jalankan perintah sudo wvdialconf
sudo wvdialconf
[sudo] password for syafiudin:
Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 — OK
ttyUSB0<*1>: ATQ0 V1 E1 Z — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0<*1>: Modem Identifier: ATI — Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT — OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 — OK
ttyUSB1<*1>: ATQ0 V1 E1 Z — OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB1<*1>: Modem Identifier: ATI — Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT — OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”
ttyUSB1<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

5. E220 terdeteksi di /dev/ttyUSB0
6. Edit wvdial.conf dengan perintah :
sudo nano /etc/wvdial.conf
sesuaikan dengan operator yang kita gunakan :
Contoh jika menggunakan layanan telkomsel flash

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”INTERNET”
Password = ”
Check Def Route = on
Phone = *99#
Idle Seconds = 0
Auto DNS = 1
Abort on Busy = 0
Abort on No Dialtone = 0
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 9600
New PPPD = yes
Dial Command = ATDT
Modem = /dev/ttyUSB0
ISDN = 0
Username = ”
Carrier Check = 0

Jika menggunakan Provider lain semisal IndosatM2 maka cukup mengubah INIT3 menjadi
Init3 = AT+CGDCONT=1,”IP”,”INDOSATM2″
user namenya menjadi =indosatm2 dan password = prabayar.

7. Tes Koneksi dengan menjalankan perintah :
wvdial pada terminal dan hasilnya
syafiudin@syafiudin-laptop:~$ wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Sending: AT+CGDCONT=1,”IP”,”INTERNET”
AT+CGDCONT=1,”IP”,”INTERNET”
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
–> Carrier detected.  Starting PPP immediately.
–> Starting pppd at Mon Sep 14 23:57:46 2009
–> Pid of pppd: 8446
–> Using interface ppp0
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> pppd: ��[06][08]��[06][08]С[06][08]
–> local  IP address 114.120.239.238
–> pppd: ��[06][08]��[06][08]С[06][08]
–> remote IP address 10.64.64.64
–> pppd: ��[06][08]��[06][08]С[06][08]
–> primary   DNS address 114.127.208.84
–> pppd: ��[06][08]��[06][08]С[06][08]
–> secondary DNS address 114.127.253.84
–> pppd: ��[06][08]��[06][08]С[06][08]

Jika telah mendapatkan IP DNS Seperti diatas, maka koneksi Anda berjalan Mulusss tinggal langkah berikutnya yaitu Browsing

~~~ Semoga Bermanfaat ~~~