Sunday, February 21, 2010

BSNL EVDO wireless modem on Ubuntu 9.04

Configure Bsnl EVDO wireless Modem on Ubuntu 9.04

Steps to connect are:

1. Open terminal, become root user :
$ sudo -s
$ sudo apt-get install wvdial
create the dialup profile
$ wvdialconf /etc/wvdial.conf
This creates a file called /etc/wvdial.conf with default settings.


2. Now edit /etc/wvdial.conf, type:
$ nano /etc/wvdial.conf

Now add the Username, Password, Phone, Auto DNS and Stuip Mode to your wvdial.conf
FOR YOUR REFERENCE:
My /etc/wvdial.conf contains:
#######################
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Auto DNS = 1
Modem Type = Analog Modem
New PPPD = yes
Modem = /dev/ttyUSB0
Baud= 460800
ISDN = 0
Phone = #777
Password = *******
Username = *******
########################

Save the file wvdial.conf and exit the text editor.

3. Open resolve.conf and remove name server address and add the following.
$ nano /etc/resolv.conf
add the following two lines in resolv.conf
nameserver 218.248.240.181
nameserver 208.67.220.220

and save the file.

4. Now try the command wvdial in your terminal. It should work.
$ sudo wvdail
or
$ wvdail

OUTPUT
(You should see something similar Output on the Console).
root@vasanth-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
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sat Jan 3 23:02:55 2009
–> Pid of pppd: 6958
–> Using interface ppp0
–> local IP address 10.2.0.15
–> remote IP address 10.64.64.64
–> primary DNS address 218.248.240.181
–> secondary DNS address 208.67.220.220

5. To terminate the connection issue CTRL + C command and then remove EvDO device.

No comments:

Post a Comment