using im2 with huawei modem in slackware 13.1

Linux/ Slackware can use vary of modems without a hard install. Slackware provides wvdial dan wvstream command/ setting for wireless connection. First let’s download these two programs.

1. wvdial
2. wvstreams

Install those programs using installpkg as root privileges

root@darkstar:/# installpkg wvdial-1.61-x86_64-1ponce.txz

root@darkstar:/# installpkg wvstreams-4.6-x86_64-1ponce.txz

Edit /etc/wvdial.conf as follow

root@darkstar:/# nano /etc/wvdial.conf

[Dialer Defaults]
Init1 = AT+CPIN=****
Init2 = AT^SYSCFG=14,2,3FFFFFFF,2,4
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,”IP”,”indosatm2″
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

——————

Init1 = AT+CPIN= fill with 4 digits im2 pin
password = with password
Username = Your username

Restar rc.udev service
root@darkstar:/# chmod +x /etc/rc.d/rc.udev
root@darkstar:/# /etc/rc.d/rc.udev force-restart
Run wvdial
root@darkstar:# wvdial
–> WvDial: Internet dialer version 1.61
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: AT+CPIN=****
AT+CPIN=1803
OK
–> Sending: AT^SYSCFG=14,2,3FFFFFFF,2,4
AT^SYSCFG=14,2,3FFFFFFF,2,4
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”,”indosatm2″
AT+CGDCONT=1,”IP”,”indosatm2″
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
NO CARRIER
–> No Carrier! Trying again.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon Jun 28 10:01:04 2010
–> Pid of pppd: 2717
–> Using interface ppp0
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> pppd: æ[7f]
–> local IP address 114.59.216.244
–> pppd: æ[7f]
–> remote IP address 10.64.64.64
–> pppd: æ[7f]
–> primary DNS address 202.155.0.15
–> pppd: æ[7f]
–> secondary DNS address 202.155.0.10
–> pppd: æ[7f]

After it connected we need to write the dns applied by im2
root@darkstar:/#nano /etc/resolv.conf
nameserver 202.155.0.15
nameserver 202.155.0.10

Restart the network (if necessary)
root@darkstar:/#/etc/rc.d/rc.inet1 restart

Next time you connect to im2, just execute  wvdial in the terminal.

Sumber : http://tundra.web.id/archives/1224

http://www.4120h.co.cc/2011/01/install-modem-huawei-e1150-im2.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.