home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / ppp-faq / part3 < prev    next >
Encoding:
Internet Message Format  |  1993-12-14  |  18.4 KB

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