home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / p / pcrte224.zip / PACKET.EXA < prev    next >
Text File  |  1992-06-09  |  10KB  |  203 lines

  1.  
  2.  
  3.  
  4.                     EXAMPLE INSTALLATION OF PCROUTE
  5.               ETHERNET - ETHERNET
  6.               WITH PACKET DRIVERS
  7.  
  8.  
  9.     Here we will do an example installation of PCroute, but in this
  10. case we will use packet driver software so that we can use two Micom
  11. Interlan NI5010 cards instead of the WD8003E.  The procedure is almost
  12. identical for other cards that have packet driver software. The network
  13. configuration we will assume that we have is 
  14.  
  15.  
  16.  
  17.            129.105.49.0                         129.105.5.0
  18.            255.255.255.0                        255.255.255.0
  19.     /--------------------------/         /--------------------------/
  20.          Thin   A         |                   |  Thick  B       |
  21.                           |   +-----------+   |                 |   +-------+
  22.                           | 1 |           | 3 |                 | 5 |       |
  23.                           +---+  PCroute  +---+                 +---+  GW   |
  24.                               |           |                         |       |
  25.                               +-----------+                         +-------+
  26.  
  27.         LOG HOST 129.105.35.2
  28.  
  29.     That is we are trying to connect two ethernets together.  We are
  30. using a class B number (129.105) but we are subneting it so that the
  31. first three tuples are the network part.   The router will have the
  32. address 129.105.49.1 on network A and 129.105.5.3 on network B.  Network
  33. A is thin ethernet (uses the BNC connector) and network B is thick (uses
  34. the DSub 15 connector) There is a gateway on network B that will be the 
  35. default.  Finally their is a UNIX host running syslogd whose IP address 
  36. is 129.105.35.2 that will act as a logging host.
  37.  
  38.  
  39. Step 1 Compiling software:
  40.     Let us assume that we have picked up the PACKPACK.exe executable
  41.     from accuvax.nwu.edu that has been precompiled with two packet driver
  42.     interfaces and renamed it to PCROUTE.EXE.  Alternatively we could 
  43.     have edited DECLARE.INC as described in COMPILE.DOC and compiled a 
  44.     version ourselves.  The precompiled version accesses the first card
  45.     though software interrupt 60H and the second card through software 
  46.     interrupt 61H.
  47.  
  48. Step 2 Configuring hardware
  49.      The packet driver isolates the hardware details of the ethernet
  50.     cards from PCroute.  Thus it is only necessary that the packet driver
  51.     and the card agree on parameters like I/O address and IRQ.  Thus we
  52.     can pick anything that does not conflict with other hardware (like
  53.     the floppy, or the tick counter).  Usually the factory default is
  54.     a good choice.  Also, in a bare-bones PC IRQ 2,3,4 and I/0 space
  55.     200H-2F0H are usually free (COM1 uses IRQ4 however).  For this example 
  56.     we set the NI5010 card for network A to I/O address 280H and IRQ 2 and 
  57.     the NI5010 card for network B to I/O address 290H and IRQ 3.
  58.  
  59.  
  60. Step 3 Software configuration
  61.         Copy pcroute.exe, and config.exe to a BOOTABLE floppy.  Create
  62.     and autoexec.bat file that has the single line 'PCROUTE' in it and
  63.     place the file on the floppy.  Next we get the packet driver
  64.     software from our favorite source (sun.soe.clarkson.edu 128.153.12.3
  65.     or wherever) and extract the packet driver for the ni5010 from 
  66.     the packet driver distribution.  Copy this file (NI5010.COM) to the 
  67.     floppy also.  Since the usage of the NI5010 command 
  68.     (which we discovered by executing it without arguments) is
  69.  
  70.     ni5010 <packet_int_no> <int_no> <io_addr>
  71.     
  72.     we edit an autoexec.bat file on the floppy so it has the following 
  73.     lines in it.
  74.  
  75.     ni5010 0x60 2 0x280
  76.     ni5010 0x61 3 0x290
  77.     pcroute
  78.  
  79.     This will load the two packet drivers needed by PCroute at the
  80.     proper software interupts and then run the router when the PC boots.
  81.  
  82.     Next we set our default drive to the floppy and type 'CONFIG'.  
  83.     The dialog to the config program looks like
  84.     (this is IDENTICAL to the dialog in ETHER.TXT)
  85.  
  86.     ------------------------------------------------------------------------
  87.         This program creates/edits the pcroute.cfg file
  88.  
  89.         Configuring an interface
  90.         Address for the interface [0.0.0.0] ? 129.105.49.1
  91.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  92.         Flag Meanings (if set)
  93.             Bit 0 (1h)  - Don't send routing updates out this interface
  94.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  95.             Bit 2 (4h)  - Proxy Arp for all subnets
  96.             Bit 3 (8h)  - Turn off directed broadcasts
  97.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  98.             Bit 5 (20h) - Broadcast using old (0's) format
  99.         Flags (HEX) for the interface [0H] ? 0
  100.         Routeing Metric (HEX) for the interface [1H] ? 1
  101.  
  102.         Configuring an interface
  103.         Address for the interface [0.0.0.0] ? 129.105.5.3
  104.         Subnet mask for the interface [0.0.0.0] ? 255.255.255.0
  105.         Flag Meanings (if set)
  106.             Bit 0 (1h)  - Don't send routing updates out this interface
  107.             Bit 1 (2h)  - Don't listen to routing updates from this interface
  108.             Bit 2 (4h)  - Proxy Arp for all subnets
  109.             Bit 3 (8h)  - Turn off directed broadcasts
  110.             Bit 4 (10h) - Turn off the issuing of ICMP redirects
  111.         Flags (HEX) for the interface [0H] ? 0
  112.         Routeing Metric (HEX) for the interface [1H] ? 1
  113.  
  114.         If you wish to configure static routes do so here.  To stop type a '.'
  115.  
  116.           Flag Meanings (if set)
  117.               Bit 0 (1h)  - Local route, do not propagate it
  118.               Bit 1 (2h)  - Transient route, subject to RIP protocol
  119.  
  120.         Network [0.0.0.0] ? 0.0.0.0
  121.         Gateway [0.0.0.0] ? 129.105.5.5
  122.         Metric (HEX)  [9H] ? 9
  123.         Flags (HEX) [0H] ? 2
  124.  
  125.         Network [0.0.0.0] ? .
  126.  
  127.         If you wish to forward bootp packets please enter the address
  128.           of the address to forward it to.  This address can be a
  129.           directed broadcast.  0.0.0.0  means don't forward
  130.  
  131.         Address to forward bootp packets [0.0.0.0] ? 0.0.0.0
  132.  
  133.         Once PCroute boots up, it sends all log messages to a network
  134.           host running a BSD UNIX syslogd daemon.  To disable
  135.           logging enter 0.0.0.0
  136.  
  137.         Host to send logging info to [0.0.0.0] ? 129.105.35.2
  138.         Mask Meanings (0 = Log, 1 = Don't log)
  139.             Bit 0 (1h)  - System
  140.             Bit 1 (2h)  - Routing
  141.             Bit 2 (4h)  - Monitor
  142.             Bit 3 (8h)  - Localtalk
  143.         Logging mask for this router [0H] ? 0
  144.         There are 8 routing 'levels' supported
  145.             0 - Emergency    1 - Alert    2 - Critical    3 - Error
  146.             4 - Warning      5 - Notice   6 - info        7 - Debug
  147.         Only messages with a level less than the logging level are sent
  148.         Logging level [0H] ? 7
  149.  
  150.     ------------------------------------------------------------------------
  151.  
  152.         The configuration procedure first describes each interface in the
  153.     router, giving its IP address and network mask.  The flags should 
  154.     normally be 0, but if you have any old (pre 1988) software), you should
  155.     probably set flag bit 3 and bit 4.  
  156.     
  157.         Next we set the routes.  In this example we rely TOTALLY on RIP
  158.     to provide ALL routing information.  This is the recommended method,
  159.     if at all possible.  Notice we do install a default route, but we set
  160.     bit 1, which makes this route expire in 90 seconds.  This route is
  161.     useful so that the PCrouter can reach the logging host even before it
  162.     has received RIP information from any host (presumably host 129.105.5.5).
  163.  
  164.         Since we do not need BOOTP forwarding, we disable it by entering
  165.     the address 0.0.0.0.
  166.  
  167.         Finally we set the logging information.  We set the logging host
  168.     to 129.105.35.2 and we set the logging filters to send everything that
  169.     is not a debugging message.  This is a good setting for a production
  170.     machine.
  171.  
  172.         Since in this example we are assuming that RIP is being used, we
  173.     should make sure that 129.105.5.5 is generating RIP packets.
  174.  
  175.         Finally we should log on to the logging host and (assuming it is
  176.     a BSD 4.3 system), and edit the /etc/syslog.conf file so it included
  177.     the following line
  178.  
  179.             local0.debug                        /usr/adm/pcroute
  180.  
  181.     Note that in this example we log all messages to the file /usr/adm/pcroute.
  182.     If you want them to go elsewhere consult the UNIX manual and change
  183.     /etc/syslog.conf accordingly.  Don't forget to kill -HUP the syslogd
  184.     process, to tell it that the configuration file has changed.
  185.  
  186. Step 4 Running and Testing.  
  187.  
  188.         When config completes, insert the floppy into the PCrouter and
  189.     boot the machine.   Then log on to some host on net A and try to PING 
  190.     129.105.49.1, also log on to net B and try pinging 129.105.5.3.  If
  191.     these work, try pinging 129.105.49.1 from net B and 129.105.5.3 from
  192.     net A.  If these work try telneting from the host on net A to the
  193.     host on net B.  Try telneting from net A to arbitrary hosts.  Finally
  194.     log on to the logging host and check to see if PCroute sent the 
  195.     message that it is 'coming up' to the logging host.  If all these tests 
  196.     succeed, congratulations!  you have installed your first PCrouter.
  197.  
  198.         If some of these tests fail, refer to the document TROUBLE.DOC
  199.     and follow the instructions there.
  200.  
  201.  
  202.  
  203.