home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / ppp-faq / part3 < prev    next >
Encoding:
Text File  |  1995-07-25  |  17.5 KB  |  434 lines

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