230 lines
4.8 KiB
HTML
230 lines
4.8 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>WvDial - A command-line pppd driver</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux PPP HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Easy Configuration Utilities for PPP"
|
|
HREF="tools.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Easy Configuration Utilities for PPP"
|
|
HREF="tools.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="rp3 - RedHat PPP dialer"
|
|
HREF="x328.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
><A
|
|
HREF="http://www.linuxports.com/howto/ppp"
|
|
TARGET="_top"
|
|
>Linux PPP HOWTO</A
|
|
></TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="tools.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 7. Easy Configuration Utilities for PPP</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x328.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN314"
|
|
>7.2. WvDial - A command-line pppd driver</A
|
|
></H1
|
|
><P
|
|
>The WvDial homepage is <A
|
|
HREF="http://www.worldvisions.ca/wvdial/"
|
|
TARGET="_top"
|
|
>here</A
|
|
></P
|
|
><P
|
|
>WvDial is a command-line pppd driver. It has two main components, wvdialconf
|
|
and wvdial. Both must be run as root. </P
|
|
><P
|
|
>First you must run wvdialconf. wvdialconf is generates a configuration
|
|
file containing information on your modem and ISP information. Running
|
|
wvdialconf will probe your comm ports, looking for a modem, and determine
|
|
the capabilities of any modems it finds.</P
|
|
><P
|
|
>wvdialconf is invoked with the name of your wvdial configuration file-
|
|
which is always /etc/wvdial.conf. Here's what the output should look like.</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>[root@blah /root]# wvdialconf newconffile
|
|
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 -- 28800
|
|
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.</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>If your output looks different, check that your modem is plugged in,
|
|
turned on, and connected to a com port.</P
|
|
><P
|
|
>Once you have run wvdialconf, you need to edit the /etc/wvdial.conf file
|
|
to reflect the phone number to dial, and your username and password.
|
|
Open up /etc/wvdial.conf in your favorite text editor. It should look
|
|
something like this:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>[Dialer Defaults]
|
|
Modem = /dev/ttyS1
|
|
Baud = 115200
|
|
Init1 = ATZ
|
|
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
|
|
; Phone = 555-1212
|
|
; Username = my_login_name
|
|
; Password = my_login_password</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>Remove the ';' and fill in the appropriate fields- phone number,
|
|
login name and password. Now you should be all set to run wvdial.</P
|
|
><P
|
|
>Run wvdial. Assuming that you filled in your phone number, username,
|
|
and password correctly, wvdial will now dial your ISP. wvdial will not
|
|
exit until the connection is terminated- you can do a Ctrl-C to terminate
|
|
it.</P
|
|
><P
|
|
>wvdial is fairly new and untested software, so if you run into any
|
|
problems along the way, you should contact the authors. You can find
|
|
their contact info on the homepage listed above.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="tools.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x328.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Easy Configuration Utilities for PPP</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="tools.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>rp3 - RedHat PPP dialer</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |