How to configure huawei E1550 USB Dongle Idea Netsetter in RedHat Linux 5 ?

Use the commands and their respective details

MF677_netsetter

# ls /dev/ttyUSB*

You will see something like this:

/dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3  

The first one is the port of the modem (/dev/ttyUSB1).
Now edit wvdial.conf file:

# vi /etc/wvdial.conf
You have to add the code given below in your wvdial.conf file
[Dialer Defaults]
Modem=/dev/ttyUSB1
Baud = 460800
Init 1 = AT+CGMM
Init 2 = AT+CMEE=1
Init 3 = ATE0
Init 4 = AT^HS=0,0
Init 5 = AT+CFUN?
Init 6 = AT+CLCK=”SC”,2
Init 7 = AT+CPIN?
Init 8 = AT+CLCK=”SC”,2
Modem Type = USB MODEM
Phone=*99#
Username = idea
Password = idea
Dial Command=ATDT
Stupid Mode=1
ISDN=0

Now all you need to do is run wvdial as root:

# wvdial

–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
–> Carrier detected.  Starting PPP immediately.
–> Starting pppd at Sun May 24 02:03:51 2009
–> Pid of pppd: 6361
–> Using interface ppp0
–> pppd: ���[08][10]��[08]
–> pppd: ���[08][10]��[08]
–> pppd: ���[08][10]��[08]
–> pppd: ���[08][10]��[08]
–> pppd: ���[08][10]��[08]
–> pppd: ���[08][10]��[08]
–> local IP address x.x.x.x
–> pppd: ���[08][10]��[08]
–> remote IP address y.y.y.y
–> pppd: ���[08][10]��[08]
–> primary DNS address a.a.a.a
–> pppd: ���[08][10]��[08]
–> secondary DNS address b.b.b.b
–> pppd: ���[08][10]��[08]

Here the important details to be noted are:

local IP address is our IP
remote IP is the gateway <–gw
primary DNS addrss is the DNS server IP<–nameserver

But still not connected:

root@home:~# ping http://www.google.com
ping: unknown host www.google.com

So lets assign our IP manually with the above info:

root@home:~#ifconfig ppp0 x.x.x.x
root@home:~#route add default gw y.y.y.y
root@home:~#echo nameserver a.a.a.a > /etc/resolv.conf

Now:

root@home# ping www.google.com
PING http://www.google.com  (64.233.189.99) 56(84) bytes of data.
64 bytes from hk-in-f99.google.com (64.233.189.99): icmp_seq=1 ttl=243
time=135 ms
64 bytes from hk-in-f99.google.com (64.233.189.99): icmp_seq=2 ttl=243
time=135 ms

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s