Internet Connection with wvdial (Debian base)

wvdial is a utililty that create a PPP(Point to Point Protocol) connection to your ISP (Internet Service Provider). wvdial is a dialer for modem-based connection. wvdial is included in some linux distribution, wvdial is useful when your network manager is not working, the two more reasons of using wvdial is you can still use it even if your X is not working or is not installed, and how to Install wvdial and use wvdial ? You can follow my tutorial below.

Step 1

Install wvdial by open your terminal and type :

$ sudo apt-get wvdial

and wait till installation progress is complete, If no package found you should update your repository first.

Step 2

Before you run your wvdial, open wvdial configuration file to configure your username, password and dial number, if you don’t know what is yours, ask your ISP customer service.

Plug in your moden and check if your modem is detected or not by command lsusb.

wvdial will automatically set default configuration for your modem or you can tell wvdial to automatically create configuration file by

$ sudo wvdialconf

To change some configuration (username, password, dial number) open wvdial configuration file with this command and press enter :

$ sudo vim /etc/wvdial.conf

Step 3

This is default configuration for 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/ttyUSB2
ISDN = 0
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>

Change it to this

[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/ttyUSB2  (Your Modem location)
ISDN = 0
Phone = *99# (Your dial number)
Password =  internet (Your ISP Password)
Username = internet (Your ISP Username)

Save your configuration.

Step 4

Last step is run your wvdial, to run your wvdial type this command :

$ sudo wvdial &

*with & (and) wvdial will run as a background progress, to stop wvdial just type kill <wvdialpid>.
If no carrier detected try to restart your pc or plug out your modem and plug in it again.

This is screenshot if the connection is successful.

Internet Connection with wvdial (Debian base)* 10153 is the pid.

Then test your internet :), open your browser or just ping google or something else :).

If you have suggestion for this post : Internet Connection with wvdial, please contact me via contact page or by comment on this post. Thank you 🙂 

Leave a Reply