home *** CD-ROM | disk | FTP | other *** search
/ Caldera Network Desktop 1.0 / caldera-network-desktop-1.0.bin / doc / HOWTO / mini / SLIP+proxyARP < prev    next >
Text File  |  1995-10-14  |  6KB  |  164 lines

  1.  
  2.              Using SLIP And Proxy ARP To Connect
  3.       A Local Ethernet LAN To An Internet Connected LAN
  4.  
  5.                Dave Kennedy <davek@melita.com>
  6.                      February 4, 1994
  7.  
  8. ---------------------------------------------------------------
  9. $Id: slip-arp,v 1.2 1995/02/04 20:57:08 davek Exp $
  10. ---------------------------------------------------------------
  11. 0. Introduction
  12. 1. The Final Result
  13. 2. Setting It Up
  14. 3. Kernel And Software
  15. 4. Summary
  16. 5. Outstanding Issues And Questions
  17. 6. Acknowledgments
  18. 7. Further Reading
  19.  
  20. ---------------------------------------------------------------
  21.  
  22. 0. Introduction
  23.  
  24. Very quickly, I have a small Ethernet LAN at home that I want to
  25. be connected to the Internet.  Since, I do not have my own network
  26. address I wanted to piggyback on the office's network address.  I
  27. succeeded using SLIP and proxy ARP.  This document quickly describes
  28. how I did it.
  29.  
  30. ---------------------------------------------------------------
  31.  
  32. 1. The Final Result
  33.  
  34. First, I'll present the final result and then describe how to get there.
  35.  
  36. The final network is all on a Class C network (a.b.c.0):
  37.  
  38.            Internet
  39.               |               
  40.       o-------+---------+----------------o     <- Remote Ethernet
  41.                         | .126
  42.                     NetBlazer
  43.                         | .215                 <- SLIP (via 14.4 modem)
  44.                        gw
  45.                         | .253
  46.       o-----------------+--------+-------o     <- Local Ethernet
  47.                                  | .254 
  48.                                 mus
  49.  
  50. ---------------------------------------------------------------
  51.  
  52. 2. Setting It Up
  53.  
  54. The keys to getting this working are routing and proxy ARP.
  55.  
  56. Here is gw's routing table:
  57.  
  58. Kernel routing table
  59. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  60.     a.b.c.254   *               255.255.255.255 UH    0      0     5628 eth0
  61.     a.b.c.253   *               255.255.255.255 UH    0      0        0 eth0
  62.     a.b.c.126   *               255.255.255.255 UH    0      0       22 sl0
  63. 127.0.0.0       *               255.0.0.0       U     0      0       32 lo
  64. default             a.b.c.126   *               UG    0      0        9 sl0
  65.  
  66. This table was created with the following commands:
  67.  
  68.     1. The SLIP connection was established which created the default
  69.        gateway entry and the a.b.c.126 entry.
  70.  
  71.     2. ifconfig eth0 a.b.c.253
  72.  
  73.     3. route add a.b.c.253 eth0
  74.  
  75.     4. route add a.b.c.254 eth0
  76.  
  77. Gw is now set up to talk to both eth0 and sl0.  (This might be a good
  78. time to note that my kernel has IP forwarding configured.)  The reason for
  79. the explicit route of a.b.c.253 may not be needed, but ping .253 from .253
  80. without the route causes the ping to take the default route out the SLIP
  81. link.
  82.  
  83.  
  84. Here is mus's routing table:
  85.  
  86. Kernel routing table
  87. Destination     Gateway         Genmask         Flags MSS    Window Use Iface
  88.     a.b.c.253   *               255.255.255.255 UH    1436   0       59 eth0
  89. 127.0.0.0       *               255.0.0.0       U     1936   0       52 lo
  90. default             a.b.c.253   *               UG    1436   0    21661 eth0
  91.  
  92. This table was created with the following commands:
  93.  
  94.     1. ifconfig eth0 a.b.c.254
  95.  
  96.     2. route add a.b.c.253 eth0
  97.  
  98.     3. route add default gw 192.68.22.253
  99.  
  100. Now, at this point I attempted to ping the NetBlazer.  I could see the
  101. packets being sent out the modem (SD was flashing), but there was no
  102. response.  This was good since it indicated that gw was getting packets
  103. in on eth0 (Ethernet) and sending them out sl0 (SLIP).
  104.  
  105. The next step is to get the other side of the SLIP connection (NetBlazer)
  106. to recognize and know how to talk to me.  This was done by using its
  107. proxy arp command.
  108.  
  109.     Usage: proxy <hostid> ether|token|<interface> <mac-addr>
  110.  
  111.     proxy a.b.c.253 ether 00:c0:6d:11:66:d3
  112.     proxy a.b.c.254 ether 00:c0:6d:11:66:e4
  113.  
  114. At this point I was able to ping the Internet from mus.  And all was well
  115. with the world.  :)
  116.  
  117. ---------------------------------------------------------------
  118.  
  119. 3. Kernel And Software
  120.  
  121. The kernel used on gw was 1.1.88 with IP Forwarding configured.  This
  122. is required.  The kernel on mus was also 1.1.88, but IP Forwarding
  123. was not configured.  This does not matter.
  124.  
  125. It's also worth noting that PPP could have been used instead of
  126. SLIP just as easily.
  127.  
  128. ---------------------------------------------------------------
  129.  
  130. 4. Summary
  131.  
  132. ---------------------------------------------------------------
  133.  
  134. 5. Outstanding Issues And Questions
  135.  
  136. The main question I have came up while writing this.  When I checked 
  137. the ARP table on the NetBlazer, my ARP entries were no longer there, but
  138. everything was still working.  I readded the entry for mus and it made
  139. no difference.  If anyone has ideas on this, let me know.
  140.  
  141. ---------------------------------------------------------------
  142.  
  143. 6. Acknowledgments
  144.  
  145. My thanks to John Garnett <garnett@actlab.rtf.utexas.edu> for his
  146. post Dec 21, 1994 "A Guide on Using SLIP with ProxyARP..."  I'm not
  147. so sure that my document is anything more than a rehash of what he
  148. wrote other than I'm using a NetBlazer on the Internet side and he
  149. had a modem attached to a computer.  Anyway, thanks, John!
  150.  
  151. ---------------------------------------------------------------
  152.  
  153. 7. Further Reading
  154.  
  155. Dawson, Terry; "NET-2-HOWTO."
  156. Garnett, John; "A (client) SLIP Guide for Linux."
  157. Lots of other HOWTO's.
  158.  
  159.  
  160. -- 
  161. | Dave Kennedy (davek@melita.com)                Voice: 404-409-4575 |
  162. | UUCP: emory!melupl!davek                       Whois: DK87         |
  163.  
  164.