Koneksi Internet Modem USB Smartfen AC2726i Archlinux

Dari Wiki STMIK Kharisma
Langsung ke: navigasi, cari

Dicoba di archlinux-2011.08.19-core-dual.iso


Setelah Archlinux terinstall di komputer, maka kita perlu paket-paket tambahan untuk koneksi internet dengan modem USB Smartfren AC2726i, semua paketnya bisa diunduh di bawah ini:


Pada saat modem USB terpasang, Archlinux sudah langsung mengenali modem USB. Gunakan perintah lsusb untuk melihat hasilnya.


[root@archer ~]# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 003: ID 19d2:fff5 ONDA Communication S.p.A.
[root@archer ~]#


Device modem USB yang dikenali adalah Bus 001 Device 003: ID 19d2:fff5 ONDA Communication S.p.A.. Selanjutnya kita perlu mengubah dari mode storage ke mode modem dengan menggunakan usb_modeswitch. Langkah pertama adalah instalasi usb_modeswitch beserta dependensinya.


[root@archer ~]# pacman –U usb_modeswitch-1.2.2-1-i686.pkg.tar.xz tcl-8.5.11-1-i686.pkg.tar.xz


Tunggu hingga proses instalasi selesai. Lalu gunakan kembali perintah lsusb.


[root@archer ~]# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera
Bus 001 Device 004: ID 19d2:fff1 ONDA Communication S.p.A.
[root@archer ~]#


Jika berhasil, pada baris terakhir akan berubah menjadi fff1 bukan fff5, kalau belum, tunggu beberapa saat dan ulangi perintah lsusb.


Selanjutnya instalasi wvdial beserta dependensinya.


[root@archer ~]# pacman –U wvdial-1.61-3-i686.pkg.tar.xz wvstreams-4.6.1-3-i686.pkg.tar.xz xplc-0.3.13-3-i686.pkg.tar.xz


Tunggu hingga proses instalasi selesai. Kemudian jalankan perintah wvdialconf, untuk konfigurasi wvdial.


[root@archer ~]# wvdialconf

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan: S0 S1 S2 S3
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: QUALCOMM INCORPORATED
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.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.

Found a modem on /dev/ttyUSB0.
/etc/wvdial.conf<Warn>: Can't open '/etc/wvdial.conf' for reading: No such file or directory
/etc/wvdial.conf<Warn>: ...starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"


Untuk melihat hasil konfigurasinya:


[root@archer ~]# cat /etc/wvdial.conf

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
ISDN = 0
; Username =  <Your Login Name>
Init1 = ATZ
; Password =  <Your Password>
Modem = /dev/ttyUSB0
Baud = 9600
[root@archer ~]#


Lalu ubah sesuai dengan konfigurasi modem Smart:


[root@archer ~]# nano /etc/wvdial.conf

[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 9600
FlowControl = CRTSCTS
Carrier Check = No
New PPPD = yes
[root@archer ~]#

Untuk mengaktifkan koneksi ke Internet, lakukan dengan perintah berikut:


[root@archer ~]# wvdial smart

--> WvDial: Internet dialer version 1.61.
--> 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
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}’}”}(}”w}0~
--> PPP negotiation detected.
--> Starting pppd at Wed Feb 15 23:25:06 2012
--> Pid of pppd: 922
--> Using interface ppp0
--> pppd: H■■ P■■   
--> pppd: H■■ P■■  
--> pppd: H■■ P■■   
--> pppd: H■■ P■■  
--> pppd: H■■ P■■   
--> local IP address 10.116.139.61
--> pppd: H■■ P■■   
--> remote IP address 10.17.95.21
--> pppd: H■■ P■■   
--> primary DNS address 10.17.3.244
--> pppd: H■■ P■■    
--> secondary DNS address 10.17.3.245
--> pppd: H■■ P■■

Tes koneksi, misal ke www.google.com.


[root@archer ~]# ping -c 5 www.google.com

PING www.google.com (74.125.235.19) 56(84) bytes of data.
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=1 ttl=53 time=79.4 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=2 ttl=53 time=91.6 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=3 ttl=53 time=86.5 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=4 ttl=53 time=84.4 ms
64 bytes from sin01s04-in-f19.1e100.net (74.125.235.19): icmp_seq=5 ttl=53 time=79.3 ms

--- www.google.com ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 79.368/84.289/91.693/4.656 ms
[root@archer ~]#


Selesai.

Untuk selanjutnya, sebelum internetan, aktifkan dahulu wvdial-nya dengan perintah wvdial smart dari terminal.