279 lines
5.8 KiB
HTML
279 lines
5.8 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Testing your modem for dial out</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="Configuring your modem and serial port"
|
|
HREF="modem.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Note on Serial Flow Control"
|
|
HREF="x797.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Setting up Name to Address Resolution (DNS)"
|
|
HREF="dns.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="x797.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 12. Configuring your modem and serial port</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="dns.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN808"
|
|
>12.5. Testing your modem for dial out</A
|
|
></H1
|
|
><P
|
|
>Now that you have sorted out the serial port and modem settings it is a
|
|
good idea to make sure that these setting do indeed work by dialing you
|
|
ISP and seeing if you can connect.</P
|
|
><P
|
|
>Using you terminal communications package (such as minicom), set up the
|
|
modem initialisation required for PPP and dial into the PPP server you
|
|
want to connect to with a PPP session.</P
|
|
><P
|
|
>(Note: at this stage we are <I
|
|
CLASS="EMPHASIS"
|
|
>NOT</I
|
|
> trying to make a PPP connection
|
|
- just establishing that we have the right phone number and also to find
|
|
out <I
|
|
CLASS="EMPHASIS"
|
|
>exactly</I
|
|
> what the server sends to us in order to get logged in and
|
|
start PPP).</P
|
|
><P
|
|
>During this process, either capture (log to a file) the entire login
|
|
process or carefully (<I
|
|
CLASS="EMPHASIS"
|
|
>very carefully</I
|
|
>) write down <I
|
|
CLASS="EMPHASIS"
|
|
>exactly</I
|
|
> what
|
|
prompts the server gives to let you know it is time to enter your
|
|
user name and password (and any other commands needed to establish the
|
|
PPP connection).</P
|
|
><P
|
|
>If your server uses PAP, you should not see a login prompt, but should
|
|
instead see the (text representation) of the link control protocol
|
|
(which looks like garbage) starting on your screen.</P
|
|
><P
|
|
>A few words of warning:-</P
|
|
><P
|
|
> <P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>some servers are quite intelligent: you can log in
|
|
using text based user name/passwords OR using PAP. So if your ISP or
|
|
corporate site uses PAP but you do not see the garbage start up
|
|
immediately, this may not mean you have done something wrong.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>some servers require you to enter some text initially and <I
|
|
CLASS="EMPHASIS"
|
|
>then</I
|
|
>
|
|
start a standard PAP sequence.</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Some PPP servers are passive - that is they simply sit there
|
|
sending nothing until the client that is dialing in sends them a valid
|
|
lcp packet. If the ppp server you are connecting to operates in passive
|
|
mode, you will never see the garbage!</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Some servers do not start PPP until you press ENTER - so it is
|
|
worth trying this if you correctly log in and do not see the garbage!</P
|
|
></LI
|
|
></UL
|
|
> </P
|
|
><P
|
|
>It is worth dialing in at least twice - some servers change their
|
|
prompts (e.g. with the time!) every time you log in. The two critical
|
|
prompts your Linux box needs to be able to identify every time you dial
|
|
in are:-
|
|
|
|
<P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>the prompt that requests you to enter your user name;</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>the prompt that requests you to enter your password;</P
|
|
></LI
|
|
></UL
|
|
> </P
|
|
><P
|
|
>If you have to issue a command to start PPP on the server, you will also
|
|
need to find out the prompt the server gives you once you are logged in
|
|
to tell you that you can now enter the command to start ppp.</P
|
|
><P
|
|
>If your server automatically starts PPP, once you have logged in,
|
|
you will start to see garbage on your screen - this is the PPP server
|
|
sending your machine information to start up and configure the PPP
|
|
connection.</P
|
|
><P
|
|
>This should look something like this :-</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>~y}#.!}!}!} }8}!}$}%U}"}&} } } } }%}& ...}'}"}(}"} .~~y}</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> </P
|
|
><P
|
|
>(and it just keeps on coming!)</P
|
|
><P
|
|
>On some systems PPP must be explicitly started on the server. This
|
|
is usually because the server has been set up to allow PPP logins and
|
|
shell logins using the same user name/password pair. If this is the case,
|
|
issue this command once you have logged in. Again, you will see the
|
|
garbage as the server end of the PPP connection starts up.</P
|
|
><P
|
|
>If you do not see this immediately after connecting (and logging in and
|
|
starting the PPP server if required), press <I
|
|
CLASS="EMPHASIS"
|
|
>Enter</I
|
|
> to see if this
|
|
starts the PPP server.</P
|
|
><P
|
|
>At this point, you can hang up your modem (usually, type <TT
|
|
CLASS="LITERAL"
|
|
>+++</TT
|
|
>
|
|
quickly and then issue the ATHO command once your modem responds with
|
|
OK).</P
|
|
><P
|
|
>If you can't get your modem to work, read your modem manual, the man
|
|
pages for your communications software and the Serial HOWTO! Once you
|
|
have this sorted out, carry on as 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="x797.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="dns.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Note on Serial Flow Control</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="modem.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Setting up Name to Address Resolution (DNS)</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |