Doug's Linux Notebook

Connecting to your Dial-up ISP

First you need a working modem. A hardware modem, internal or external, is probably the easiest way to go Some have had good luck with usb modems, USB Modem Support . Win modems, which are the most common type, are a little more tricky. For information on using a winmodem see linmodems.org or Linmodem-HOWTO.

Once you have a modem that works with linux you need to get it to connect to your ISP, I like to use "wvdial" for this.

To use wvdial you must first create a wvdial.conf file by issuing the following command:

[root@linux]$ wvdialconf /etc/wvdial.conf

Wvdial will then look for a modem, and if one is found output something similar to the following:


Scanning your serial ports for a modem.

ttyS1<*1>: ATQ0 V1 E1 -- OK
ttyS1<*1>: ATQ0 V1 E1 Z -- OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 -- OK
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 -- OK
ttyS1<*1>: Modem Identifier: ATI -- 5601
ttyS1<*1>: Speed 2400: AT -- OK
ttyS1<*1>: Speed 4800: AT -- OK
ttyS1<*1>: Speed 9600: AT -- OK
ttyS1<*1>: Speed 19200: AT -- OK
ttyS1<*1>: Speed 38400: AT -- OK
ttyS1<*1>: Speed 57600: AT -- OK
ttyS1<*1>: Speed 115200: AT -- OK
ttyS1<*1>: Max speed is 115200; that should be safe.
ttyS1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 -- ATQ0 V1 E1 -- ATQ0 V1 E1 -- nothing.
Port Scan<*1>: S2 S3

Found a modem on /dev/ttyS1.
ttyS1: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0"

If wvdial found a modem it will write the file /etc/wvdial.conf. You must then edit this file with your favorite text editor to put in your account information:

Phone = your ISP's dialup number
Username = your account user name
Password = Your account password

Here is what my "wvdial.conf" file looks like.

[Modem0]
Modem = /dev/ttyS2
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM0
FlowControl = CRTSCTS
[Dialer default]
Area Code = 419
Username = *******
Password = *******
Phone = 0000000
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0

Once this is complete, in a terminal with root permission issue the command:

[root@linux]$ wvdial

wvdial will dial your ISP and conect. You can then use your web browser, ftp, or whatever. To disconect and hangup the phone line press CTRL-C.

Back to the Main Page