home *** CD-ROM | disk | FTP | other *** search
/ Doom Fever / Doom_Fever-1995_Maple_Media.iso / dmutil / drivers.zip / IPXPKT.DOC < prev    next >
Text File  |  1991-02-08  |  7KB  |  164 lines

  1. IPXPKT
  2.  
  3. The standard packet drivers allow applications such as Novell and TCP/IP
  4. to share a single ethernet card in a workstation. A user logged onto
  5. a Novell fileserver may run TCP/IP to connect to a TCP/IP host on the
  6. same network. However, there are a number of circumstances in which
  7. this cannot be done:
  8.  
  9. 1. If the workstation is connected to a Novell fileserver or bridge
  10.    rather than the network backbone. Packet drivers are not available
  11.    for most non-ethernet topologies, and Novell servers and bridges will
  12.    only forward IPX packets, not TCP/IP packets which they do not
  13.    recognise.
  14. 2. Packet drivers are not available for all ethernet cards e.g.
  15.    Univation (we still have a few which haven't yet died).
  16.  
  17. A solution to the above problems has been developed by Paul Kranenburg of
  18. Leiden University in Holland. His IPXPKT program is a packet driver which sends
  19. and receives packets via Novell's IPX.COM rather than directly from the network
  20. card. It receives packets from an application, adds the IPX headers and passes
  21. them to IPX for transmission. It also does the converse i.e. receives packets
  22. >from IPX, strips off the IPX header and forwards the packet to the application.
  23.  
  24. IPXPKT allows any application configured with a packet driver interface
  25. (e.g. NCSA Telnet) to function from any workstation anywhere on a Novell
  26. network regardless of the network topology.
  27.  
  28. A typical network setup might be:
  29.  
  30.                    +-------------+        +----------+   +--------+
  31.                    | IPX <-> IP  |        | Unix Box |   |   VAX  |
  32.                    |router using |        |  TCP/IP  |   | TCP/IP |
  33.                    |   IPXPKT    |        |          |   |        |
  34.                    +-------------+        +----------+   + -------+
  35.      Ethernet          |     |                  |             |
  36.    ----------------------------------------------------------------------
  37.           |
  38.       +----------+
  39.       |  Novell  |    Arcnet, token ring, ethernet or whatever
  40.       |fileserver|---------------------------------------------------
  41.       |          |             |                         |
  42.       +----------+       +------------+             +------------+
  43.                          |    work    |             |    work    |
  44.                          |   station  |             |   station  |
  45.                          |      1     |             |      2     |
  46.                          +------------+             +------------+
  47.  
  48.  
  49. Because the packets are transmitted by IPX.COM, IPXPKT works on any
  50. topology supported by Netware. Version 2 of IPXPKT allows packets to
  51. be transmitted through Novell fileservers and bridges.
  52.  
  53. The IPX <-> IP router on the network backbone receives the IPX packets, strips
  54. off the IPX headers and retransmits Ethernet II packets which can be picked up
  55. by TCP/IP hosts. Additional software is required in the router to route the
  56. packets between the two interfaces. Phil Karn's NET.EXE is commonly used, but
  57. PCROUTE configured for one or two packet driver interfaces is an alternative.
  58. NET.EXE is available via anonymous FTP from THUMPER.BELLCORE.COM (128.96.41.1).
  59.  
  60. An autoexec.bat for the IPX <-> IP router is:
  61.  
  62.     wd8003e 0x60 0x7 0x360 0xd000
  63.     ipx
  64.     ipxpkt 0x61
  65.     net
  66.  
  67. NET is configured to use two Packet driver interfaces. The first sends and
  68. receives Ethernet II packets via the wd8003e packet driver which uses the WD
  69. Ethernet card configured to IRQ 7 and I/O Base 360h. The second sends and
  70. receives Ethernet II packets via IPXPKT using software interupt 0x61. IPXPKT
  71. sends and receives packets via IPX.COM, wrapping IPX headers around packets to
  72. be transmitted before passing them to IPX.COM, and stripping off IPX headers
  73. >from packets received from IPX.COM before passing them to NET. IPX.COM is
  74. configured to match the second Ethernet card in the router. 
  75.  
  76. Note that NET could be configured to communicate with the first WD card
  77. directly. I got it working first using the packet driver, and haven't
  78. bothered to change it.
  79.  
  80. The configuration I'm using for the second ethernet card is:
  81.  
  82. LAN Option: WD Star/Ethercard PLUS v2.11.3 (111188)
  83. Hardware configuration: IRQ=3, I/O Base=280h, ram at C400:0 for 8k, no DMA
  84.  
  85. NET requires a configuration file named AUTOEXEC.NET. An example is:
  86.  
  87. ip address [138.75.30.1]
  88. hostname ipxrouter
  89. #
  90. # Our VAX cluster and link to Canterbury use the network 138.75.10.0
  91. # Workstations using WD cards on the network backbone also use 138.75.10.0
  92. # All other Novell w/s (GNET, Univation etc) use 138.75.30.0
  93. #
  94. # This router uses the address 138.75.10.11 on the VAX side and 138.75.30.1
  95. # on the IPXPKT side
  96. #
  97. attach packet 0x60 wd0 15  1500 [138.75.10.11]
  98. ifconfig wd0 ipaddress 138.75.10.11 netmask 0xffffff00 broadcast 138.75.10.255
  99. #
  100. attach packet 0x61 pkt 15 1500 [138.75.30.1]
  101. ifconfig pkt ipaddress 138.75.30.1 netmask 0xffffff00 broadcast 138.75.30.255
  102. #
  103. route add [138.75.30]/24 pkt
  104. route add [138.75.10]/24 wd0
  105. #
  106. arp add [138.75.30.255] ether ff:ff:ff:ff:ff:ff
  107. arp add [138.75.10.255] ether ff:ff:ff:ff:ff:ff
  108. #
  109. start rip
  110. #
  111. rip add [138.75.30.255] 30
  112. rip add [138.75.10.255] 30
  113. #
  114. ip ttl 16
  115. #
  116. tcp window 1024
  117. #
  118. tcp mss 1024
  119. #
  120. start echo
  121. start discard
  122.  
  123. As mentioned above, version 2.0 or higher of IPXPKT must be used to
  124. establish connections with TCP/IP hosts through Novell servers or
  125. bridges. If version 2.0 is not in the packet driver distribution set
  126. (it wasn't in the 6.0a set), it can be obtained from Leiden University.
  127. Send a message to archive-server@cs.leidenuniv.nl containing
  128. 'send source ipxpkt.asm' as the first and only line.
  129.  
  130. To assemble IPXPKT, you will need the packet driver distribution and
  131. Borland's Turbo Assembler. Issue the following commands
  132.  
  133. tasm head           ;head.asm is in the packet driver distribution
  134. tasm ipxpkt         ;requires defs.asm from the packet driver distribution
  135. tasm tail           ;tail.asm is from the packet driver distribution
  136. tlink head ipxpkt tail
  137. exe2bin head.exe ipxpkt.com
  138.  
  139. Once the router is functioning, any application which uses a packet driver
  140. may be run from anywhere on the network. The bat file I use to run
  141. NCSA's FTP is:
  142.  
  143.    @echo off
  144.    map w:=sys:ncsa
  145.    w:ncsacfg
  146.    if not errorlevel 1 goto skip
  147.    w:marknet f:marknet.mrk
  148.    w:ipxpkt 0x60
  149.    :skip
  150.    w:ftpbin %1
  151.    del config.tel
  152.    if exist f:marknet.mrk w:relnet f:marknet.mrk
  153.  
  154. The program ncsacfg creates config.tel in the users current directory. It
  155. uses the workstations network address and physical station number to
  156. determine whether or not ipxpkt is needed, and concocts a unique IP
  157. address accordingly. Note that this program is specific to Lincoln's setup.
  158. Marknet and Relnet are used to remove ipxpkt from memory.
  159.  
  160. John Baird
  161. j.baird@lincoln.ac.nz
  162.  
  163.  
  164.