How to connect Mobile Broadband in the ubuntu linux
Share the post "How to connect Mobile Broadband in the ubuntu linux"
I have Reliance Netconnect + Broadband and I tried to connect internet in my ubuntu linux box. First I tried to connect it by using
the Network Connection manager but I failed in it. So I tried with wvdial package to connect with Internet. Wvdial is a point-to-point protocol and it dials the modem and starts pppd in order to connect internet.
Check your host have wvdial package
root@linuxintenretworks.com:/home/tamil# dpkg –list | grep wvdial
wvdial1.61-4build1 intelligent Point-to-Point Protocol dialer
In my case I have already installed wvdial package. If you want to install it, use apt-get or software update manager
#apt-get update
# apt-get install wvdial
Now connect your modem with your host and open the terminal,type the command wvdialconf. Now it will check for modem on all the available interfaces
root@linuxintenretworks.com:/home/tamil# wvdialconf
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
Modem Port Scan<>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<>: S24 S25 S26 S27 S28 S29 S30 S31
ttyUSB0<>: ATQ0 V1 E1 — OK
ttyUSB0<>: ATQ0 V1 E1 Z — OK
ttyUSB0<>: ATQ0 V1 E1 S0=0 — OK
ttyUSB0<>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0<>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0<>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0<>: Modem Identifier: ATI — Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<>: Speed 9600: AT — OK
ttyUSB0<>: Max speed is 9600; that should be safe.
ttyUSB0<>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB1<>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1<>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB1<>: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyUSB2<>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB2<>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB2<>: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyUSB3<>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB3<>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB3<>: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyUSB4<>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB4<>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud
ttyUSB4<>: ATQ0 V1 E1 — and failed too at 115200, giving up.Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
Edit the configuration file and enter the username and password details
root@linuxinternetworks.com:/home/tamil# vim /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0Phone = #777
Password = <your password>
Username = <your username>
Save and quit the file.
Now start the modem connection
root@linuxinternetworks.com:/home/tamil# wvdial
–> 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 3100000
–> Carrier detected. Waiting for prompt.
–> Don’t know what to do! Starting pppd and hoping for the best.
–> Starting pppd at Sun Sep 16 20:54:47 2012
–> Pid of pppd: 4345
–> Using interface ppp0
–> pppd: �[7f]
–> pppd: �[7f]
–> pppd: �[7f]
–> local IP address x.x.x.x
–> pppd: �[7f]
–> remote IP address x.x.x.x
–> pppd: �[7f]
–> primary DNS address x.x.x.x
–> pppd: �[7f]
–> secondary DNS address x.x.x.x
–> pppd: �[7f]
Dont close it and open a new tab in terminal and login as root user
Check the nameserver entries in /etc/resolv.conf add the google public dns address in it
vim /etc/resolv.conf
nameserver 8.8.8.8
save and quit the file. Now check the internet connectivity
root@linuxinternetworks.com:/home/tamil# ping google.com -c 4
PING google.com (173.194.36.5) 56(84) bytes of data.
64 bytes from bom04s01-in-f5.1e100.net (173.194.36.5): icmp_req=1 ttl=57 time=125 ms
64 bytes from bom04s01-in-f5.1e100.net (173.194.36.5): icmp_req=2 ttl=57 time=144 ms
64 bytes from bom04s01-in-f5.1e100.net (173.194.36.5): icmp_req=3 ttl=57 time=132 ms
64 bytes from bom04s01-in-f5.1e100.net (173.194.36.5): icmp_req=4 ttl=57 time=115 ms— google.com ping statistics —
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 115.611/129.585/144.695/10.630 ms
If you find any issues or any other alternative method please do let me know through comments.
Happy Surfing
Related Articles
- How to connect internet in ubunt linux
- How to connect internet using PPPoE in linux
- How to connect with Internetworks
- How to check the network interface card
Share the post "How to connect Mobile Broadband in the ubuntu linux"
Related articles
- How to connect internet in ubuntu linux
- How to install skype on ubuntu 11.10 / 11.04 / 10.10 / 10.04
- Get website details
- How to install nginx in ubuntu
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- How to backup and restore mysql database
- Easy method to update bootloader in linux
- How to install Skype on ubuntu linux
- How to change the Apache HTTP port number
- Apache HTTP Server installation from source code in linux
Advertisement
Follow us on Twitter
Follow us on GooglePlus
Find us on Facebook
Recent Posts
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- Easy method to recover linux root password
- Easy method to install KDE in ubuntu 12.04
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
- Get website details
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- How to install nginx in centos 5
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Service start, stop, restart – nginx in centos
- How to change nginx port number
- How to install nginx on centos 6
- Rsync command with ssh port number
- File creation date and time in linux
- How to install Java in ubuntu linux
- How to install Oracle Java JDK in ubuntu
- How to set password for website
- Plesk – MySQL admin login – password
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to find out mysql uptime
- How to backup and restore mysql database
- How to recover mysql root password
- How to connect Mobile Broadband in the ubuntu linux
- Easy method to update bootloader in linux
- Webcam software for linux
- Check memory usage in linux
- How to find out CPU utilization in linux
