Setup a Dialup connection in linux

Written on January 3rd, 2008 by krannywidlinux12 shouts

ive found this to be a problem for every new-bie and thought of to share with u guys.Actually i’m using ubuntu 7.04 at present.this post doesnt assume that your Linux distro recognises your modem.

So first connect your modem and start off with lsusb and see the output if you see there your mobile’s manufacture name.
then execute “sudo wvdialconf”This tries to detect the baud rate of your modem and writes it to /etc/wvdial.conf

and also you have to make some manual changes to wvdial.conf,like update the username and password options…so execute the command sudo gedit /etc/wvdial.conf if you are using Gnome
or sudo kate /etc/wvdial.conf if you are using KDE

our wvdial.conf should look like

[Dialer Defaults]
Modem = /dev/ttyUSB1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
stupid mode = 1
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = a
Password = b
Baud = 460800

now if ur using ubuntu then voila ur done with …..coz it automatically updates DNS server in resolv.conf.If u use any other distro open file:/etc/resolv.conf and enter following setting service named start
nameserver 202.56.230.5
nameserver 202.56.250.5
and save it…..

thats it u are done with…..just type wvdial and ur connected to net…….just type ctrl+c to disconnect……or type Killall pppd to kill all active connections……

Some common problems 1. Internet connected successfully but page is not opening

fire up following command
gedit /etc/resolv.conf

and enter this
nameserver 208.67.222.222 nameserver 208.67.220.220
Now u will be able to open web page without any problem.

2 when ever i try to connect internet i get this error (Device or Resource busy)
This is the common problem with dialup connection via dial up.
Possible solution.
1. remove usb cable from the port and reinsert it. If that not help than.
2. run following command
wvdialconf /etc/wvdialconf
it will remap ur usb port to ttyACMO1or 2

Life is much better in ubuntu. ubuntu automatically update the dns server detail in resolv.conf whenever user dial dialup connection. and ubuntu automatically update the wvdial.conf file with dialup/phone setting whenever user fireup this command
sudo wvdialconf
but on other distro user have to enter following command to update wvdial.conf file
wvdialconf /etc/wvdial.conf
as root

Updates for the Comments::::::::::::::::::::

f you use Idea GPRS then your string will be like
init1 = AT+CGDCONT=1,”IP”,”internet”,”",0,0

if you use BSNL gprs in south zone of India then string will be like
init1 = AT+CGDCONT=1,”IP”,”",”portalsouth.cellone.in”,0,0

and use the following username & password if you use bsnl gprs
Username = ppp
Password = ppp123

for hutch use
init1 = AT+CGDCONT=1,”IP”,”www”,”",0,0

If u have ny other problems regarding connecting net then feel free to bug me…..

Filed under Internet Tags:, , ,

12 Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment