home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit v2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Texts / ppp / ppp3.txt < prev    next >
Text File  |  1999-11-04  |  20KB  |  462 lines

  1. From news.primenet.com!nntp.news.primenet.com!news2.texas.net!news.texas.net!imci2!news.internetMCI.com!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!news.rhrz.uni-bonn.de!ignatios Mon Apr  1 01:32:31 1996
  2. Path: news.primenet.com!nntp.news.primenet.com!news2.texas.net!news.texas.net!imci2!news.internetMCI.com!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!news.rhrz.uni-bonn.de!ignatios
  3. From: ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  4. Newsgroups: comp.protocols.ppp,news.answers,comp.answers
  5. Subject: comp.protocols.ppp part3 of 8 of frequently wanted information
  6. Supersedes: <ppp-faq/part3_826658408@cs.uni-bonn.de>
  7. Followup-To: poster
  8. Date: 26 Mar 1996 19:28:46 GMT
  9. Organization: computer science department, university of Bonn, Germany
  10. Lines: 436
  11. Approved: news-answers-request@MIT.Edu
  12. Expires: 23 Apr 1996 19:20:08 GMT
  13. Message-ID: <ppp-faq/part3_827868008@cs.uni-bonn.de>
  14. NNTP-Posting-Host: theory.cs.uni-bonn.de
  15. Summary: This document contains information about the Internet Point-to-Point
  16.     Protocol, including a bibliography, a list of public domain and
  17.     commercial software and hardware implementations, a section on
  18.     configuration hints and a list of frequently asked questions and
  19.     answers on them.
  20.     It should be read by anybody interested in connecting to Internet
  21.     via serial lines, and by anybody wanting to post to
  22.     comp.protocols.ppp (before he/she does it!)
  23. Xref: news.primenet.com comp.protocols.ppp:15473 news.answers:67011 comp.answers:17576
  24.  
  25. Archive-name: ppp-faq/part3
  26. Version: $Revision: 3.10 $
  27. Last-modified: $Date: 1995/11/13 20:10:17 $
  28. URL: http://cs.uni-bonn.de/ppp/part3.html
  29.  
  30.                                                   PPP configuration recipes
  31.                      3. HOW TO (CONFIGURATION RECIPES)
  32.                                      
  33.       
  34.       complain about missing or incorrect information in the FAQ list
  35.       
  36.        connect a single host to a network without needing a new subnet.
  37.       
  38.       
  39.       configure free ppp for sun to interoperate with MacPPP 1.0
  40.       
  41.       
  42.       get SCO TCP 1.2 to connect to Ethernet LANs by a PPP link
  43.       
  44.        use PPP through a X.25 PAD
  45.       
  46.        use SunLINK PPP 1.0 to a CISCO
  47.       through a sync line
  48.       
  49.        use MacPPP 2.0.1 on non-US
  50.       System 6 MACs
  51.       
  52.        stop MacPPP to dial without being told to
  53.       
  54. 3.0 complain about missing or incorrect information in the FAQ list
  55.  
  56.    E-mail to
  57.    
  58.                         ignatios@theory.cs.uni-bonn.de (Ignatios Souvatzis)
  59.                                                                            
  60.    and add information I'll need to think about it. That is:
  61.    
  62.        In case of incorrect information, send me the correct information
  63.       and the source of it.
  64.       
  65.        In case of missing information, send me the information which is
  66.       missing and the source of it.
  67.       
  68. 3.1 connect a single host to a network without needing a new subnet.
  69.  
  70.    If you have only one single machine on the other side, the easiest way
  71.    is to give it a IP address belonging to the local ethernet/IP subnet,
  72.    and to tell the ppp gateway machine to advertise (proxy arp) its own
  73.    ethernet address as the other machines'. Works like a charm at our site.
  74.    Of course, for a large group or complicated network on the other side,
  75.    you would get more management problems.
  76.    
  77.    On the gateway do:
  78.    
  79.  
  80. arp -s othermachinesipaddress myownethernetaddress permanent public
  81. ifconfig pppNUMBER myipaddress othermachinesipaddress [other params] up
  82.  
  83.    on remote machine:
  84.    
  85.  
  86. ifconfig pppNUMBER gatewaysipaddress [other params] up
  87. route add default gatewaysipaddress 1
  88.  
  89.    pppNUMBER might be spelled as dpNUMBER for dialup IP.
  90.    
  91.    Of course, if you use routeing daemons, you could also propagate the
  92.    route via routed / gated etc. to other machines, but it's more painful
  93.    because every machine has to do it (and might choose not to do it), and
  94.    every machine doing IP on a Ethernet HAS to talk arp.
  95.    
  96.    On intermittently connected demand-dialed links, you may need to edit
  97.    /etc/gateways to define the destination of the PPP or SLIP connection as
  98.    a "passive" link.  Otherwise, routed will remove routes from the
  99.    kernel's routing table that use that link, because it won't hear RIPs
  100.    coming from hosts or routers across the wire.  Since it doesn't hear
  101.    anything from hosts or routers on the far side of the wire, routed
  102.    assumes that the link is dead forever.
  103.    
  104.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  105.                                                                            
  106. 3.2 configure KA9Q PPP and it's Unix counterpart
  107.  
  108.  
  109. Newsgroups: comp.protocols.ppp
  110. From: kim@MorningStar.Com (Kim Toms)
  111. Subject: Re: PPP for DOS? (good info for FAQ)
  112. Date: Wed, 9 Dec 1992 06:26:28 GMT
  113.  
  114.    I have been able to use the ka9q software on my PC to call my Suns at
  115.    work.  This is available from merit.edu:/pub/ppp/ka9q.zip. I had to tell
  116.    our Sun product [that would be Morning Star PPP, see below. I.S.]
  117.    "nolqm" in order to prevent it from hanging up because of an lqm
  118.    failure, but other than that, I have had no trouble.
  119.    
  120.    Below, I include the configuration I use on my pc.  I unpacked the ka9q
  121.    distribution into \ka9q.  All the configuration files are located there.
  122.    
  123.    
  124.    I have also been able to use the NCSA telnet packet driver, however, I
  125.    could not use ftp with that, so I gave it up some months ago.
  126.    
  127.    Here's what I use on the PC:
  128.    
  129.    In a file called "doit2.bat":
  130.    
  131.  
  132. net -d \ka9q dialup.net
  133.  
  134.    In a file called "dialup.net":
  135.    
  136.  
  137. ip address 137.175.2.42
  138. attach asy 0x3f8 4 ppp pp0 1024 256 9600
  139. dialer pp0 dialup.ppp
  140. ppp pp0 trace 2
  141. ppp pp0 quick
  142. ppp pp0 lcp open
  143. ppp pp0 ipcp open
  144. route add default pp0
  145. ip ttl 32
  146. tcp mss 1460
  147. tcp window 2920
  148. domain addserver 137.175.2.11
  149. domain suffix MorningStar.Com
  150. domain cache clean on
  151. start echo
  152. start discard
  153. start telnet
  154. start ftp
  155. start finger
  156. start ttylink
  157.  
  158.    In a file called "dialup.ppp":
  159.    
  160.  
  161. control down
  162. wait 1000
  163. control up
  164. wait 1000
  165. wait 2000
  166. send "at\r"
  167. wait 3000 "OK"
  168. send "atdt4515016\r"
  169. wait 60000 "login: "
  170. send "<username>\r"
  171. wait 5000 "word:"
  172. wait 1000
  173. send "<password>\r"
  174.  
  175.   3.2.2 CONFIGURE KA9Q PPP (WITH NEW DIALER) AND IT'S UNIX COUNTERPART
  176.   
  177.    deleted, becausy to my knowledge, there is no KA9Q with new dialer and
  178.    working PPP.
  179.    
  180.   3.2.3 CONFIGURE JNOS
  181.   
  182.    I have jnos1.08 up and running. [that is,  'version 911229 (WG7J
  183.    v1.08)'].   For a sample configuration, get the  configuration and
  184.    executable you can ftp from  speckled.mpifr-bonn.mpg.de, user ftp,
  185.    directory /pub/rhein.de or /pub/incoming. The remarks in 3.3 about
  186.    'vjmode draft' or 'vjmode 1331' apply here, too.
  187.    
  188.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  189.                                                                            
  190. 3.3 configure NCSA with the merit ppp packet driver and its  unix
  191. counterpart
  192.  
  193.    I had at least partial success using the parameters, to the public ppp
  194.    for SUNOS (dp-2.3, but I suspect any of dp-2.1 or dp-2.2* or
  195.    pppd-1.01beta or ppp-1.1 would have the same behaviour) -ac -pc vjmode
  196.    draft. The latter would be called in ppp-1.1 (and up) 'vjmode rfc1331'.
  197.    
  198.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  199.                                                                            
  200. 3.4 work BOOTP over protocols such as SLIP or PPP
  201.  
  202.  
  203. Newsgroups: comp.protocols.ppp
  204. From: johnson@tigger.jvnc.net (Steven L. Johnson)
  205. Subject: Re: Tech?: BOOTP over SLIP or PPP
  206. Date: Wed, 2 Dec 1992 03:14:37 GMT
  207.  
  208.    [Somebody on the net] writes:
  209.    
  210.     Does anybody know if there is a description of how to work BOOTP over
  211.    protocols such as SLIP or PPP. It seems this should work but the problem
  212.    is that there is a field in the BOOTP header that contains the physical
  213.    layer type, and these numbers are defined as the hardware types for ARP.
  214.     Since SLIP and PPP do not use ARP, they do not have numbers.I haven't
  215.    looked very far, and would appreciate a pointer to any previous work or
  216.    concensus.  I've used a type 0 but only with a cisco terminal server.  I
  217.    don't know if this causes problems on other implementations.
  218.    
  219.    The second problem is that the BOOTP header also contains a field for
  220.    the physical layer address (i.e. Ethernet address). PPP and SLIP do not
  221.    have an physical layer addresses. What does the BOOTP server have to
  222.    base it's IP address suggestion on?  It's my understanding that PPP can
  223.    itself negotiate the IP address and that this is the preferred method.
  224.    If the IP address is included in the bootp request then the remaining
  225.    configuration is done based on that IP address and not the hardware
  226.    address.  With SLIP there isn't this option, so the IP address must be
  227.    assigned by knowing the physical port on which the request was received.
  228.     Again, I used an address of 0 (with a address length of 0, I think) and
  229.    this didn't seem to cause a problem.
  230.    
  231.    On a terminal server that contained only a minimal implementation of
  232.    bootp, it was necessary to send two requests.  The first request was
  233.    satisfied by the terminal server and configured only the IP address.  A
  234.    subsequent request (that contained the IP address provided by the first
  235.    request) was forwarded by the terminal server to a bootp server on the
  236.    ethernet and provided the rest of the configuration from a standard
  237.    bootptab.
  238.    
  239.                                                                      -Steve
  240.                                                                            
  241. 3.5 configure free ppp for sun to interoperate with MacPPP 1.0
  242.  
  243.  
  244. From: guy@world.std.com (Guy K Hillyer)
  245. Comments-by: Ignatios Souvatzis, marked with [comments... I.S.]
  246. Subject: Success with MacPPP
  247. Date: Wed, 20 Jan 1993 02:02:08 GMT
  248.  
  249.    After many travails, I finally got MacPPP to work for me.  This is the
  250.    story of how I got it to work.  This account is purely anecdotal.  I
  251.    don't claim to know what is the best configuration, just what worked for
  252.    me.
  253.    
  254.    I submit this for the benefit of other poor suckers who might otherwise
  255.    spend days getting a Mac/Sun PPP link to work, like I did. I'm a happy
  256.    camper now, and thanks to Larry Blunk @ merit.edu for making his
  257.    implementation freely available.  Now all I need is a T1 line to my
  258.    house and I'll be all set.
  259.    
  260.    [I'm not sure MacPPP works on T1 lines, I'm pretty sure the Perkins et
  261.    al.  PPP doesn't work over T1 lines. I.S.]
  262.    
  263.    After working with the beta release for a while, I picked up the latest
  264.    and greatest MacPPP at merit.edu.  The file is named
  265.    /pub/ppp/macppp1.0.sit.hqx.  I don't think there's any big difference
  266.    between that and the beta version, but the docs did have two or three
  267.    new sentences that helped to clarify matters.
  268.    
  269.    The ppp I'm using on the UNIX side is the one identified as
  270.    `Perkins/Clements/Fox/Christy PPP for SunOS' in the comp.protocols.ppp
  271.    FAQ.  During the course of debugging my connection, I installed the
  272.    package identified in that document as dp-2.2, but it behaved in exactly
  273.    the same way as the other one did with regard to the problems I was
  274.    having, so I only tried it briefly.  It has some more advanced
  275.    capabilities so I may switch to it in the future, but for now I'm just
  276.    glad to have a working configuration.
  277.    
  278.    Mac configuration:
  279.    
  280.        One mistake I made was ignoring the point made in the MacPPP docs
  281.     about configuring MacTCP for server addressing.  I thought that
  282.    "server addressing" implied that the mac would get its IP address
  283.    from some kind of server on my network, using RARP or something     like
  284.    that.  I thought that didn't make sense in my situation, so I
  285.    configured MacTCP for manual addressing.  In fact, I now believe
  286.    that "server addressing" means that TCP gets the address from     the IP
  287.    layer.  I'm not an ISO networking model savant, so this
  288.    
  289.        [must be wrong... the IP layer gets its address from the PPP layer,
  290.        which can do an address negotiation.]
  291.    
  292.        notion should be taken with a grain of salt.
  293.    
  294.        I also set MacTCP to have a "class C" network address.  I think
  295.    this only matters for broadcast packets, because it sets the
  296.    netmask.  Again, I'm treading on thin ice here.
  297.    
  298.        I set the IP addresses in the MacPPP control panel's IPCP
  299.    configuration window.  This probably isn't necessary, but I     wanted
  300.    to make sure that I got a particular address.  If you set     the
  301.    addresses on the Mac side, you'll want to specify the     addresses and
  302.    disable IP address negotiation on the UNIX side     ("-ip" option to
  303.    ppp).
  304.    
  305.        I first got things working with VJ header compression disabled on
  306.     both sides.  You may want to try it this way if you have any
  307.    trouble.  This is set in the IPCP window.  If you disable VJ     header
  308.    compression on the Mac side, you'll want to disable it on     the UNIX
  309.    side as well ("-vj" option to ppp).
  310.    
  311.        [You probably need only to set it to 'draft'. The configuration
  312.    negotiation should do the rest. The only reason you need a 'vjmode'
  313.    option is that the format of the configuration option has changed and
  314.      the older ones don't understand the format of the aug91draft or
  315.    rfc1331 ones (which should be the same) I.S.]
  316.    
  317.        Once I got things working I turned on VJ header compression.  It
  318.    only worked for me if I selected "draft" mode on the UNIX side
  319.    ("vjmode draft" option to ppp).
  320.    
  321.    Sun configuration:
  322.    
  323.        I configure the ppp interface like this:
  324.    
  325.  
  326.         ifconfig ppp0 <Sun's IP addr> <Mac's IP addr> netmask 0xffffff00 do
  327. wn
  328.  
  329.    Then I start ppp like this:
  330.    
  331.  
  332.         ppp -p vjmode draft -ip <Sun's IP addr>:<Mac's IP addr>
  333.  
  334.    [which is also about the configuration of dp-2.x, on the login line.
  335.     You have to specify PPP_OPTIONS=vjmode,draft in the configuration file
  336.        for the network interface used by the mac. For ppp-1.1/2.tar.Z, use
  337.        'vjmode rfc1331' I.S.]
  338.    
  339.        The "-p" means passive, so the Sun waits for the Mac to start the
  340.     handshaking.  My experience was that without -p, there was a very
  341.    brief window during which the Mac could enter the negotiation, and
  342.    if it missed window, then all was lost.
  343.    
  344.        "vjmode draft" means to use the new version of negotiation
  345.    specified in the August 1991 Draft RFC for IPCP.  This is     apparently
  346.    the only version MacPPP knows how to deal with.  If     you've disabled
  347.    VJ header compression on the Mac, you should give     "-vj" instead.
  348.    
  349.        "-ip" disables IP address negotiation.  It probably would work
  350.    fine without this; I just haven't tried it that way.
  351.    
  352. 3.6 get SCO TCP 1.2 to connect to Ethernet LANs by a PPP link
  353.  
  354.  
  355. From: bob@MorningStar.Com (Bob Sutterfield)
  356. Subject: Re: PPP on SCO between different networks
  357.  
  358.    In some news message, somebody asked:
  359.    
  360.       I need to set up a UNIX system which is on an ethernet LAN (with
  361.    its own IP address), so it can call up a PPP link to another    network,
  362.    and use a different IP address on the remote network. There's a bug in
  363.    SCO TCP 1.2 (but not in 1.1.3) that prevents this scenario with SCO's
  364.    PPP, and with any other PPP or SLIP software you might try to use on
  365.    your SCO system.  You can get the fix from
  366.    ftp.morningstar.com:pub/tools/SCO-route-fix, or through SCO's normal
  367.    support channels.
  368.    
  369. 3.7 use PPP through a X.25 PAD
  370.  
  371.  
  372. From: unrza3@cd4680fs.rrze.uni-erlangen.de (Markus Kuhn)
  373. Subject: Re: PPP or SLIP through PAD (X.29/X.25)
  374. Date: Mon, 5 Apr 1993 19:30:17 +0200
  375. Organization: Regionales Rechenzentrum Erlangen, Germany
  376.  
  377.    Does anybody have experience with "tunneling" PPP and SLIP through the
  378.    PAD-service (X.29 over X.25)? What I want is to let people dial up their
  379.    PAD-service and send their PPP/SLIP packets across the X.25 network into
  380.    the PAD-login of my UNIX-machine.  This should be possible, but I guess
  381.    the PAD-parameter configuration is critical?? Yes, that's of course
  382.    possible, because that's the way I use PPP. Use the PAD parameters for
  383.    the following settings:
  384.    
  385.        no escape character 1:0
  386.       
  387.        local echo off 2:0
  388.       
  389.        flow/control: RTS/CTS 5:2 (this is perhaps not a standard X.3
  390.       parameter)
  391.       
  392.        PAD should not react on XON/XOFF signals 12:0
  393.       
  394.    Other important values might be 3:0 4:1 9:0 10:0 13:0 14:0 15:0.
  395.    
  396.    You need a PAD that supports CTS/RTS flow control, because I don't know
  397.    about PPP software that supports XON/XOFF (although this would be
  398.    possible with the right async map).
  399.    
  400.                                                                      Markus
  401.                                                                            
  402. 3.8 use SunLINK PPP 1.0 to a CISCO through a sync line
  403.  
  404.    To connect successfully a Sun running 4.1.x and Sunlink PPP 1.0 to a
  405.    Cisco, you have to get patch 100941-02. Once it it installed, everything
  406.    works smoothly, as written in the documentation!
  407.    
  408.    My sun is an SS2, running 4.1.2 (sun4c architecture). We have a
  409.    'Transfix' digital leased line. That is: synchronous serial line,
  410.    64kbps.
  411.    
  412.    The problem without the patch is that everything seems to be OK, except
  413.    that the MTU given by a 'netstat -in' on device ppp0 is set to 0.
  414.    
  415.                                           -- Alain Mellan <amellan@acri.fr>
  416.                                                                            
  417. 3.9 use MacPPP 2.0.1 on non-US System 6 Macintoshes
  418.  
  419.    The current MacPPP Version (2.0.1) works on System 6 only if the system
  420.    folder is called "System Folder". On non-US systems (e.g. German
  421.    systems, where it is called "Systemordner"), MacPPP doesn't find some
  422.    file it needs. On System 7 Macs this problem isn't there.
  423.    
  424.    The workaround is, to rename the system folder to "System Folder". Other
  425.    programs will ask the system, how the system folder is named, and
  426.    continue to work.
  427.    
  428.    Thanks to hn277pk@unidui.uni-duisburg.de (Peter Koch) for summarizing
  429.    this information to me, who never used a Macintosh (with the exception
  430.    of playing Shufflepack CafΘ once).
  431.    
  432. 3.10 stop MacPPP to automagically dial without being asked to
  433.  
  434.    In article <x@y>, somebody@somewhere wrote:
  435.    
  436.  
  437. > MacPPP is launching when I boot up my Mac. I've checked the 'Startup
  438. > items' folder and it's not in there.  Does anyone know why?
  439.  
  440.    A couple of things to check for are 1) some of the snmp agents will
  441.    cause macppp (at least older versions) to try and dial up the selected
  442.    server - the solution is to disable the snmp manager extension. 2) you
  443.    might have network time selected to set the clock at boot up - turn off
  444.    this option and instead set it for once an hour or something like that.
  445.    
  446.                                        dsc@cac.washington.edu (David Comay)
  447.                                                                            
  448.    Anything that opens the IP driver will cause MacPPP to dial up it's
  449.    target. Particularly you will see this problem with ZapTCP. It will open
  450.    the IP driver at boot time, as well as everytime a program quits.
  451.    
  452.                                           Tom Kimpton <tom@dtint.dtint.com>
  453.                                                                            
  454.    
  455. -- 
  456. -- 
  457.     Ignatios Souvatzis
  458. -
  459. Solaris 2.1:  it's slow, needs 200M of disk space and comes without C compiler,
  460. which makes it remarkably close to MS-Windows. oleg@gd.cs.csufresno.edu
  461.  
  462.