home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac_os2 / sl_faq03.zip / SL_FAQ03.TXT < prev   
Text File  |  1994-07-17  |  17KB  |  345 lines

  1. ============================================================================
  2. ================= SLIP for OS/2 Frequently Asked Questions =================
  3. =================         Version 0.3   17 July 1994       =================
  4. =================              Clark K. Gaylord            =================
  5. =================              CGaylord@VT.Edu             =================
  6. ============================================================================
  7.  
  8. === 7.1 ===
  9. Q. What is SLIP?
  10. A. SLIP (or SL/IP) stands for Serial Line Internet Protocol.  It defines a
  11. protocol for connecting to a TCP/IP network over a serial line (via a
  12. modem or null modem).  Serial communications are slower than direct 
  13. network connections, but can sometimes be useful.  IBM's TCP/IP package
  14. does support SLIP, as do FTP Software and TCP/2.  There is also a port of 
  15. KA9Q that is freeware.  Unless otherwise noted, this section will refer 
  16. specifically to IBM's product, though much may generalize to other 
  17. products as well.  
  18.  
  19. === 7.2 ===
  20. Q. Is there a free (or cheap) implementation of SLIP?
  21. A. Reputedly, yes, but I have not talked to anyone actually using it.  It 
  22. is on the ftp sites as os2nosv4.zip.  It is also known as PMNOS.  It is a 
  23. port of KA9Q for DOS, the packet radio entworking package.  The KA9Q
  24. docs should be retrieved from a DOS site as well as the binaries and docs
  25. for OS/2.  
  26.    You can also get the Trumpet Winsock implementation and run just
  27. winsock.  This works fine, but is restricted to your SLIP being in one 
  28. WinOS2 session.  Of course, you can't use OS/2 clients if you choose this 
  29. setup.
  30.  
  31. === 7.2.1 ===
  32. Q. How do I set up PMNOS?
  33. A. This is a frequently asked and seldom answered question.  Recently, 
  34. though, David Kraus (kraus@cig.mot.com) of Motorola posted this
  35. information.  As always, your mileage may vary.
  36.  
  37. --- Dave Kraus' stuff starts here ---
  38. Ok, here's what I have, and what I'm dealing with.
  39.  
  40. We've got a dynamic IP arrangement on our Annex server, with an ACE
  41. security system requiring a userid and time-generated pseudo-random number
  42. generator password.  Thus, this autoexec.nos isn't going to get you 100%
  43. logged in.  It's set up to configure my port and get all of the
  44. information other than the IP configured beforehand.  Then, I do a 'tip
  45. sl0', do modem dial commands, log in, set my IP, 'reset 1' (getting rid of
  46. the tip session), and I'm done...  Anyway, here's the AUTOEXEC.NOS, with
  47. comments:
  48.  
  49. hostname oog.cig.mot.com
  50. domain suffix cig.mot.com.    # the trailing '.' is significant
  51. domain cache size 40        # don't know why - I don't care if I cache
  52. domain addserver XXX.XXX.XXX.XXX # IP of my first nameserver
  53. domain addserver XXX.XXX.XXX.XXX # IP of my second nameserver
  54. # The attach set to COM2, IRQ 3, slip mode, called sl0, 16k buffers, 1006 mtu,
  55. # 38400 baud, full flow control
  56. attach asy 0x2f8 3 slip sl0 16384 1006 38400 crv
  57. route add default sl0        # default route setup-SLIP is point-to-point
  58. ifconfig sl0 netmask 255.255.0.0       # Get this from your network admins
  59. ifconfig sl0 broadcast xxx.xxx.xxx.xxx # get this from your network admins
  60. echo refuse    # something in the nosview stuff said do this for a unix system
  61.  
  62. Ok, that inits things.  Then I do a 'tip sl0', dial, log in, etc.  as
  63. above.  When I've kicked the Annex box into SLIP mode, I go back to the
  64. main PMNOS window, and do:
  65.  
  66. reset 1
  67. reset 1
  68.  
  69. Why I have to reset the tip session twice, I don't know, but after the
  70. second one, it goes away.  Then I do:
  71.  
  72. ifconfig sl0 ipaddress XXX.XXX.XXX.XXX
  73.  
  74. to configure the IP that the Annex box told me for the sl0 device.  Once
  75. that's done, I'm set to start playing...
  76.  
  77. This should get you at least FTPing and telneting (albeit with a really
  78. STUPID telnet window).  As far as smtp and nntp, whatever the HAM guys say
  79. to do should be the same.  The hard part is getting the interface
  80. configured and talking.
  81.  
  82. Build up your autoexec.nos (take out the comments - I don't know if
  83. they're valid syntax like that; I just put them in for the example), get
  84. your IP configured, and you should at least be able to ping to an IP.  If
  85. things look weird, do a 'domain trace on', and you'll see more information
  86. on what's happening with the name server as it's going through it's thing.
  87.  
  88. Now, I don't want a million messages saying, "This doesn't work for me!".
  89. This works for ME right now, given what I want to do with it.  I hope it's
  90. a starting point for everybody else.  If there are commands that seem to
  91. be 'magic', or if this whole thing is a 'magic incantation' I'd recommend
  92. picking up 'TCP/IP Network Administration' by Craig Hunt (O'Reilly &
  93. Associates, Inc., ISBN 0-937175-82-X), and learn the concepts behind
  94. TCP/IP networking before you go much further.  The concepts behind PMNOS
  95. are very similar, although syntax can be rather different at times.
  96.  
  97. Remember, I'm no expert.  I finally hacked at it enough over the last
  98. couple of days to get something working with a configuration that's pretty
  99. simplistic.  My main goal was to get ftp working - nothing more.  (If I want
  100. to get into anything more, I reboot into Linux and dial back in with all
  101. the decent tools available to me under that environment.)  If you're
  102. looking for smtp and nntp transfers, don't ask me, ask the HAMs out there
  103. that actually use this thing...
  104. --- END of David Kraus' stuff ---
  105.  
  106. === 7.3 ===
  107. Q. How do I install SLIP?
  108. A. When you install the TCP/IP base product, SLIP support is also
  109. installed.  You can configure SLIP to start with by using the Network 
  110. Configuration notebook.  You will need your SLIP IP node and the 
  111. destination node, if applicable.
  112.  
  113. === 7.4 ===
  114. Q. Do I need LAPS to run SLIP?
  115. A. No.  You only need LAPS to use an ethernet or token-ring card.  If you
  116. have a SLIP only setup, you do not need LAPS, and you can ignore warnings 
  117. to the contrary.  You may need to manually edit your CONFIG.SYS, though.
  118.  
  119. === 7.5 ===
  120. Q. What do I need in my CONFIG.SYS?
  121. A. The minimum CONFIG.SYS statements are:
  122.       DEVICE=X:\tcpip\bin\inet.sys
  123.       DEVICE=X:\tcpip\bin\ifndisnl.sys
  124.       RUN=X:\tcpip\bin\CNTRL.EXE
  125.    I also recommend
  126.       CALL=c:\os2\mode.com  com3, 57600, xon=off, dtr=on, octs=on, rts=on,
  127.          buffer=on, databits=8, parity=none 
  128. or similar mode command.  There are no environment variables that are SLIP 
  129. specific.  If you have an ethernet card, you will need ifndis.sys instead 
  130. of ifndisnl.sys; ifndisnl.sys takes a little less memory, so use it if 
  131. you can.
  132.  
  133. === 7.6 ===
  134. Q. What is SLIP.CFG?
  135. A. In your \tcpip\etc directory is a SLIP.CFG file.  This file contains
  136. information that SLIP reads when loading.  A typical SLIP.CFG might look 
  137. like:
  138.    interface sl0
  139.      {
  140.        device=COM3,
  141.        mtu=296,
  142.        compression=on,
  143.        attachcmd=MySlipUp,
  144.        attachparms="555-1234 myid mypass"
  145.      }
  146.  
  147. === 7.7 ===
  148. Q. What SLIP utilities are available and what do I use them for?
  149. A. SLIPTERM.EXE is a dumb terminal program that can be used while SLIP is
  150. up. It is useful for manually connecting.  SLIPWAIT.EXE will wait up to a 
  151. given amount of time or until SLIP is up.  SLIPCFG.EXE is a SLIP.CFG 
  152. parser that can help you debug SLIP.CFG.  SLIPHOLD.EXE holds a serial port
  153. open when SLIP isn't active.  These are all in \tcpip\bin.  Also, there is 
  154. some shareware/freeware on the net, including SLIPHANG, which helps ensure
  155. that the phone is hung up after taking SLIP down.  At the time of this
  156. writing (shortly after the release of the the second CSD for TCP/IP 2.0),
  157. SLIPHANG reportedly causes SLIP to hang (i.e., TRAP) rather than hang-up.
  158.  
  159. === 7.8 ===
  160. Q. I thought I installed it right, but now it doesn't work.  What do I do?
  161. A. Disable all connection scripts (do not include an attachcmd= phrase in
  162. SLIP.CFG).  Start SLIP.EXE; start SLIPTERM.EXE.  Manually connect using 
  163. SLIPTERM.  After you connect, hit F10 to exit SLIPTERM.  Then issue your 
  164. IFCONFIG command (IFCONFIG sl0 my.ip.node [destination.ip.node] ...)  Add
  165. your router (ROUTE ADD DEFAULT router.ip.node 1), if applicable.  Look into
  166. ROUTED (as in Route-D).  Some people have found this necessary in order to
  167. communicate with people outside their subnet.
  168.    If this doesn't work, try running MODE.COM prior to starting SLIP.EXE.
  169. Also, make sure compression and mtu are correct in SLIP.CFG.  Common mtu's 
  170. are 296 (especially with compression), 1006, and 1500 (especially without 
  171. compression).  Also, try a slower modem speed or turning off modem 
  172. compression.  This is especially likely if you have an external high speed 
  173. modem, as you may not have a 16550 UART.  You could have to tweak the 
  174. modem setup quite a bit, depending on what modem you are using, what UART 
  175. you have, and what kind of modem you are connecting to.  Refer to your 
  176. modem manual for more details.  
  177.  
  178. === 7.9 ===
  179. Q. Why do I get 'network is down' when I start SLIP?
  180. A. The default SETUP.CMD has an ARP command in it.  ARP is only used for 
  181. interface cards, so if you have a SLIP only setup, it replies that there 
  182. is no interface card by using this rather cryptic message.  It shouldn't 
  183. hurt anything, but you can take it out of SETUP.CMD to prevent the 
  184. message.
  185.  
  186. === 7.10 ===
  187. Q. How do I get the phone to hang up when SLIP is taken down?
  188. A. First, try fiddling with your serial port's MODE.  Especially, try 
  189. DTR=ON.  If this still doesn't work, get SLIPHANG off the ftp site and try
  190. it (but, see 7.7).  I also found that toggling my fax program off and on 
  191. reset my comm port and hung up the phone.
  192.  
  193. === 7.11 ===
  194. Q. Can I run SLIP over more than one comm port at a time?
  195. A. Beginning with the second CSD (6/94) to TCP/IP 2.0, you can run multiple
  196. serial interfaces.  These are sl0, sl1, etc.  Accordingly, many of the 
  197. SLIP utilities (e.g., SLIPTERM) now allow an interface parameter ( -sln 
  198. where n=0, 1, ....)
  199.  
  200. === 7.12 ===
  201. Q. How can I improve SLIP performance?
  202. A. The best way to improve SLIP performance is to get an ethernet 
  203. connection and stop using SLIP!  But assuming you really have to use SLIP,
  204. get the fastest modem connection you can, and use your modem's 
  205. compression, especially if it is MNP 5 or above.  MNP 5 and above will 
  206. almost definately improve performance for anything except file transfers 
  207. of compressed files; MNP 5 does not usually improve these file transfers 
  208. and may hurt them.  Finally, using SLIP header compression (setting 
  209. compression=on in SLIP.CFG) will improve performance somewhat, as will 
  210. increasing mtu size (usually).  
  211.  
  212. === 7.13 ===
  213. Q. I have an ethernet connection in my office.  How can I connect to my
  214. office machine from home?  
  215. A. Try to get an IP node for the home computer.  If you cannot get one 
  216. from your local IP Czar, then you can still set this up, but it is a 
  217. little more inconvenient.  You will need SLIP set up on both the office 
  218. and home machine.  Set the office to be in autoanswer mode (either attich 
  219. AUTOANS.CMD or go into SLIPTERM and issue AT commands manually -- don't 
  220. forget to exit SLIPTERM).  Then from home, dial in.  Once the office 
  221. answers, you are connected.
  222.    Now, you need to tell each end of your SLIP connection who is who. 
  223. Recall the IFCONFIG syntax: 
  224.       IFCONFIG interface my.ip.address destination.ip.address
  225. So, at the office, you would say:
  226.       IFCONFIG sl0 office.ip.address home.ip.address
  227. and at home you would say
  228.       IFCONFIG sl0 home.ip.address office.ip.address
  229. Then you may find you need to tell the home machine who the default router
  230. is (same as office's default router).  This sets up the connection.
  231.    The other issue is whether your home machine has a valid ip address. 
  232. If you cannot get a valid ip address from your local IP Czar, you can make
  233. one up for the purposes of the office machine and home machine talking to 
  234. each other -- you just can't tell the rest of the world about it!  But if 
  235. you have a valid IP address for home, you may need to publish it.  You do 
  236. this from your office machine with the ARP -S command:
  237.       arp -s home.ip.address xx:xx:xx:xx:xx:xx pub
  238. where xx:xx:...:xx is the *hardware* address of the ethernet card (look in
  239. \ibmcom\lantran.log for "node address").  This tells the rest of the world 
  240. that the way to get to home.ip.address is to send data to ethernet card 
  241. xx:xx:...:xx.  
  242.  
  243. === 7.14 ===
  244. Q. What REXX services are available for autoconnect scripts?
  245. A. There are three documented functions available to SLIP scripts: 
  246. slip_com_input, slip_com_output, and slip_getch.  These, respectively, 
  247. read data from the comm port, write data to the comm port, and read a 
  248. character from the keyboard without echoing to the screen.  These are 
  249. documented in detail in the TCP/IP Installation and Administration Guide, 
  250. section 9.3.2.2.
  251.  
  252. === 7.15 ===
  253. Q. Hitting Ctrl-C seems a bit crude.  Is there any better way to end SLIP?
  254. A. Not without rolling your own.  You could help automate the process 
  255. using KILLEM or a similar process killer, but that is probably no less 
  256. crude (though may be useful for unattended or remote use).
  257.  
  258. === 7.16 ===
  259. Q. My phone line often drops carrier.  How can I keep SLIP up?
  260. A. The best way is to try to get cleaner connections.  Have an electrician
  261. or phone repair person check your wires if necessary.  If you still have 
  262. chronic problems, you have to have some method of reconnecting when 
  263. carrier goes down.
  264.    There is no feature to automatically do this. The way some people do
  265. this is to constantly monitor the line (using ping or similar utility). 
  266. If the line goes down, then kill the SLIP process and restart it.  The 
  267. problem with this method is that you will often lose all applications 
  268. running over the interface when you kill SLIP.  The way to address this is
  269. to write a program that shares the comm port with SLIP (like SLIPTERM 
  270. does), and have it reconnect.  The problem with this is that the program 
  271. interface is not documented and likely to change.  Of course, if you are 
  272. sitting at the computer and hear the modem click, you just open SLIPTERM 
  273. and manually reconnect.
  274.  
  275. === 7.17 ===
  276. Q. I want to write a program to interface with SLIP after it is up, like
  277. SLIPTERM does.  Is there any way to do this?  
  278. A. First let me emphasize that the information here is NOT documented, NOT
  279. supported, and LIKELY to change.  So: USE AT YOUR OWN RISK AND DON'T 
  280. BITCH IF IT DOESN'T WORK!  In particular, there is probably more that can 
  281. be done after the June '94 CSD.  This CSD implemented a multi-interface 
  282. SLIP (allowing sl1, sl2 ... in addition to sl0) and, while the mentioned 
  283. semaphores apparently still exist, they are not interface dependent.  It 
  284. seems to me there must be more, but this is all I have so far.  That being 
  285. said, and you being properly forwarned, yes, you can tell SLIP to shut up 
  286. and let you use the comm port.
  287.    At the risk of implicating Dave Bolen, I would like to share his notes 
  288. on this with you:
  289.  
  290. --- Dave Bolen's stuff starts here ---
  291. SLIP Utility Program Access to IBM OS/2 Slip Driver v1.0  -- David Bolen
  292.  
  293. The following should be done by the program wanting to tell the SLIP
  294. driver it would like access to the COM port:
  295.  
  296.      Initialization
  297.         - Check if the SLIP driver is running by opening the system
  298.           semaphore \sem32\slip\monitor.
  299.         - Open the following three system semaphores:
  300.                 \sem32\slip\com\pause               (com_pause)
  301.                 \sem32\slip\com\paused              (com_paused)
  302.                 \sem32\slip\com\continue            (com_continue)
  303.  
  304.      COM Port Request
  305.         - Post com_pause
  306.         - Wait for com_paused
  307.  
  308.      --- Access COM port ---
  309.  
  310.      COM Port Release
  311.         - Post com_continue
  312.  
  313. The above should not be considered a "published" procedure or API -
  314. but at the same time, it's what is part of v1.0.  It will likely
  315. change in subsequent versions when the SLIP driver starts supporting
  316. multiple interfaces, and provides a more extensive functional
  317. interface for external utilities.
  318.  
  319. Once the SLIP driver posts com_paused, although the driver still has a
  320. shared open on the port, it will not issue any I/O requests to the
  321. port until the com_continue semaphore is posted.  Thus, any other
  322. utility (including the one that requested the pause as is the case
  323. with SLIPTERM) can access the port as long as they issue the DosOpen
  324. in sharing mode (OPEN_SHARE_DENYNONE).
  325. --- Dave Bolen's stuff ends here ---
  326.  
  327. === 7.18 ===
  328. Q. Can I use PPP?
  329. A. To my knowledge, there is no PPP for OS/2 yet, though there are 
  330. constantly rumors of people working on it and IBM planning on releasing 
  331. one.  Reputedly, a venture to produce a freeware TCP/IP suite for OS/2 has
  332. begun by working on PPP.  I have not heard the recent status of this.
  333.  
  334. === 7.19 ===
  335. Q. Where can I find out more about SLIP?
  336. A. The docs, of course.  Chapter 9 of the Installation and Administration 
  337. is all about SLIP.  Also, some general TCP/IP administration books discuss 
  338. it (anyone have any specific text recommendations?)  One that has been 
  339. often recommended is 'TCP/IP Network Administration' by Craig Hunt (O'Reilly &
  340. Associates, Inc., ISBN 0-937175-82-X.  Then there is RFC1055:  Nonstandard 
  341. for Transmission of IP Datagrams Over Serial Lines:  SLIP by J.L.  Romkey, 
  342. available wherever RFCs are sold; they can be ftp'ed from nic.ddn.mil 
  343. among many other places worldwide.
  344.  
  345.