home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / PPPBCKP / PPPD11.ZIP / PPPD.MAN < prev    next >
Text File  |  1997-09-19  |  23KB  |  509 lines

  1. PPPD for DOS 0.6 beta
  2.  
  3. NAME
  4.        pppd - Point to Point Protocol packet driver
  5.  
  6. SYNOPSIS
  7.        pppd [ COMn ] [ speed ] [ options ]
  8.  
  9. DESCRIPTION
  10.        The Point-to-Point  Protocol (PPP)  provides a  method for 
  11.        transmitting datagrams  over serial  point-to-point links. 
  12.        PPP is composed of three parts: a method for encapsulating 
  13.        datagrams over  serial links,  an extensible  Link Control 
  14.        Protocol (LCP), and a family of Network Control  Protocols 
  15.        (NCP) for establishing and configuring different  network- 
  16.        layer protocols.
  17.  
  18.        DOS  pppd  provides the  encapsulation scheme,  basic LCP, 
  19.        authentication support,  and an  NCP for  establishing and 
  20.        configuring  the  Internet  Protocol  (IP) (called  the IP 
  21.        Control Protocol, IPCP).
  22.  
  23. FREQUENTLY USED OPTIONS
  24.        <COMn>
  25.               Specifies  the  COM port  to use  for communicating 
  26.               with the peer.  Port COM1 through COM4 can be used; 
  27.               the  standard  base  address  and  IRQ  are assumed 
  28.               unless you change the  default with  other options.  
  29.               Basic testing (through BIOS) is done to ensure  COM 
  30.               availability. If pppd fails with message:
  31.  
  32.                   Invalid COM device COM?
  33.  
  34.               Then probably you  have  a  non  standard  COM port
  35.               setup. Omit the COM? keyword from configuration and
  36.               specify  COM  port  values with  the  following two
  37.               options, base and irq.
  38.  
  39.        base <port address>
  40.               Specifies the base address for the COM port, in the 
  41.               event that it is  a non-standard  one.  The  number 
  42.               can be entered in hex, octal or decimal,  following 
  43.               the C language rules for parsing numbers (0xnnn  is 
  44.               hex for example). No attempt is made to verify that 
  45.               a valid COM port exists at the address, so use this 
  46.               option with care.
  47.  
  48.        irq <IRQ number>
  49.               Specifies the IRQ number used by the COM  port. The 
  50.               same considerations as above apply.
  51.  
  52.        pktvec <interrupt number>
  53.               Specifies the interrupt vector number to  be hooked 
  54.               by the packet driver interface.  The valid range is 
  55.               from 0x60-0x66,  0x68-0x6F and  0x78-0x7E. If  this 
  56.               option is  not used,  the driver  searches for  the 
  57.               first free vector in this range (usually 0x60).
  58.  
  59.        namsrv <n>
  60.               Set  IP  addresses to  return in  the DNS  field of 
  61.               BOOTP  replies.  Supported  only  by  the  ethernet 
  62.               emulation versions EPPPD.EXE and EPPPDD.EXE.  Up to 
  63.               two nameservers  can be  specified. This  option is 
  64.               useful  for  configuring DOS  Internet applications 
  65.               through BOOTP.
  66.  
  67.        <speed>
  68.               Specifies the speed for serial comunications. Up to 
  69.               115200  baud  can  be  programmed, but  beware that 
  70.               serial ports  that have  the old  8250 UART  cannot 
  71.               handle  speeds  higher  than  9600  reliably.   The 
  72.               number can be entered in hex, octal or  decimal, as 
  73.               in the above options.
  74.  
  75.        asyncmap <map>
  76.               Set the  async character  map to  <map>.  This  map 
  77.               describes  which   control  characters   cannot  be 
  78.               successfully received over the  serial line.   pppd 
  79.               will ask the peer to send these characters as a  2- 
  80.               byte escape sequence.  The argument is a 32 bit hex 
  81.               number with  each bit  representing a  character to 
  82.               escape.  Bit 0 (00000001) represents the  character 
  83.               0x00; bit  31 (80000000)  represents the  character 
  84.               0x1f  or  ^  .   If multiple  asyncmap options  are 
  85.               given,  the  values  are  ORed  together.    If  no 
  86.               asyncmap option  is given,  no async  character map 
  87.               will be negotiated for  the receive  direction; the 
  88.               peer should then escape all control characters.
  89.  
  90.        connect <p>
  91.               Use  the  command specified  by <p>  to set  up the 
  92.               serial line. The CHAT.EXE program must be used with 
  93.               this option, as the COM port  is controled  by pppd 
  94.               and a  private interface  is used  between the  two 
  95.               programs for granting COM access to CHAT. pppd will 
  96.               look in the current  directory first,  then in  the 
  97.               same directory where pppd resides.
  98.  
  99.        crtscts
  100.               Use hardware flow control (i.e. RTS/CTS) to control 
  101.               the flow of data  on the  serial port.   If neither 
  102.               the crtscts nor the -crtscts option  is given,  the 
  103.               hardware flow control setting  for the  serial port 
  104.               is left unchanged.
  105.  
  106.        escape xx,yy,...
  107.               Specifies that certain characters should be escaped 
  108.               on  transmission  (regardless of  whether the  peer 
  109.               requests them to be escaped with its async  control 
  110.               character map).  The characters  to be  escaped are 
  111.               specified as  a list  of hex  numbers separated  by 
  112.               commas.   Note  that  almost  any character  can be 
  113.               specified  for  the  escape   option,  unlike   the 
  114.               asyncmap   option   which   only   allows   control 
  115.               characters to be specified.   The characters  which 
  116.               may not be escaped are those with hex values 0x20 - 
  117.               0x3f or 0x5e.
  118.  
  119.        file <f>
  120.               Read options from file <f> (the format is described 
  121.               below).
  122.  
  123.        mru <n>
  124.               Set the MRU [Maximum Receive Unit] value to <n> for 
  125.               negotiation.   pppd  will  ask  the  peer  to  send 
  126.               packets of no more than <n> bytes.  The minimum MRU 
  127.               value is 128.  The  default MRU  value is  1500.  A 
  128.               value  of  296 is  recommended for  slow links  (40 
  129.               bytes for TCP/IP header + 256 bytes of data).
  130.  
  131.        mtu <n>
  132.               Set the MTU [Maximum Transmit Unit]  value to  <n>. 
  133.               Unless the peer requests  a smaller  value via  MRU 
  134.               negotiation,  pppd  will  request  that the  kernel 
  135.               networking code send data packets of no more than n 
  136.               bytes through the PPP network interface.
  137.  
  138.        netmask <n>
  139.               Set the interface netmask to <n>, a 32  bit netmask 
  140.               in "decimal dot" notation (e.g. 255.255.255.0).  If 
  141.               this option is given, the value  specified is  ORed 
  142.               with the default netmask.   The default  netmask is 
  143.               chosen based on the  negotiated remote  IP address; 
  144.               it is the appropriate network mask for the class of 
  145.               the  local  IP  address  and  that   satisfies  the 
  146.               following condition:
  147.  
  148.               (<netmask> & <remoteIP>) = (<netmask> & <localIP>)
  149.  
  150.               The  default  netmask is right shifted if necessary 
  151.               until the above condition is reached.
  152.  
  153. OPTIONS
  154.        <local IP address>:<remote IP address>
  155.               Set the local and/or remote interface IP addresses. 
  156.               Either one may be omitted. The IP addresses must be 
  157.               given in decimal dot notation (e.g. 150.234.56.78). 
  158.               IP addresses will be obtained from the peer  if not 
  159.               specified in  any option.   Thus, in  simple cases, 
  160.               this option  is not  required.  If  a local  and/or 
  161.               remote IP  address is  specified with  this option, 
  162.               pppd will  not accept  a different  value from  the 
  163.               peer  in  the  IPCP  negotiation, unless  the ipcp- 
  164.               accept-local and/or ipcp-accept-remote options are 
  165.               given, respectively.
  166.  
  167.        -ac    Disable  Address/Control   compression  negotiation 
  168.               (use   default,    i.e.    address/control    field 
  169.               compression disabled).
  170.  
  171.        -all   Don't  request  or allow negotiation of any options 
  172.               for LCP and IPCP (use default values).
  173.  
  174.        -am    Disable  asyncmap  negotiation  (use  the   default
  175.               asyncmap, i.e. escape all control characters).
  176.  
  177.        -as <n>
  178.               Same as asyncmap <n>
  179.  
  180.        -chap  Don't agree to authenticate using CHAP.
  181.  
  182.        chap-restart <n>
  183.               Set the CHAP restart interval (retransmission time-
  184.               out for challenges) to <n> seconds (default 3).
  185.  
  186.        -crtscts
  187.               Disable hardware flow control (i.e. RTS/CTS) on the 
  188.               serial  port.   If  neither  the  crtscts  nor  the 
  189.               -crtscts option is given, the hardware flow control 
  190.               setting for the serial port is left unchanged.
  191.  
  192.        -d     Increase   debugging   level  (same  as  the  debug 
  193.               option).
  194.  
  195.        debug  Increase  debugging  level (same  as -d).   If this 
  196.               option is given, pppd will log the contents  of all 
  197.               control  packets  sent  or  received in  a readable 
  198.               form.  The packets are logged through DOS  standard 
  199.               output, which can be  redirected to  a file.   Some 
  200.               debug  output is sent to DOS  standard error.  This
  201.               options is supported by PPPDD.EXE & EPPPDD.EXE.
  202.  
  203.        -ip
  204.               Disable IP address negotiation.  If this  option is 
  205.               used, the remote IP address must be specified  with 
  206.               an  option  on the  command line  or in  an options 
  207.               file.
  208.  
  209.        ipcp-accept-local
  210.               With this option, pppd will accept the peer's  idea 
  211.               of  our  local  IP  address, even  if the  local IP 
  212.               address was specified in an option.
  213.  
  214.        ipcp-accept-remote
  215.               With this option, pppd will accept the peer's  idea 
  216.               of its (remote) IP address, even  if the  remote IP 
  217.               address was specified in an option.
  218.  
  219.        ipcp-max-configure <n>
  220.               Set  the  maximum  number of IPCP configure-request 
  221.               transmissions to <n> (default 10).
  222.  
  223.        ipcp-max-failure <n>
  224.               Set  the  maximum  number  of  IPCP  configure-NAKs 
  225.               returned before starting to  send configure-Rejects 
  226.               instead to <n> (default 10).
  227.  
  228.        ipcp-max-terminate <n>
  229.               Set the maximum number  of  IPCP  terminate-request 
  230.               transmissions to <n> (default 3).
  231.  
  232.        ipcp-restart <n>
  233.               Set  the  IPCP  restart   interval  (retransmission 
  234.               timeout) to <n> seconds (default 3).
  235.  
  236.        kdebug n
  237.               Enable debugging code in the low-level  PPP driver.  
  238.               The argument n is a number which is the sum  of the 
  239.               following  values:  1  to   enable  general   debug 
  240.               messages,  2  to  request  that  the   contents  of 
  241.               received packets be printed, and 4 to request  that 
  242.               the  contents  of transmitted packets  be  printed.
  243.               This option is supported by PPPDD.EXE & EPPPDD.EXE.
  244.  
  245.        lcp-echo-failure <n>
  246.               If this option is given, pppd will presume the peer 
  247.               to be dead if n LCP echo-requests are  sent without 
  248.               receiving a valid LCP echo-reply.  If this happens, 
  249.               pppd will  terminate the  connection.  Use  of this 
  250.               option requires a non-zero value for  the lcp-echo- 
  251.               interval  parameter.   This option  can be  used to 
  252.               enable  pppd  to  terminate   after  the   physical 
  253.               connection  has  been broken  (e.g., the  modem has 
  254.               hung  up)  in  situations  where no  hardware modem 
  255.               control lines are available.
  256.  
  257.        lcp-echo-interval <n>
  258.               If  this  option is  given, pppd  will send  an LCP 
  259.               echo-request  frame  to the  peer every  n seconds. 
  260.               Under  Linux,  the  echo-request  is  sent  when no 
  261.               packets  have  been received  from the  peer for  n 
  262.               seconds. Normally  the peer  should respond  to the 
  263.               echo-request by sending an echo-reply.  This option 
  264.               can  be  used with  the lcp-echo-failure  option to 
  265.               detect that the peer is no longer connected.
  266.  
  267.        lcp-max-configure <n>
  268.               Set the maximum  number  of  LCP  configure-request 
  269.               transmissions to <n> (default 10).
  270.  
  271.        lcp-max-failure <n>
  272.               Set  the  maximum  number  of  LCP   configure-NAKs 
  273.               returned before starting to  send configure-Rejects 
  274.               instead to <n> (default 10).
  275.  
  276.        lcp-max-terminate <n>
  277.               Set  the  maximum  number  of LCP terminate-request 
  278.               transmissions to <n> (default 3).
  279.  
  280.        lcp-restart <n>
  281.               Set  the   LCP  restart   interval  (retransmission 
  282.               timeout) to <n> seconds (default 3).
  283.  
  284.        local  Don't  use  the  modem  control  lines.   With this 
  285.               option,  pppd  will  ignore  the  state  of the  CD 
  286.               (Carrier Detect) signal from the modem and will not 
  287.               change the state of the DTR  (Data Terminal  Ready) 
  288.               signal.
  289.  
  290.        modem  Use the modem control  lines.  This  option is  the 
  291.               default.  With this option, pppd will wait for  the 
  292.               CD (Carrier  Detect) signal  from the  modem to  be 
  293.               asserted when opening the  serial device  (unless a 
  294.               connect script is specified), and it will drop  the 
  295.               DTR (Data Terminal Ready)  signal briefly  when the 
  296.               connection is terminated and  before executing  the 
  297.               connect script.
  298.  
  299.        -mn    Disable   magic   number  negotiation.   With  this 
  300.               option, pppd cannot detect a looped-back line.
  301.  
  302.        -mru   Disable  MRU  [Maximum  Receive  Unit] negotiation. 
  303.               With this  option, pppd  will use  the default  MRU 
  304.               value of 1500 bytes.
  305.  
  306.        -pap   Don't agree to authenticate using PAP.
  307.  
  308.        pap-max-authreq <n>
  309.               Set the maximum number of  PAP authenticate-request 
  310.               transmissions to <n> (default 10).
  311.  
  312.        pap-restart <n>
  313.               Set  the   PAP  restart   interval  (retransmission 
  314.               timeout) to <n> seconds (default 3).
  315.  
  316.        passwd <p>
  317.               Set  the  user password to use  for  authenticating
  318.               this machine with the peer using PAP/CHAP to <p>.
  319.  
  320.        -pc    Disable protocol field compression negotiation (use 
  321.               default, i.e. protocol field compression disabled).
  322.  
  323.        +ua <p>
  324.               Agree to  authenticate using PAP/CHAP  if requested
  325.               by the  peer,  and  use  the data  in file  <p> for
  326.               the user and password to send to the peer. The file
  327.               contains  the  remote  user  name,  followed  by  a
  328.               newline, followed by the remote password,  followed
  329.               by a newline.  
  330.  
  331.        user <u>
  332.               Set  the  user  name to use for authenticating this 
  333.               machine with the peer using PAP/CHAP to <u>.
  334.  
  335.        -vj    Disable negotiation of Van  Jacobson  style  TCP/IP
  336.               header  compression  (use default, i.e. no compres-
  337.               sion).
  338.  
  339.        -vjccomp
  340.               Disable the connection-ID compression option in Van
  341.               Jacobson  style  TCP/IP  header  compression.  With
  342.               this option, pppd will not omit  the  connection-ID
  343.               byte  from  Van Jacobson compressed TCP/IP headers,
  344.               nor ask the peer to do so.
  345.  
  346.        vj-max-slots n
  347.               Sets the number of connection slots to be  used  by
  348.               the  Van  Jacobson  TCP/IP  header  compression and
  349.               decompression code to n, which must  be  between  2
  350.               and 16 (inclusive).
  351.  
  352.        xonxoff
  353.               Use software  flow   control  (i.e.   XON/XOFF)  to 
  354.               control the flow of data on the serial port.
  355.  
  356. OPTIONS FILES
  357.        Options can be taken  from files  as well  as the  command 
  358.        line. pppd reads options from the  files .\pppd.cfg  (also 
  359.        in the directory where  the pppd  program is  located) and 
  360.        .\pppdrc.cfg  before  looking at the command  line.  After 
  361.        parsing command line options, a file  named .\pppdcom?.cfg 
  362.        is tried, the ?   will be  replaced with  the current  COM 
  363.        number.
  364.  
  365.        An options file is parsed into a series of words delimited 
  366.        by whitespace.  Whitespace can  be included  in a  word by 
  367.        enclosing the word in quotes (").  A backslash  (\) quotes 
  368.        the following  character.  A  hash (#)  starts a  comment, 
  369.        which continues until the end of the line.
  370.  
  371.        If you need to put DOS path separators  in  options files, 
  372.        you must use the escape sequence \\, for example:
  373.  
  374.            +ua c:\\secrets\\paplogin
  375.  
  376.        This is needed because the \  character is  interpreted as 
  377.        the beginning of an escape control code.
  378.  
  379. AUTHENTICATION
  380.        PAP/CHAP authentication with the peer is supported by this 
  381.        release.  It  doesn't support  authenticating the  peer to
  382.        ourselves,  so it is not well suited for  acting as  a PPP
  383.        server.
  384.  
  385.        You are required to supply two items for authentication, a 
  386.        user  name  and  a  password.  Options  are available  for 
  387.        setting these two items. An authentication  file can  also 
  388.        be used with the +ua filename option.
  389.  
  390. EXAMPLES
  391.        In  the simplest case, you can connect the serial ports of 
  392.        two machines and issue a command like
  393.  
  394.               pppd com1 9600 passive
  395.  
  396.        If  the  other machine  is running  UNIX and  has a  getty 
  397.        process attached to the serial port  we want  to use,  the 
  398.        process of logging in  to the  other machine  and starting 
  399.        pppd can be automated by using the connect  option to  run 
  400.        chat, for example:
  401.  
  402.               pppd com1 38400 connect "chat '' '' 'login:'
  403.               'username' 'Password:' 'password' '% '
  404.               'exec pppd passive'"
  405.  
  406.        (Note however that running chat like this will  leave  the 
  407.        password  visible in the parameter list of pppd and chat.)
  408.  
  409.        If your serial connection is any  more complicated  than a 
  410.        piece of wire, you may need  to arrange  for some  control 
  411.        characters  to  be escaped.   In particular,  it is  often 
  412.        useful to escape XON  (^Q) and  XOFF (^S),  using asyncmap 
  413.        a0000.  If the path includes a telnet, you probably should 
  414.        escape  ^]  as  well  (asyncmap  200a0000).   If the  path 
  415.        includes an rlogin, you  will need  to use  the escape  ff 
  416.        option  on  the end  which is  running the  rlogin client, 
  417.        since  many  rlogin implementations  are not  transparent; 
  418.        they will  remove the  sequence [0xff,  0xff, 0x73,  0x73, 
  419.        followed by any 8 bytes] from the stream.
  420.  
  421. DIAGNOSTICS
  422.        The debug  versions PPPDD.EXE  and EPPPDD.EXE  incorporate 
  423.        additional code for diagnostic purposes. The  log  will be 
  424.        sent to DOS standard output and error/informative messages 
  425.        will go to DOS standard error.
  426.  
  427.        Logging will cease after the driver goes resident,  so its 
  428.        usefulness is limited to debugging the link  establishment 
  429.        phase.
  430.  
  431.        The  debug  option  causes  the  contents  of all  control 
  432.        packets sent or received to be logged, that  is, all  LCP, 
  433.        PAP, CHAP or IPCP packets.  This can be useful if  the PPP 
  434.        negotiation does not succeed.  If debugging is enabled  at 
  435.        compile time, the debug option also causes other debugging 
  436.        messages to be logged.
  437.  
  438. FILES
  439.  
  440.        .\ip-up.bat
  441.               A DOS batch file  generated by  pppd that  will set 
  442.               environment  variables  with the  current PPP  link 
  443.               parameters, such local IP, remote IP, etc. The file
  444.               contains the following statements:
  445.  
  446.                   SET MYIP=xxx.xxx.xxx.xxx
  447.                   SET REMIP=yyy.yyy.yyy.yyy
  448.                   SET NETMASK=zzz.zzz.zzz.zzz
  449.                   SET PEERMRU=nnnn
  450.  
  451.               This file can be called from  inside another  batch 
  452.               file and then use the environment variables for DOS 
  453.               Internet applications configuration.
  454.  
  455.        full_path_to_pppd\pppd.cfg
  456.        .\pppd.cfg
  457.               System default options for pppd, read  before  user 
  458.               default options or command-line options.
  459.  
  460.        .\pppdrc.cfg
  461.               User  default  options,  read  before  command-line 
  462.               options.
  463.  
  464.        .\pppdcom?.cfg
  465.               System default options for the  serial  port  being 
  466.               used, read after command-line options.
  467.  
  468. SEE ALSO
  469.        RFC1144
  470.               Jacobson,  V.   Compressing TCP/IP headers for low- 
  471.               speed serial links.  1990 February.
  472.  
  473.        RFC1321
  474.               Rivest, R.  The MD5 Message-Digest Algorithm.  1992 
  475.               April.
  476.  
  477.        RFC1332
  478.               McGregor,   G.    PPP  Internet   Protocol  Control 
  479.               Protocol (IPCP).  1992 May.
  480.  
  481.        RFC1334
  482.               Lloyd,  B.;   Simpson,  W.A.    PPP  authentication 
  483.               protocols.  1992 October.
  484.  
  485.        RFC1548
  486.               Simpson,  W.A.   The Point-to-Point Protocol (PPP). 
  487.               1993 December.
  488.  
  489.        RFC1549
  490.               Simpson, W.A.  PPP in HDLC Framing.  1993 December.
  491.  
  492. NOTES
  493.        You can use CTRL+BREAK to abort the driver before it  goes 
  494.        resident.  You must  use CTRL+BREAK,  CTRL+C doesn't  work
  495.        To  close  the PPP link and deinstall the driver you  must
  496.        use   a   standard  packet  driver  terminator,   such  as
  497.        TERMIN.COM from Russell Nelson (CRYNWR). Call it with:
  498.  
  499.            TERMIN 0xnn
  500.  
  501.        Where nn is the hex number of the interrupt vector used by
  502.        the installed driver, i.e. TERMIN 0x60.
  503.  
  504. AUTHORS
  505.        DOS port by Antonio Lopez Molero, <tonilop@redestb.es>.
  506.        Drew  Perkins, Brad Clements, Karl Fox, Greg Christy, Brad 
  507.        Parker, Paul Mackerras (paulus@cs.anu.edu.au).
  508.  
  509.