Khalsa Labs

Configure Dial-Up Device On Linux


How to configure a Dial-Up device on linux?

Its not easy task like windows to connect yourself to internet via a Dial-Up modem using Linux OS. But it can be make easy by configuring wvdial. so what is wvdial???… nothing it is just pre-installed package for specially dial-ups. So here is the trick how to configure dial-up device on linux.

The configuration file of the wvdial  /etc/wvdial.conf contains the first line [Dailer Defaults] and all the configuration is done under this.

So lets configure your dial-up step by step:

  1.  connect your modem device (e.g mobile phone or usb gsm dongle)
  2.  run the command: usbprobe
  3.  now you can check device  by command: ls /dev  it will show a list
  4. If you are using bluetooth find in list like rfcomm0 or rfcomm1 etc.
  5. If you have cable or usb connection find like ttyACM0 or ttyACM1 etc.
  6. now device is properly connected, and turn to change wvdial.conf
  7. open wvdial.conf and put the following code:
  8. [Dailer Defaults]
    Modem =/dev/rfcomm0
    Baud = 230400
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 SO=0&C1&D2+FCLASS=0
    Init3 = AT+CGDCONT=1,”IP”,”www”
    ISDN = 0
    Modem Type = Analog Modem
    Area Code =
    Phone = *99***1#
    Username =
    Password =
    Ask Password = 0
    Dial Command = ATDT” just make change at first line at /dev/rfcomm0 , as your device.and in fifth line  AT+CGDCONT=1,”IP”,”www”  the www will be your acess point name

    and IP will be network ip. to change www by your network ASP is important.”


    After all save file, reboot system, and now just run a command: wvdial

    will let you connect to internet

The following two tabs change content below.
Python Developer and DIY lover.

want to comment ??

Your email address will not be published. Required fields are marked *