  Linux PPP FAQ
  Al Longyear, lloonnggyyeeaarr@@nneettccoomm..ccoomm
  v1.12, 12 January 1996

  This document contains a list the most Frequently Asked Questions
  (FAQ) about PPP for Linux (and their answers). It is really _n_o_t a
  HOWTO, but is in `classical' Question / Answer form.  We have a dif-
  ferent document which represents the PPP-HOWTO. It is written by
  Robert Hart.

  11..  PPrreeffaaccee

  Please send any corrections to lloonnggyyeeaarr@@nneettccoomm..ccoomm.

  This is but one of the Linux HOWTO/FAQ documents. You can get the
  HOWTO's from ssuunnssiittee..uunncc..eedduu:://ppuubb//LLiinnuuxx//ddooccss//HHOOWWTTOO (this is the
  `official' place) or via WWW from the Linux Documentation home page
  <hhttttpp::////ssuunnssiittee..uunncc..eedduu//mmddww//lliinnuuxx..hhmmttll>. You cannot rely on the
  HOWTO's being posted to ccoommpp..ooss..lliinnuuxx..aannsswweerrss, as some news feeds have
  complained about their size.

  Throughout this document, I have used the word `remote' to mean `the
  system at the other end of the modem link'. It is also called `peer'
  in the PPP documentation. Another name for this is called the
  `gateway' when the term is use for routing. Its IP address will show
  as the `P-t-P' address if you use iiffccoonnffiigg.

  Microsoft is a registered trademark of Microsoft Corporation. Morning
  Star is a registered trademark of Morning Star Technologies
  Incorporated. All other products mentioned are trademarks of their
  respective companies.

  22..  GGeenneerraall iinnffoorrmmaattiioonn

  22..11..  WWhhaatt iiss PPPPPP??

  PPP, or Point-to-Point Protocol, is a recognized `official' Internet
  protocol. It is a protocol used to exchange IP frames (and others)
  over a serial link. The current RFC for PPP is 1661. There are many
  related ones.

  Contrary to what some people think, it does not mean "Peer to Peer
  Processing"; although you may do peer-peer communications using TCP/IP
  over a PPP link.

  22..22..  MMyy uunniivveerrssiittyy ((ccoommppaannyy)) ddooeess nnoott ssuuppppoorrtt PPPPPP.. CCaann II uussee PPPPPP??

  In general, no. A `classical' PPP implementation requires that you
  make changes to the routes and network devices supported by the
  operating system. This may mean that you will have to rebuild the
  kernel for the remote computer.

  This is not a job for a general user. If you can convince your
  administration people that PPP is a `good thing' then you stand a
  chance of getting it implemented. If you can't, then you probably
  can't use PPP.

  However, if you are using a system which is supported by the people
  who are marketing the "TIA" (The Internet Adapter) package, then there
  is hope. I do not have much information on this package, however, from
  what I have found, they plan to support PPP in "the next version". (My
  information may be old. Contact them directly.  Information on TIA is
  available at ffttpp..mmaarrkkeettppllaaccee..ccoomm in the //ppuubb//ttiiaa directory.)

  If your system is not supported by TIA, and you choose not to use
  slirp, and you can't convince the admin group to support PPP then you
  should use the `tteerrmm' package. Some service providers will object to
  you running `tteerrmm'. They have many different reasons, however the most
  common is `security concerns'.

  There is a version of TIA for Linux.

  In addition to TIA, Danny Gasparovski wrote a program called sslliirrpp
  which will perform functions similar to TIA. The program is currently
  available with the source code from the ftp site
  bblliittzzeenn..ccaannbbeerrrraa..eedduu..aauu:://ppuubb//sslliirrpp. You should obtain the code if you
  wish additional information about this program. From the initial
  examination, it is seems to be an excellent contender to the
  commercial TIA program.

  22..33..  WWhheerree iiss PPPPPP??

  It is in two parts. The first part is in the kernel. In the kernels
  from 1.1.13, the driver is part of the network system drivers.

  The second part is the `daemon' process, ppppppdd. This is a rreeqquuiirreedd
  process. The source to it is in the file pppppp--22..22..00ee..ttaarr..ggzz located on
  ssuunnssiittee..uunncc..eedduu in the //ppuubb//LLiinnuuxx//ssyysstteemm//NNeettwwoorrkk//sseerriiaall directory.

  Version 2.2 and above are designed to be used only with the 1.2 and
  later kernels. Please don't use this version with the 1.1 series
  kernels as they are out of date for either the tty driver or the
  networking software.

  22..44..  II jjuusstt oobbttaaiinneedd PPPPPP.. WWhhaatt ddoo II ddoo wwiitthh iitt??

  RRead TThe FFine MMaterial available.

  Start by reading the RREEAADDMMEE file and then the RREEAADDMMEE..lliinnuuxx file. The
  documentation sources are listed below.

  22..55..  ((WWhheerree''ss tthhee ddooccuummeennttaattiioonn?? IIss tthheerree aa HHOOWWTTOO??,, eettcc..))  WWhheerree aarree
  aaddddiittiioonnaall ssoouurrcceess ooff iinnffoorrmmaattiioonn ffoorr PPPPPP??

  There are several sources of information for the PPP protocol as
  implemented under Linux.

  +o  The RREEAADDMMEE file in the source package.

  +o  The RREEAADDMMEE..lliinnuuxx file in the source package.

  +o  The NNeett--22--HHOOWWTTOO document.

  +o  The PPPPPP--HHOOWWTTOO document.

  +o  The Network Administration Guide.

  +o  The ppppppdd man page.

  +o  The FAQ document for the comp.protocols.ppp newsgroup.

  The HOWTO and this FAQ are stored in the usual place for the Linux
  HOWTOs. That is currently on ssuunnssiittee..uunncc..eedduu in the directory
  //ppuubb//LLiinnuuxx//ddooccss//HHOOWWTTOO.

  The Network Administration Guide is available in the
  //ppuubb//LLiinnuuxx//ddooccss//LLPPDD//nneettwwoorrkk--gguuiiddee directory on sunsite. It is also
  published by O'Riellly and Associates. So, if you want a really
  professional document, then buy a copy from your local bookstore.

  The `mmaann' pages are included in the source package. You will probably
  have to move them to the normal man directory, //uussrr//mmaann//mmaann88 before
  the mmaann command may find them.  Alternately, you may use nnrrooffff and
  mmoorree to view them directly.

  The FAQ for comp.protocols.ppp describes the PPP protocol itself and
  the various implementations. You will find the FAQ for the usenet news
  group, ccoommpp..pprroottooccoollss..PPPPPP, archived on rrttffmm..mmiitt..eedduu in the //uusseenneett
  directory. It is in eight parts at the present time.

  22..66..  WWoouulldd ssoommeeoonnee pplleeaassee sseenndd mmee ssccrriippttss ffoorr PPPPPP ssoo tthhaatt II mmaayy sseeee
  hhooww tthheeyy aarree wwrriitttteenn??

  There are a few scripts which are included with the source package for
  pppd. It will cover the normal types of access where you are requested
  to enter a UNIX login and password.

  Specific `scripts' for specific systems are not included. If you have
  problems with a specific connection then you should contact the help
  desk for your site, the local news group at the site, or the general
  usenet groups for Linux. Unfortunately, time does not permit me to
  answer questions for help on supplying a script for your specific
  system.

  22..77..  WWhheerree sshhoouulldd II ppoosstt qquueessttiioonnss aabboouutt PPPPPP??

  The primary usenet group for the PPP implementations is
  ccoommpp..pprroottooccoollss..PPPPPP or ccoommpp..ooss..lliinnuuxx..sseettuupp. Use this group for general
  questions such as "How do I use pppd?" or "Why doesn't this work?".

  Questions such as "Why wont pppd compile?" are generally linux related
  and belong on the comp.os.linux.networking group.

  Please don't use comp.os.linux.help; even if your site should still
  carry this obsolete news group.

  22..88..  TThhee PPPPPP ssooffttwwaarree ddooeessnn''tt wwoorrkk.. HHEELLPP!!!!!!

  This is one of the most sickening questions. I realize that this is a
  plea for help. However, it is practically useless to post this message
  wwiitthh nnoo ootthheerr iinnffoorrmmaattiioonn. I, and most others, will only ignore it.

  Please see the question regarding errors which normally occur at the
  modem's disconnection. They are not the cause of a problem, only a
  symptom. Posting a message with only those errors is also meaningless.

  What is needed is the output of the system log (syslog) when you run
  the ppppppdd program with the option `ddeebbuugg'. In addition, if you are
  using chat then please use the `--vv' option to run the sequence with
  verbose output.

  Please include the output from the kernel's startup. This shows the
  various kernel hardware information such as your UART type, PPP
  version, etc.

  Please include all information that you can relating to the problem.
  However your system configuration, disk drive configuration, terminal
  type, mouse location and button status, etc. are irrelevant. What is
  important is the system to which your are trying to contact, the PPP
  (or terminal server) that they are using, the modem types and speed
  that you are using, etc.

  Take care and go through the output. Remove the references to the
  telephone number, your account name, and the password. They are not
  important to analyzing the problem and would pose a security risk to
  you if you published them to usenet. Also discard the lines which
  neither come from the kernel nor pppd.

  Do NNOOTT run the pppd program with the option `kkddeebbuugg 3311' and post that!

  If the problem warrants examining the data stream, then you will be
  contacted by email and asked to mail the trace. Usenet already costs
  too much for too many people.

  Information is written to various levels. The debug information is
  written to the debug level. The informational messages are written to
  the info level. The errors are written to the error level. Please
  include all levels the the `llooccaall22' group which come from the ppppppdd
  process.

  In addition, please do not delete the time stamp information. It is
  important.

  22..99..  HHooww ddoo II uussee PPPPPP wwiitthh aa ssyysstteemm wwhhiicchh uusseess ddyynnaammiicc IIPP aassssiiggnn--
  mmeennttss?? IItt aassssiiggnnss aa ddiiffffeerreenntt IIPP aaddddrreessss ttoo mmee wwiitthh eeaacchh ccaallll..

  The assignment of the local IP address is a function of the options
  given to pppd and the IPCP protocol. You should use the `magic' IP
  address of 0.0.0.0 if you must specify the local IP address. Most
  people simply leave the local IP address out of the option list.

  The other option which is closely tied to this is called
  `noipdefault'. The noipdefault option instructs the pppd process to
  not attempt to guess the local IP address from your hostname and the
  IP addresses in the /etc/hosts file. Most people use this option when
  the IP address is dynamically assigned. However, this option does not
  mean `use dynamic IP addresses'. The use of dynamic IP addresses is
  automatic when the local IP address is not given.

  22..1100..  HHooww ddoo II kknnooww wwhhaatt IIPP aaddddrreessss wwaass ggiivveenn ttoo mmee wwhheenn iitt iiss ddyynnaamm--
  iiccaallllyy aassssiiggnneedd??

  Use the /etc/ppp/ip-up hook. The local IP address is the fourth
  parameter. This will be executed when pppd knows the IP address for
  the local system. The fifth parameter is the remote IP address if you
  should wish to know this value as well.

  If you are curious about the value assigned then you may use the
  iiffccoonnffiigg program to display the current settings. It will show you the
  current values for both the local IP address and the IP address
  assigned to the remote under the P-t-P heading.
  22..1111..  CCaann II uussee tthhee ssaammee llooccaall IIPP aaddddrreessss ffoorr eeaacchh lliinnee ooff aa PPPPPP
  sseerrvveerr??

  Yes. The local address is not significant to the local system. You
  must have a unique rreemmoottee IP address. The routing is performed based
  upon the remote IP address and not the local IP address.

  33..  OOtthheerr iimmpplleemmeennttaattiioonnss

  33..11..  DDoo yyoouu kknnooww ooff aa iimmpplleemmeennttaattiioonn ffoorr PPPPPP ootthheerr tthhaann LLiinnuuxx?? II
  wwoouulldd lliikkee oonnee ffoorr HHPP--UUXX,, oorr AAIIXX,, oorr ...... ((yyoouu ffiillll iinn tthhee bbllaannkk)) ??

  Check the PPP FAQ document mentioned above.

  HP-UX is supported by the commercial Morningstar package. AIX is in
  the current 2.2 pppd package.

  If you don't find one listed then post to the ccoommpp..pprroottooccoollss..PPPPPP group
  and not the Linux group.

  (Please don't mail me asking for "Do you know of a PPP package for
  ..."?  These requests will now be `appropriately' filed. ;;--)))

  The pppd package placed on sunsite does not contain the code which
  would use the some of the ports which use the streams interface. This
  is due to the reason that the streams interface contains a restrictive
  copyright which prevents the commercial packaging of the source which
  contains the module. We, the people who have been working on the pppd
  package, have tried to contact the author of the original module for
  streams in an attempt to have the copyright changed. He was un-
  responsive at first. Now he can not be located.

  For this reason, and due to the fact that the sunsite site is for
  Linux, I decided to remove the AIX, Next, and any other port of pppd
  which involved the original streams code. The SunOS and Solaris ports
  aarree included since their streams implementation has been rewritten.
  You should continue to find the BSD variation as well as the Linux
  form in the package. If you wish the pppd code for a system which uses
  streams then you will have to consult the PPP-FAQ for the location of
  the pppd archive site near you. Alternately, you can use archie. Just
  don't use the mirrors for sunsite as they will not have the code.

  33..22..  DDiidd yyoouu kknnooww tthhaatt tthheerree iiss aa pprrooggrraamm ccaalllleedd ``ddpp'?

  Yes, we know. The ddpp package was considered very early in the
  development stage quite a few months back. It is nice.  It supports
  'demand dial'. It also only works with systems which support streams.
  This is primarily the SunOS (Solaris) operating systems.

  The question of demand dial is covered later in this document.

  Linux, at the present time, does not supports streams.

  There are several other packages for PPP available on the `net'. The
  `portable PPP' package is very much like the TIA code. There is
  another package called simply `PPP'. There is code for PPP in the KA9Q
  package.

  The sslliirrpp and TTIIAA code will do PPP as well.

  Of all of the packages available, the pppd package was the closest to
  the requirements and functions of Linux to warrant the port.

  (If you want more information about these other packages, ask in the
  ccoommpp..pprroottooccoollss..PPPPPP group!)

  33..33..  WWhhaatt RRFFCCss ddeessccrriibbee tthhee PPPPPP pprroottooccooll??

  The current implementation of PPP is a mixture of several.  The major
  portion of the PPP code is written against the RFCs 1331 and 1332.
  These RFCs were later obsoleted. 1331 was replaced by 1548 and that,
  in turn, was obsoleted by 1661 six months later.

  Most implementations of PPP will be happy to talk to the Linux PPP
  code.

  A complete list is in the PPP faq.

  [to quote the FAQ document]:

       All of 1134, 1171, and 1172 (and 1055, for that matter ::--))
       have been obsoleted. They're interesting only if you want to
       debug a connection with an ancient PPP implementation, and
       you're wondering why (e.g.)  it asked you for IIPPCCPP option 2
       with a length of only 4, and Compression-Type 00xx00003377.

       (There's a lot of that still running around - be careful out
       there.)

  Linux PPP will automatically detect this condition and compensate for
  it.

  44..  CCoommppaattiibbiilliittyy

  44..11..  CCaann PPPPPP ttaallkk ttoo aa SSLLIIPP iinntteerrffaaccee??

  No. SLIP works with SLIP. PPP works with PPP.

  Some vendors may offer products which work both as SLIP and PPP.
  However, they must be configured to run in one mode or the other.
  There is no present method to determine, based upon the protocol
  passed at the time of a connection, which combination of SLIP
  protocols or PPP is being requested.

  44..22..  WWhhiicchh iiss bbeetttteerr?? PPPPPP oorr SSLLIIPP??

  IITT DDEEPPEENNDDSS UUPPOONN MMAANNYY FFAACCTTOORRSS. The people who post this type of
  question have usually not read the NNeett--22--HHOOWWTTOO document.

  A good technical discussion is available at Morning Star's www server,
  wwwwww..mmoorrnniinnggssttaarr..ccoomm.

  44..33..  IIss CCHHAAPP oorr PPAAPP bbeetttteerr ffoorr aauutthheennttiiccaattiioonn??

  If you have the choice, use CHAP. Failing that, PAP is better than
  nothing.

  44..44..  WWhhaatt aabboouutt CCHHAAPP wwhhiicchh MMiiccrroossoofftt uusseess wwiitthh WWiinnddoowwss NNTT??

  CHAP is a cryptographic authentication protocol. It means that it
  takes some form of a key and will encrypt the response using a one-way
  encryption algorithm. The algorithm is negotiated at the time that the
  CHAP protocol is requested. The most common is called MD5. It has an
  encryption code of 05 in the CHAP request.

  Microsoft uses a DES algorithm which, until recently, was incompatible
  with the pppd process. If you wish to connect to a Windows NT server,
  there are a set of patches which are included with the pppd source
  code to support the DES style used by Microsoft.

  CCoonnttrraarryy ttoo wwhhaatt ssoommee uunn--iinnffoorrmmeedd ppeeooppllee bbeelliieevvee aatt SSttaannffoorrdd
  UUnniivveerrssiittyy bbeelliieevvee,, MMiiccrroossoofftt ddiidd nnoott jjuusstt ggoo aaggaaiinnsstt tthhee
  rreeccoommmmeennddaattiioonnss ooff tthhee IIEETTFF wwoorrkkiinngg ggrroouupp.. TThhee ccooddee vvaalluueess wweerree
  pprrooppeerrllyy rreeqquueesstteedd aanndd tthhee iimmpplleemmeennttaattiioonn hhaass bbeeeenn ffuullllyy ddooccuummeenntteedd..

  55..  AAuutthheennttiiccaattiioonn ffiilleess

  55..11..  WWhhaatt ggooeess iinnttoo tthhee //eettcc//pppppp//ppaapp--sseeccrreettss file? Do you have a sam-
  ple?

  The PAP protocol is most often implemented as your user name and
  password. You need to include the name of the remote system, your
  account name, and the password. If the user on abbot wishes to call
  costello, the entry would be similar to the following.

          #account   remote     password     IP address list
          abbott     *          firstbase

  To use PAP authentication with the simplest case, you should also
  include the 'user' option to specify which of the pap-secrets file
  entries is to be used. The option is explained in the pppd man page.
  However, the simplest for this example is:

  user abbott

  55..22..  WWhhaatt ggooeess iinnttoo tthhee //eettcc//pppppp//cchhaapp--sseeccrreettss file? Do you have a
  sample?

  The most common problem is that people don't recognize that CHAP deals
  with a pair of secrets. Both computers involved in the link must have
  both secrets to work.

  For example, if aabbbboott wants to talk to ccoosstteelllloo, then aabbbboott's file
  would have:

          #remote    local      secret       IP address list
          abbott     costello   firstbase    10.10.10.2
          costello   abbott     who          10.10.10.1

  And costello's file would have:

          #remote    local      secret       IP address list
          abbott     costello   firstbase    10.10.10.2
          costello   abbott     who          10.10.10.1

  66..  CCoonnssttrruuccttiioonn pprroobblleemmss

  66..11..  II ggeett ccoommppiillee eerrrroorrss wwhheenn II ttrryy ttoo ccoommppiillee tthhee kkeerrnneell

  The 2.2 package contains instructions which describe the steps needed
  to install the package. Briefly, you need to run the configure
  command. It will generate the links to the Makefile. Next, you need to
  run 'make kernel'. This will install the needed pieces should the need
  to be updated.

  Once the pieces have been installed, please rebuild the kernel at this
  time. Do this even if you have previously constructed the kernel to
  support PPP. The driver shipped with the 1.2 and early 1.3 kernels is
  not compatible with the 2.2 version of pppd.

  Once you have rebuilt the kernel then you may resume to build the pppd
  process, chat, and pppstats.

  There are problems with practically every version of the kernel and
  the pppd package. In the linux/Other.Patches directory of the source
  archive you will find a series of patches. Two of them need to be
  applied to the 1.2.13 kernel. The only one which you do not apply to
  the 1.2.13 kernel is the patch labeled "1.3".

  If you have an early version of the 1.3 kernel then you need to apply
  the two patches for the 1.3 kernel and the slhc files.

  After you have applied the patch, if you are using an old version of
  the include files, then you will have problems with the compilation of
  the structures in the ppp_defs.h header file. Edit this file and
  change the ""##iiff 00"" to be ""##iiff 11"". This is due to the definition of the
  u_int32_t typedef.

  The package will build with the 1.3.58 kernel and the 5.2.18 version
  of the libc and include files without the need for any patches.

  77..  PPrroobblleemmss rruunnnniinngg ppppppdd

  77..11..  ppppppdd says that version 0.0.0 is out of date

  You are attempting to run the 2.2 pppd process and you haven't rebuilt
  the drivers in the kernel.

  77..22..  ppppppdd says that that the kernel is not configured for PPP. I know
  that I enabled the option and built the kernel.

  Make sure that you did rebuild the kernel and that you are running it.

  Make sure that you don't have an old copy of pppd on your disk and you
  are running that version. The previous version of pppd was stored on
  /usr/lib/ppp. Many people objected to this location. The 2.2 code has
  moved the ppppppdd, cchhaatt, and ppppppssttaattss to the /usr/sbin directory. If your
  scripts still reference //uussrr//lliibb//pppppp then you will probably run the
  old code.

  77..33..  ppppppdd wont run unless you are root

  The pppd process needs to make changes to the networking system and
  this can only be done if you are the root user. If you wish to run
  ppppppdd from other than the root user then the pppd program needs to be
  secured 'suid to root'.

          chown root pppd
          chmod 4755 pppd

  If you wish to control the pppd access to a select group of people,
  then make the ppppppdd process owned by the group and do not permit all
  others to run the program.

  77..44..  uunnaabbllee ttoo ccrreeaattee ppiidd ffiillee:: nnoo ssuucchh ffiillee oorr ddiirreeccttoorryy

  You need to create the directory //vvaarr//rruunn. On earlier Slackware
  distributions, this was a symbolic link to the //eettcc directory.

  This is a warning. The PPP software will work normally in spite of
  this message. However, the pppppp--ooffff script depends upon this file. It
  is a good idea to create the directory or make the link to the
  appropriate location.

  The posix header, ppaatthhss..hh, defines the location for the pid file under
  the name "__VVAARR__RRUUNN". If you wish to use a different directory for PPP
  and others, change the value for this define and rebuild the software.

  77..55..  //eettcc//pppppp//ooppttiioonnss:: nnoo ssuucchh ffiillee oorr ddiirreeccttoorryy

  You need to create the directory //eettcc//pppppp and have a file called
  'ooppttiioonnss' in that directory. It needs to be readable by the ppppppdd
  process (root).

  The file may be empty. To make an empty file use the `ttoouucchh' command.

  See the ppppppdd man page, ppppppdd..88, for a description of this file.

  77..66..  CCoouulldd nnoott ddeetteerrmmiinnee llooccaall IIPP aaddddrreessss

  This happens with many configurations of the Telebit Netblazer. The
  problem is not the terminal server, but the site which has not
  configured the terminal server with a set of IP addresses.

  The Netblazer does not have your IP address. You do not have your IP
  address. The link will not work unless both IP addresses are known.

  +o  The Netblazer does not have your IP address and you do not have
     your IP address.

  +o  The Netblazer does know its IP address and you do not have its IP
     address.

  The link will not work unless both IP addresses are known.

  You must tell the Netblazer the IP addresses to be used. Use the local
  IP address and the remote IP address as a parameter to the pppd
  process.

  Use the pppd option format of:

  local_ip:remote_ip

  (That is the local IP address, a colon, and the remote IP address.)

  77..77..  CCoouulldd nnoott ddeetteerrmmiinnee rreemmoottee IIPP aaddddrreessss

  See the previous answer.

  77..88..  II kkeeeepp ggeettttiinngg tthhee mmeessssaaggee ttoo tthhee eeffffeecctt tthhaatt tthhee mmaaggiicc nnuummbbeerr
  iiss aallwwaayyss NNAAKKeedd.. TThhee ssyysstteemm wwiillll nnoott ccoonnnneecctt..

  There is a one in over four billion chance that the two systems have
  chosen the same magic number. If you get a continual failure about the
  magic number, the chances that this is a fluke will geometrically
  reduce.

  The two most common reasons for this failure are:

  +o  The remote PPP software is not running when you think it is.  Is
     the remote system configured to run PPP? Is the PPP process in the
     expected location?  Is the privileges suitable so that you may run
     it?

     This would indicate that the shell is doing the local echo of the
     data. This is the more common reason.

  +o  The modem has disconnected immediately upon making the connection
     and logging you on to the remote. Most modems are configured to
     echo the data sent to them and you are seeing the local echo from
     the modem.

  In either case, the Linux system is sending data to the remote which
  is being fed immediately back into the serial receiver. This is not an
  acceptable condition. You have what is called a "lloooopp".

  77..99..  pprroottooccooll rreejjeecctt ffoorr pprroottooccooll ffffffbb

  This usually occurs when you are trying to connect to a Xyplex
  terminal server. Version 5.1 of the Xyplex terminal server software,
  according to Xyplex, has numerous problems with PPP. It is strongly
  recommended that you update the Xyplex software to at least version
  5.3.

  If you must use Xyplex version 5.1, then use the pppd option "vvjj--mmaaxx--
  sslloottss 33" to limit the number of slots to three. The problem on the
  Xyplex server is that it will accept the request for the default 16
  slots, but fail to operate beyond the third slot. It should have
  return a NAK frame with the limit, but it does not.

  Alternately, you can disable the Van Jacobson header compression with
  the option "--vvjj".

  77..1100..  TThhee PPPPPP ssooffttwwaarree ccoonnnneeccttss,, sseennddss qquuiittee aa ffeeww ffrraammeess,, bbuutt ssttiillll
  ddooeess nnoott sseeeemm ttoo ccoonnnneecctt.. WWhhyy iiss tthhaatt??

  Linux does not support RPI modems. If your modem is RPI then you will
  have to find a different modem. This is not likely to change in the
  future given the statements made by Rockwell's management.

  Examine the system log when you use the "ddeebbuugg" option. (You will need
  the system log data anyway if you are going to ask for help.)  If the
  trace shows that it is sending the LLCCPP-request frame over and over
  again and the id number is not incrementing then you are not
  exchanging frames with the remote PPP software.

  Three common reasons for this are:

  +o  You don't have the PPP software running on the other end. You are
     sending the PPP frames to some other program which is probably
     saying "What is this #$%^ ?"

     Please make sure that you have the PPP software started on the
     other end before you enter the PPP protocol sequence. Try to use a
     normal modem program and go through the logon sequence that you
     would normally do. Do you see the PPP frames being sent to you?

     The PPP frames are fairly distinctive. They will be about 40
     characters in length and contain several {{ characters. They should
     not have a carriage return character after them and are sent out in
     a burst with a pause between the bursts.

  +o  The line is not "eight bit clean". This means that you need to have
     eight data bits, no parity, and one stop bit. The PPP link
     absolutely requires eight data bits.

     The pppd software will automatically put the line into eight data
     bits, no parity, and one stop bit. The remote must match this
     configuration or framing and parity errors may occur.

     PPP will escape characters. It is not possible for it to escape
     bits as kermit does. PPP will _n_o_t work with a seven bit
     communications link.

  +o  The remote is configured to require authentication such as PPAAPP or
     CCHHAAPP. You have not configured the local system to use this feature.
     Therefore, the remote is discarding all of your frames until it
     sees a valid authentication frame from you.  Since you are not
     configured to generate the frames, the IIPPCCPP frames which you send
     are being ignored.

     In this case, either configure the remote to not expect
     authentication or configure the local system to do authentication
     and supply the proper secrets.

     Examine the receipt of the LCP configure frame. If it shows an
     'auth' type, then the remote is configured for authentication.

  77..1111..  TThhee //eettcc//pppppp//iipp--uupp ssccrriippttss wwoonntt wwoorrkk..

  The pppd process launches the program at the location /etc/ppp/ip-up
  when the IP layer goes up. It gives it parameters which define the
  line status. Such things include the device name, communications
  speed, and IP addresses.

  However, what may not be clear is that it treats this file as a
  pprrooggrraamm. It is not a script. The program is started by using the
  exec() function of Linux.

  What this means is that if you wish to use a script for these
  programs, then you must do two things.

  +o  You need to have the file marked as executable with chmod. The
     proper mode for the file should be mode 100. Mode 500 is acceptable
     if you wish to read the file and mode 700 is acceptable if you wish
     to write to the file. The file should be owned by the root user.

  +o  The file must have as the first line the sequence:

       #!/bin/sh

  The # character must be in the first character position of the very
  first line of the file. The interpreter program, /bin/sh in this case,
  may be any program which is expected to run the script. Most people
  will use the Bourne shell for this purpose. It is commonly stored in
  the location /bin/sh. Other commonly used interpreters are perl and
  csh. What is important is that the first two characters of the file be
  the # and ! characters respectively.

  77..1122..  II ccaann''tt ccoonnnneecctt ttoo tthhee mmeerriitt nneettwwoorrkk..

  Some users of the merit network have indicated that it needs PAP. Did
  you try PAP authentication?

  88..  DDIIPP

  88..11..  DDIIPP ddooeess nnoott hhaavvee ssuuppppoorrtt ffoorr PPPPPP''ss mmooddee

  The current version of dip-uri supports PPP in that it will execute
  the pppd process when you execute `mode PPP'. However, there are many
  options which are needed for the proper operation of pppd. Since dip
  does not pass these to the program, they must be stored in the
  /etc/ppp/options file.

  The dip program controls the establishment of the SLIP link. It
  controls the SLIP link with the aid of slattach, ifconfig, and route.
  These programs may be used to establish a SLIP link. They are not
  useful for the establishment of a PPP link.

  The dip program may be used to dial the telephone and start the PPPPPP
  software on the remote system. It is best used in this mode as the
  parameter to the `ccoonnnneecctt' option. However, you have the option to use
  dip to control the link. It is not important how pppd be executed to
  run the PPP link. It is only important that it be executed as it is a
  mandatory program for the PPP protocol.

  While this is not a FAQ for dip, there is a common problem with dip
  and pppd. The dip process has the absolute pathname to the pppd
  process embedded within it. Until recently, the location for pppd was
  /usr/lib/ppp/pppd. It has moved to the /usr/sbin/pppd location. So, if
  you are unable to get dip to start pppd then check the pathnames in
  dip.

  Additional information about the dip process is in the Net-2-HOWTO
  document.

  99..  PPrroocceessss tteerrmmiinnaattiioonn

  99..11..  IIss tthheerree aa ``ddiipp --kk' for PPP?

  No. There is no `ddiipp --kk'.

  In the chat directory, there is a `PPPPPP--ooffff' script. This will stop the
  PPP link in the same manner as the 'ddiipp --kk'.

  I have included it below. (Cut it out. Store it in its own file.  Make
  the file executable with chmod.)

  ______________________________________________________________________
  #!bin/sh
  DEVICE=ppp0
  #
  # If the ppp0 pid file is present then the program is running. Stop it.
  if [ -r /var/run/$DEVICE.pid ]; then
          kill -INT `cat /var/run/$DEVICE.pid`
  #
  # If the kill did not work then there is no process running for this
  # pid. It may also mean that the lock file will be left. You may wish
  # to delete the lock file at the same time.
          if [ ! "$?" = "0" ]; then
                  rm -f /var/run/$DEVICE.pid
                  echo "ERROR: Removed stale pid file"
                  exit 1
          fi
  #
  # Success. Let pppd clean up its own junk.
          echo "PPP link to $DEVICE terminated."
          exit 0
  fi
  #
  # The PPP process is not running for ppp0
  echo "ERROR: PPP link is not active on $DEVICE"
  exit 1
  ______________________________________________________________________

  99..22..  PPPPPP ddooeess nnoott hhaanngguupp tthhee mmooddeemm wwhheenn iitt tteerrmmiinnaatteess

  There are several reasons for this.

  +o  Did you use the pppd `mmooddeemm' parameter?  This parameter controls
     whether or not the ppppppdd process is to control and honor the signals
     reflecting the modem status. This parameter is explained in the man
     page for ppppppdd.

  +o  Do you have the modem presenting the DCD signal and honoring DTR?
     The Hayes sequence for this is usually "&C1". If you reset the
     modem during the connection sequence with "ATZ" then ensure that
     your modem is configured correctly.

     The DTR signal is generated by the computer and instructs the modem
     to disconnect. Hayes sequence for this is usually "&D1" or "&D2"
     with "&D2" being the preferred setting for PPP. Many manufacturers
     will ignore the DTR condition in their `factory defaults' setting.

  +o  Did you use a cheap cable which does not pass the DCD signal?
     Macintosh `Classic' cables are notorious for this problem. The
     Macintosh Classic does not use this signal.

  +o  For dial-in connections, did you exec the pppd process properly?

     The pppd process should be `exec'ed from the script rather than
     simply executed. If you attempt to simply run the pppd process then
     it will be the shell which will receive the SIGHUP hangup signal
     and not the pppd process.

     The `shell' script should have a format similar to the following:

     ___________________________________________________________________
     #!/bin/sh
     exec pppd -detach modem ...
     ___________________________________________________________________

  +o  The use of ddiipp and ddiiaalldd has, on occasion, interfered with the
     ability of pppd to sense the loss of the carrier. In this case, you
     should use the lcp-echo-request and lcp-echo-failure options to
     detect the loss of the connection in-band.

  1100..  DDaattaa TTrraannssffeerr rreellaatteedd iissssuueess

  1100..11..  TThhee ffttpp transfers seems to die when I do a `put' operation.
  They will work correctly if I `get' a file. Why?

  Do you have the flow control enabled? Flow control is set by the pppd
  option ccrrttssccttss for RTS/CTS and xxoonnxxooffff for XON/XOFF. If you don't
  enable the flow control then you will probably overrun the modem's
  buffers and this will prove to be disastrous with vj header
  compression.

  1100..22..  HHooww ddoo II uussee XXOONN//XXOOFFFF ffoorr ffllooww ccoonnttrrooll??

  The better flow control is CTS/RTS. However, if you can not do the
  hardware flow control with the signals CTS and RTS, then use XON/XOFF.
  The following three steps need to be performed.

  +o  You need to specify the pppd option xxoonnxxooffff. This tells the pppd
     process to configure the serial device for XON/XOFF flow control
     and to load the two characters into the tty driver.

  +o  You need to specify the XON and XOFF characters in the pppd
     parameter aassyynnccmmaapp. This tells the remote system that is should
     quote the XON and XOFF characters when it wishes to send them to
     you. It is normally specified as the pppd parameter `aassyynnccmmaapp
     aa00000000'.

  +o  Of course, don't forget to tell the modem to use XON/XOFF flow
     control. My ZZyyXXEELL modem uses a sequence `&R1&H4' to do this.

  1100..33..  TThhee mmooddeemm sseeeemmss ttoo aallwwaayyss ccoonnnneecctt aatt aa ssttrraannggee rraattee.. WWhheenn II uussee
  mmiinniiccoomm,, tthhee mmooddeemm wwiillll aallwwaayyss uussee 1144440000.. HHoowweevveerr,, PPPPPP iiss uussiinngg 99660000
  oorr 77220000 oorr eevveenn 22440000.. HHooww ddoo II ffiixx tthhiiss??

  Put the desired rate as an option to the pppd process. If you don't
  put the rate, then pppd process will use whatever rate is set
  currently at the time. Not all programs will restore all of the
  parameters to the previous settings properly upon exit. This may lead
  to strange rates configured for the serial device.

  Linux does not support modems which use the RPI (RRockwell PProtocol
  IInterface) proprietary specification. Given the proprietary nature of
  the specification (even if you signed a NDA Rockwell will not release
  the code needed to interface to the modem) it is eexxttrreemmeellyy unlikely
  that Linux will eevveerr support this modem. The only solution, should you
  have a RPI modem, is to take it back to the dealer and get one which
  does not use RPI.

  Some of the catch phrases to avoid are modems which are marked as
  having error correction in software, "windows" compatible, or
  "requiring a special driver" for full operation. These usually
  indicate that the modem uses RPI.

  1100..44..  TThhee ffttpp transfers seems to be very slow when I do a `get' oper-
  ation. The `put' operation is much faster. Why?

  Did you specify the option:

  aassyynnccmmaapp 00

  when you ran pppd? If you forgot the option, the peer must quote
  (double) all of the control characters in the range from 00 to 1F
  (hex). This will result in a statistical loss of about 12.5% in speed
  for all of the data which you receive.

  Did you configure the remote system? If so, did you forget flow
  control on its modem?

  1100..55..  TThhee pprrooxxyyaarrpp ffuunnccttiioonn ffaaiillss ttoo ffiinndd tthhee hhaarrddwwaarree aaddddrreessss..

  Use the pppppp--22..11..22dd..ttaarr..ggzz package. The ppppppdd process was erroneously
  compiled with the 1.1.8 kernel and it used NNeett--33 rather than NNeett--22
  definitions.

  Additionally, you should refer to the proxy-ARP mini-HOWTO about the
  requirements for using proxy-ARP.

  The 2.1 package had a limit of 64 network devices. At the the that the
  proxyarp function was written, 64 seemed to be a very likely limit as
  most people had one or two ethernet controllers. This is no longer the
  case when we consider that some systems routinely have 128 network
  devices.

  The 2.2 package has raised the limit to 256 network devices. It is a
  compile-time define in the sys-linux.c module.

  1111..  RRoouuttiinngg aanndd ootthheerr pprroobblleemmss

  1111..11..  MMyy rroouuttee ttoo tthhee rreemmoottee kkeeeeppss ddiissaappppeeaarriinngg!! IItt llaasstt ffoorr aabboouutt 33
  mmiinnuutteess aanndd tthheenn tthhee rroouuttee jjuusstt ggooeess aawwaayy.. HHeellpp!!

  This is not a question for PPP.

  Hint: DDOONN''TT RRUUNN rroouutteedd!

  1111..22..  II wwoouulldd lliikkee ttoo aattttaacchh mmyy ootthheerr ccoommppuutteerrss oonn mmyy nneettwwoorrkk ttoo tthhee
  IInntteerrnneett tthhrroouugghh mmyy PPPPPP ccoonnnneeccttiioonn.. II hhaavvee oonnllyy tthhee oonnee IIPP aaddddrreessss
  wwhhiicchh iiss aassssiiggnneedd ttoo mmee ffrroomm mmyy sseerrvviiccee pprroovviiddeerr.. ((IItt mmaayy eevveenn hhaavvee
  bbeeeenn ddyynnaammiiccaallllyy aassssiiggnneedd..)) HHooww mmaayy II ddoo tthhiiss??

  You may not. At least, you can't do it in the manner that you would
  normally want to do it. The problem is that your provider would not
  know about the IP addresses of your local network and therefore wont
  route the frames to your local system.

  There are other solutions, however.

  +o  You may telnet to your one computer running pppd and then use
     telnet or ftp to reach out to the rest of the Internet. This is not
     really much better then just using the computer directly, but it
     does work for simple things.

  +o  You may run a recent 1.3 kernel and use the "IP Masquerade" option.
     For instructions on how to use this facility you should join the
     linux-net developer list or refer to the Net-2-HOWTO document.

  +o  You may run the ssoocckkss program on your PPP system. This will perform
     the same facility as the IP Masquerade but it will take modified
     clients. The advantage is that the socks program has been around
     for some years and many clients will understand the concept of a
     'proxy' server which is needed to work with socks.

  1111..33..  II ccaann rreeaacchh tthhee rreemmoottee sseerrvveerr,, bbuutt II ccaann nnoott ggeett aannyywwhheerree eellssee..

  Did you forget the `ddeeffaauullttrroouuttee' parameter to pppd? This parameter
  adds a default route into your routing system so that frames to all
  other IP addresses will be sent to the PPP device.

  The PPP software will not replace the default route if you have one
  already set when you run pppd. This is done to prevent people from
  destroying their default route to the ethernet routers by accident. A
  warning message is written to the system log if the defaultroute
  parameter is not performed for this reason.

  1111..44..  II hhaavvee aa ddeeffaauulltt rroouuttee aanndd II ssttiillll ccaann''tt ggeett aannyywwhheerree eellssee!! NNooww
  wwhhaatt??

  The problem then is not with the local Linux system. It most likely is
  routing problem on the remote end.

  The remote system is not configured for `IIPP ffoorrwwaarrddiinngg'. It is an RFC
  requirement that this option NNOOTT be enabled by default. You must
  enable the option. For Linux systems, you will need to build the
  kernel and specify that you want IP forwarding/gatewaying.

  The remote computers need a route back to you just as you need a route
  to them. This may be accomplished by one of four methods. Each has
  advantages and limitations. You need to do one and only one of these.

  +o  Use a host route. At each host on the remote system, add a host
     route to your Linux IP address with the gateway being the terminal
     server that you use for your local access. This will work if you
     have a small number of host systems and a simple network without
     bridges, routers, gateways, etc.

  +o  Use a network route. Subdivide the remote IP addresses so that your
     local Linux IP address and the remote terminal server address and
     the remote terminal server's ethernet address is on the same IP
     network. This will work if you have the IP addresses to spare. It
     will work very well if you have a Class-B IP network and can afford
     to put the all of the remote addresses on the same IP network. Then
     add a network route on each of the gateways and routers so that any
     address of the remote network is sent to the terminal server. Most
     configurations have many hosts but few routers. (At ssiiii..ccoomm, we
     have over 300 active host systems with only 3 routers.)

  +o  Use ggaatteedd on all of the gateways and on the terminal server. This
     will cause the terminal server to broadcast to the gateways that it
     can accept the frames for your IP address. Since the hosts will
     have a default route to one of the gateways, the gateways will
     generate the ICMP re-direct frame and the specific host will
     automatically add its host route.

  +o  Use proxy ARP on the terminal server. This will only work if your
     remote IP address is in the same IP domain as one of the domains
     for the network cards.

  There is no clear solution. You must choose one of these.

  If your remote router requires to receive RIP frames in order to
  update the route to your system then you should use the bbccaassttdd program
  on sunsite.unc.edu. This will generate the RIP frames without actually
  running gated.

  1111..55..  II ccaann nnoott ppiinngg mmyy llooccaall IIPP aaddddrreessss

  You are not able to do this because you wont normally have a route to
  the address. This is the normal operating environment.

  If you wish to ping your own system then use the loopback address of
  127.0.0.1.

  You may be able to ping the remote address. However, some terminal
  servers may not allow this as the address may be 'phony' to them. It
  depends upon their environment.

  In general, don't try to ping either address. Choose a third address
  which is well known to be available on the remote network such as one
  of your name server IP address.

  While the PPP software will not perform this task, you may add the
  route table entry yourself once the link has been established. The
  syntax for the route statement is:

       route add -host 192.187.163.32 lo

  where the local IP address is represented as 192.187.163.32 in this
  example. This will tell the network software to route all frames
  destined to your local IP address to the loopback adapter. Once you
  add the appropriate route to the local IP address then you may use
  this address as the target to IP frames.

  You will be responsible for deleting the route when the link goes
  down.

  1122..  IInntteerraaccttiioonnss wwiitthh ootthheerr PPPPPP iimmpplleemmeennttaattiioonnss

  1122..11..  II aamm uussiinngg aa TTrruummppeett (for MMSSDDOOSS) and the connection simply ter-
  minates. Why is this happening?

  TTrruummppeett does not like any VJ header compression. Use the pppd option
  "--vvjj" to turn it off.

  1122..22..  II aamm uussiinngg ddpp--33..11..22 (with SSuunnOOSS) and the system will not allow
  me to use anything but ppiinngg, or nnssllooookkuupp. Why is this happening?

  There is a bug in the 33..11..22 version of dp. Please get the 33..11..22aa or
  later file from the dp ftp home site hhaarrbboorr..eeccnn..ppuurrdduuee..eeccuu. Until you
  can put the patch into dp, disable the vj header compression.

  1122..33..  II ccaann nnoott ccoonnnneecctt ttoo//wwiitthh mmyy WWiinnddoowwss NNTT ccooddee

  Microsoft has chosen to support a non-standard authentication protocol
  with Windows NT. That is their right to do so provided that they have
  registered the protocol number with the IIAANNAA. (They have.)  If the
  `accept only Microsoft encrypted authentication' check box is set in
  the phone book entry, the connection will not complete. This setting
  mandates that the Windows NT system only exchange PPP authentication
  with another Microsoft PPP implementation.

  The current pppd 2.2.0e code has patches to support this
  authentication protocol. However, the support is available in one
  direction only. It will connect to a Windows NT server. It will not
  permit a Windows NT server to dial-up the Linux system and connect
  with this protocol.

  However, these patches for the Microsoft authentication require the
  use of a DES library. Please respect the governmental regulations
  concerning the distribution of this form of 'munitions'.

  If you can not use this package and you have the option of changing
  the settings on the Windows NT system then go to the Windows NT Phone
  Book settings, advanced, security settings and ensure that the `Accept
  any authentication including clear text' box is cchheecckkeedd and the
  `accept only Microsoft encrypted authentication' is nnoott cchheecckkeedd. The
  other check boxes may be checked or not as you see fit.

  Then use PAP on the Linux side. Put your Windows NT account name and
  password into the /etc/ppp/pap-secrets file.

  The Microsoft authentication sequence is a PAP style authentication
  with their DES encryption algorithm for the passwords. Normal PAP
  sends the passwords in clear text. This would violate their C2
  security goals.

  Versions of the Linux PPP code earlier than 2.1.2c have a flaw in
  their decoding of the authentication request. They will not work with
  a Windows NT system as they will not negotiate the proper
  authentication. Please used 2.1.2c or later if you wish to connect to
  Windows NT. The current version, 2.2 or 2.1.2d if you need 1.1 kernel
  support, should be used if possible.

  Scott Hutton <shutton@habanero.ucs.indiana.edu> sent me the following:

  Basically, NT RAS (Remote Access Services) will drop your connection
  if you REJ anything critical (i.e., authentication protocol).  So, the
  trick was to create a mostly bogus chap-secrets file.  Mine has

    ""   *   ""

  in it.  This causes pppd to send a NAK rather than a REJ.  With the
  SPAP registry key removed, the next protocol attempted is PAP (which
  is what I'm using).

  Other points are to make sure that *only* TCP/IP services are enabled
  in RAS (not NetBEUI nor IPX [EEdd:: IIPPXX iiss bbeeiinngg aaddddrreesssseedd.. UUnnttiill iitt iiss
  iinnssttaalllleedd pprrooppeerrllyy,, tthhiiss iiss pprroobbaabbllyy aa ggoooodd tthhiinngg ttoo ddiissaabbllee aass
  wweellll..]]). I also had to fiddle with a couple of other registry keys to
  kill timeouts (which are problematic when you're only doing TCP/IP):

       HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eRemoteAccess\eParameters
           Autodisconnect: REG_DWORD: 0

  and to get my routing to work correctly:

       HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eRasArp\eParameters
           DisableOtherSrcPackets: REG_DWORD: 0

  For completeness, the key that needs to be disabled to eliminate SPAP:

       HKEY_LOCAL_MACHINE\eSYSTEM\eCurrentControlSet\eServices\eRasMan\ePPP\eSPAP

  1133..  OOtthheerr mmeessssaaggeess wwrriitttteenn ttoo tthhee ssyysstteemm lloogg

  1133..11..  AAllaarrmm

  This is not a problem. It means that a timer has expired.  Timers are
  a necessary part of the protocol establishment phase.

  1133..22..  SSIIGGHHUUPP

  The pppd process has received a HUP signal. The HUP signal is
  generated by the tty software when the remote system has disconnected
  the modem link. It means that the modem has put the 'telephone
  receiver back on the hook', or, 'Hung UP' the connection.

  The kill program may also be used to send this signal to the pppd
  process.

  The pppd process will terminate the link in an orderly fashion when it
  receives this signal.
  1133..33..  SSIIGGIINNTT

  The pppd process has received an INT signal. The INT signal is
  generated by the console software when you press the Ctrl-C key
  combination and pppd is the foreground process.

  The kill program may also be used to send this signal to the pppd
  process. In fact, the recommended method to terminate the pppd link is
  to send the process an INT. See the question relating to "dip -k" for
  a script which will perform this task.

  The pppd process will terminate the link in an orderly fashion when it
  receives this signal.

  1133..44..  UUnnkknnoowwnn pprroottooccooll ((cc002255)) rreecceeiivveedd!!.

  The remote wishes to exchange Link Quality Reporting protocol with the
  Linux system. This protocol is presently not supported. This is not an
  error. It is merely saying that it has received the request and will
  tell the remote that "I can't do this now. Don't bother me with this!"

  The Morning Star PPP package will always try to do LQR protocol. This
  is normal.

  1133..55..  UUnnkknnoowwnn pprroottooccooll ((8800ffdd)) rreecceeiivveedd!!.

  The remote wishes to exchange Compression Control Protocol with the
  Linux system. This type of protocol is layered upon the basic data
  protocol and will, if successfully negotiated, result in a fewer
  number of bytes transmitted for the frame. This means that the
  transfer will be quicker.

  However, there are many types of compressors which are used under the
  general 'umbrella' of a Compression Control Protocol. The 2.2 PPP
  package understands only one; the BSD compressor. This compressor
  works very similar to the Unix 'compress' program and uses a LZW
  compressor. Depending upon the size of the code, there can be a
  significant amount of kernel space needed to hold the compression and
  decompression dictionaries. This should not be used if you have a
  limited memory space and should not even be contemplated if you have
  8Meg or less real (RAM) memory. In those cases you should invest in a
  decent modem which support compression.

  Unless both sides can agree upon the type of compression the
  compression will not be used.

  Another common compressor is called Predictor-1. This will take less
  memory and run faster. However, its compression is not as good in that
  it will send a little more data than the equivalent frame given to the
  BSD compressor.

  Many commercial terminal servers will employ a compressor called
  "Stacker(TM) LZW" or LZS protocol. This is a commercial compression
  agent. Apparently Stacker will give you a license for no charge.
  However, a specific license is required and that will usually prevent
  it being included with the pppd process.

  The 2.3 package will additionally include the compressor known as

  1133..66..  TThhee ccoonnnneeccttiioonn ffaaiillss wwiitthh eerrrroorrss ""iiooccttll((TTIIOOCCGGEETTDD)):: II//OO eerrrroorr"
  or "iiooccttll((PPPPPPIIOOCCSSIINNPPSSIIGG)):: II//OO eerrrroorr". What now?

  Look at the boot messages when you boot the kernel. If it says "PPPPPP
  vveerrssiioonn 00..11..22" then you have an old version of the PPPPPP..cc driver.

  If it says "PPPPPP vveerrssiioonn 00..22..77" then you have the current driver, for
  the 2.1.2 package however, it was not built with the same set of
  defines for the ioctl numbers. Ensure that you have only one file
  called "iiff__pppppp..hh". It should be located in the kernel's iinncclluuddee//lliinnuuxx
  directory. Once you have done this, rebuild the kernel and the pppd
  process.

  If it says "PPPPPP vveerrssiioonn 22..22..00" then you are using the driver for the
  2.2.0 package. This version of the driver will only work with the 2.2
  series of the pppd package. The 2.2 pppd program will only work with
  this version of the driver.

  1133..77..  SSoommeettiimmeess tthhee mmeessssaaggeess ""iiooccttll((PPPPPPIIOOCCGGDDEEBBUUGG)):: II//OO eerrrroorr",
  "iiooccttll((TTIIOOCCSSEETTDD)):: II//OO eerrrroorr" and "iiooccttll((TTIIOOCCNNXXCCLL)):: II//OO eerrrroorr" occur.
  Why?

  The remote system has disconnected the telephone. The tty drivers will
  re-establish the proper tty discipline and these errors are the result
  of the ppppppdd process trying to do the same thing. These are to be
  expected.

  1133..88..  MMyy iiffccoonnffiigg has strange output for PPP.

  Usually the ifconfig program reports information similar to the
  following:

       ppp0      Link encap UNSPEC  HWaddr 00-00-00-00-00-00-00 ...
                 inet addr 192.76.32.2  P-t-P 129.67.1.65  Mask 255.255.255.0
                 UP POINTOPOINT RUNNING  MTU 1500  Metric 1

  The information is for display purposes only. If you are using a
  recent kernel then update the nettools package with the current one on
  ssuunnaaccmm..sswwaann..aacc..uukk in the directory //ppuubb//LLiinnuuxx//nneettwwoorrkkiinngg//nneettttoooollss.

  1133..99..  TThhee ffiillee //pprroocc//nneett//ddeevv seems to be empty

  Did you just issue the command "llss --ll //pprroocc//nneett" and are wondering why
  the size is zero?  If so, this is normal.  Instead, issue the command:

  cat /proc/net/dev

  You should not find the file empty. The size is always shown as zero,
  but that is the 'proc' file system. Don't believe the size. Do the
  command.

  The 'more', 'less', and 'most' programs may not be used to view the
  file directly. If you wish to use these programs, use it as follows:

  cat /proc/net/dev | less

  1133..1100..  TThhee kkeerrnneell rreeppoorrttss tthhaatt tthhee PPPPPP ddeevviicceess aarree bbeeiinngg uunnlliinnkkeedd
  wwhheenn tthhee ssyysstteemm iiss bbeeiinngg ssttaarrtteedd..

  This is not a problem. The message is the result of the ppp driver
  calling the procedure 'unregister_netdev'. This permits the ppp driver
  to dynamically allocate the devices as they are needed. There is no
  real limit to the number of devices which may be created. For the sake
  of setting a limit, the value of 256 was chosen as the maximum number
  of devices. Should you find that this is too small then you may change
  the define in the ppp.c code to make it any value that you wish or
  supply the value when you use the dynamically loaded module.

  If you are receiving these messages then you have an old version of
  the ppp.c driver. Please consider upgrading the driver as the old
  scheme of calling dev_unlink is `bad'.

  1133..1111..  II jjuusstt cchheecckkeedd //pprroocc//nneett//ddeevv aanndd tthheerree aarree nnoo PPPPPP ddeevviicceess..
  WWhheerree ddiidd tthheeyy ggoo??

  They went nowhere. They were all unlinked during the startup of the
  system. Please see the previous question for additional information.

  1144..  NNeettwwoorrkk rroouuttiinngg iissssuueess ((uussiinngg PPPPPP aass aa ``cchheeaapp'' bbrriiddggee))

  1144..11..  SSllaattttaacchh and iiffccoonnffiigg don't work like SLIP

  Do not use ssllaattttaacchh and iiffccoonnffiigg with PPP. These are used for SLIP.
  The ppppppdd process does these functions at the appropriate time. These
  must occur after the LLCCPP and IIPPCCPP protocols have been exchanged.

  You can not replace ppppppdd with ssllaattttaacchh and iiffccoonnffiigg. Most of the
  protocol support for PPP is in the ppppppdd process. Only the IP (and IIPPXX
  when it is completed) processing is in the kernel.

  The host route to the remote system will be automatically added by
  pppd. There is no option to NOT add the route. The pppd process will
  terminate if the route could not be added.

  The default route may or may not be added. This is controlled by the
  option `ddeeffaauullttrroouuttee'. If you have a default route, it will not be
  changed.

  If you must do routing for an entire network, then put the route
  command into the //eettcc//pppppp//iipp--uupp script. The parameters to the script
  are:

          $0 - name of the script (/etc/ppp/ip-up or /etc/ppp/ip-down)
          $1 - name of the network device (such as ppp0)
          $2 - name of the tty device (such as /dev/cua0)
          $3 - speed of the tty device in Bits Per Second (such as 38400)
          $4 - the local IP address in dotted decimal notation
          $5 - the remote IP address in dotted decimal notation
          $6 - the value of the ipparam parameter

  1144..22..  II wwaanntt tthhee rroouuttee ttoo tthhee nneettwwoorrkk aanndd nnoott tthhee rroouuttee ttoo tthhee hhoosstt..

  On ssuunnssiittee there is a package called ddeevviinnffoo..ttaarr..ggzz. It contains some
  useful little programs which will extract the data from the device and
  to do various things with the dotted IP addresses.

  The documentation is in the man pages in the file.

  For example, if you want to route the entire IP domain to the remote,
  the following may be used in //eettcc//pppppp//iipp--uupp.

  Of course, if the values are not variable, then simply use the
  appropriate entry in the route command.

  ______________________________________________________________________
  # Obtain the netmask for the ppp0 (or whatever) device
  NETMASK = `devinfo -d $1 -t mask`

  # Obtain the IP domain (without the host address by removing the extra bits)
  DOMAIN = `netmath -a $5 $NETMASK`

  # Do the network route now that the IP domain is known
  route -net add $DOMAIN gw $5
  ______________________________________________________________________

  1155..  OOtthheerr ffeeaattuurreess aanndd pprroottooccoollss

  1155..11..  WWhhaatt aabboouutt ssuuppppoorrtt ffoorr ``ddeemmaanndd ddiiaall'

  Use the ddiiaalldd package. This is on sunsite in the same directory as the
  PPP source, //ppuubb//LLiinnuuxx//ssyysstteemm//NNeettwwoorrkk//sseerriiaall.

  1155..22..  WWhhaatt aabboouutt ``ffiilltteerriinngg'

  There are no plans to put filtering into the PPP code. The 1.3 kernel
  supports a firewall option and you should use that rather than attempt
  to find a method of putting firewall logic into a network device
  driver. Use either the iippffww or iippffwwaaddmm programs to define the rules
  for the firewall code in the kernel.

  1155..33..  HHooww aabboouutt IIPPXX?

  It is in the 2.2.0e package.

  1155..44..  HHooww aabboouutt NNEETTBBIIOOSS??

  There is a netbios PPP protocol. However, your better solution would
  be to use TCP/IP and the `ssaammbbaa' code.

  Microsoft and others have used Netbios PPP protocol.

  The nbfcp protocol is a public document and available from several
  sources. The Netbios protocol is not a valid address family at the
  present time for Linux. Until Linux supports the protocol, there is
  little need to support Netbios over PPP for Linux.
  1155..55..  II nneeeedd IISSDDNN ssuuppppoorrtt.. IIss tthheerree aannyy??

  ISDN support revolves around having a working ISDN driver. The present
  design of the PPP driver does not lend itself well to the concept of a
  block of data being received. This is being changed. A driver for the
  Sonix interface is being developed.

  1155..66..  II wwoouulldd lliikkee mmuullttii--ppooiinntt ssuuppppoorrtt.. IIss tthheerree aannyy ssuuppppoorrtt??

  Multi-point would be nice. I am not aware of anyone working on multi-
  point support at the present time.

  1155..77..  HHooww aabboouutt jjuusstt ssttaannddaarrdd ssyynncchhrroonnoouuss PPPPPP??

  There are small changes needed to support a serial interface which
  uses synchronous communications. The redesign of the PPP driver will
  help with this function as well. Kate Marika Alhola has expressed an
  interest in writing such a synchronous driver for her hardware. You
  should contact her at kate@iti.fi or kate@nic.funet.fi for further
  information.

  She informs me that the current status of sync ppp is, that I have had
  it few months in "production" use talking with Cisco(TM) in speeds 64K
  and 256K. The source is under the GPL license and it may be found in
  ftp://nic.funet.fi/pub/Linux/kernel/xnet-sync-driver-1.0.tar.gz.

  1166..  MMiisscceellllaanneeoouuss

  1166..11..  DDoo yyoouu hhaavvee aa PPPPPP ccoommppaattiibbllee mmaaiill rreeaaddeerr??

  Huh?  You have the wrong group if you want MSDOS. PPP has nothing to
  do with the mail user agent. All of the mail agents are compatible
  with PPP.

  1166..22..  HHooww aabboouutt aa nneewwss rreeaaddeerr??

  Refer to the previous answer.

  1177..  QQuueessttiioonnss aabboouutt cchhaatt

  1177..11..  MMyy mmooddeemm wwoonntt ddiiaall wwhheenn II rruunn cchhaatt

  The modem is required to be in the command mode to issue dial
  commands. If your modem is 'online' then characters sent to the modem
  will be sent to the remote system.

  If possible, configure the modem to monitor the DTR signal and to
  return to the command mode when the DTR signal dropps. This will
  permit the computer to force the modem back to the command mode when
  the pppd process terminates at the end of a connection. It will then
  be in the proper state when the next execution attempts to dial the
  telephone.

  If you cant do this then you should change the dial sequence so that
  it is similar to the following. It will ensure that the modem is in
  the command state prior to attempting to send the dial sequence.

       TIMEOUT 3 "" \rAT OK-+++\c-OK AT&D2&C1 TIMEOUT 60 OK ATDT555-1212 CONNECT

  The commands will change the timeout period to three seconds. This
  accommodates the gguuaarrdd time period used by many modems. It will then
  send AATT to the modem and look for its response of OOKK. If it is not
  received in the three seconds, it will send the ++++++ sequence to the
  modem and wait for the modem to present the expected OOKK response. Once
  it receives the valid response it will configure the modem and dial
  the telephone number.

  1177..22..  TThhee mmooddeemm ddiiaallss oonnllyy oonn eevveerryy sseeccoonndd aatttteemmpptt

  Please refer to the above answer. It is usually the same issue.

  1177..33..  TThhee cchhaatt ssccrriipptt ssttooppss aafftteerr sseennddiinngg tthhee aaccccoouunntt nnaammee aanndd iitt
  nneevveerr rreecceeiivveess tthhee ppaasssswwoorrdd pprroommpptt..

  Some systems, notably SCO, will flush the receive buffers after
  writing the prompts for user name and password. The chat program
  normally transmits the response immediately upon seeing the prompt.
  The result is that the reply from chat is flushed by SCO. The chat
  program continues to wait for the password prompt. However, the remote
  system is still waiting for the user to enter the account name.

  The solution is simple. Slow down the responses from chat so that
  there is time for the remote system to flush the receive buffer before
  chat starts to send the response. Chat supports this with the
  parameter. Change the response strings similar to the following:

       ogin:--ogin: \d\daccount assword: \d\dhello2u2

