home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / internet / ppp_3.faq < prev    next >
Encoding:
Text File  |  2003-06-11  |  18.1 KB  |  437 lines

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