home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / ncsatlnt / tel23doc.zip / CHAP.7 < prev    next >
Text File  |  1991-07-01  |  40KB  |  1,146 lines

  1.     
  2.  
  3.  
  4. Installation and Configuration    7.1
  5.  
  6.  
  7.  
  8.  
  9. June 1991
  10.  
  11.  
  12.                                                                 
  13.  
  14.  
  15.  
  16.  
  17.  
  18. 7.1    NCSA Telnet
  19.  
  20. Installation and Configuration    7.1
  21.  
  22. National Center for Supercomputing Applications
  23.  
  24. June 1991
  25.  
  26.         6/30/91
  27.  
  28.  
  29.  
  30.  
  31. Chapter 7    Installation and Configuration
  32.  
  33.  
  34.  
  35. Chapter Overview
  36. Installing the Distribution Files
  37. Sample Configuration
  38. Required Configuration Information
  39. The TELNET.BAT File
  40. Command Line Options
  41. The Configuration File
  42. Overview
  43. Syntax for Entries
  44. PC Information Entries
  45. Host-Specific Parameters
  46. Convertion of UNIX /etc/hosts Files
  47. Hardware Options
  48. Combined Ethernet Drivers
  49. Performance Tuning
  50. RARP for Dynamic IP Address Assignment
  51. BOOTP for Dynamic IP Address Assignment
  52. Interrupts
  53. Domain Name Lookup
  54. FTP Password Protection
  55. Compatibility Notes
  56. Ping
  57. VT102
  58. FTP
  59. Terminate and Stay Resident (TSR) Programs
  60. NCSA Telnet
  61. Limitations
  62.  
  63. Chapter Overview
  64.  
  65. This chapter contains information for system administrators 
  66. (and other experienced users) to use in installing and customizing 
  67. a telnet system. It describes how to install NCSA Telnet, change 
  68. the configuration file, the domain name lookup, how to protect FTP 
  69. transfers with passwords, and discusses compatibility issues.
  70.  
  71.  
  72. Installing the Distribution Files
  73.  
  74. Three files are required for the standard configuration of NCSA 
  75. Telnet. The combination of these with the use of the DOS path 
  76. command allows you to call up NCSA Telnet from any 
  77. subdirectory on your PC. 
  78.  
  79.  
  80. TELNET.BAT
  81. This batch file begins the execution of NCSA Telnet. It must be in a 
  82. directory that is in your DOS path. It contains the locations of the 
  83. TELBIN.EXE and CONFIG.TEL files. You must update this batch 
  84. file (with any standard editor) when you change the location of 
  85. TELBIN.EXE or CONFIG.TEL.
  86.  
  87.  
  88. TELBIN.EXE
  89. This file is the program itself. You can place it in any directory. 
  90. The TELNET.BAT file calls up this program when it runs.
  91.  
  92.  
  93. CONFIG.TEL
  94. Config.tel is the configuration file that contains your PC's IP 
  95. address, the kind of Ethernet hardware that you are using, and 
  96. other information about your network. Gateways, nameservers, 
  97. and setup information are stored here. The TELNET.BAT file 
  98. tells TELBIN.EXE where it can find this file on your disk.
  99.  
  100.  
  101. Sample Configuration
  102. Suppose you want to install NCSA Telnet in a directory called 
  103. \ncsa on your hard disk drive, drive C. Copy the TELBIN.EXE 
  104. and CONFIG.TEL files to C:\ncsa. Suppose also that you have a 
  105. particular directory C:\bat, which you use to store commonly 
  106. used batch files. Your DOS path (see DOS manual) contains an 
  107. entry for C:\bat already. Copy the TELNET.BAT file into 
  108. C:\bat. You must now edit the TELNET.BAT file to update the 
  109. locations of the TELBIN.EXE and CONFIG.TEL files. When 
  110. finished, it should look something like this:
  111.  
  112. if .%1 == . goto defh
  113. c:\ncsa\telbin -h c:\ncsa\config.tel %1 %2 %3 %4 %5
  114. goto exith
  115. :defh
  116. c:\ncsa\telbin -h c:\ncsa\config.tel ncsab
  117. :exith
  118.  
  119.  
  120. This batch file calls up TELBIN.EXE at a known location and 
  121. passes it the -h parameter, indicating the location of the 
  122. CONFIG.TEL file. In addition to the file locations, the fifth line 
  123. indicates which machine NCSA Telnet should connect to by 
  124. default.
  125.  
  126.  
  127. Required Configuration 
  128. Information
  129. To set up a new configuration file, you will need a standard text 
  130. editor. The template provided with NCSA Telnet is set up to reflect 
  131. commonly used default values. It may be worth the time to go 
  132. through the list of configuration options in this chapter and fine-
  133. tune your configuration to match your local computing situation 
  134. more closely. In the meantime, you must install the following 
  135. fields in the configuration file for NCSA Telnet to operate.
  136.  
  137. Field    Meaning
  138.  
  139. myip=192.17.20.10    You must provide a unique IP address 
  140.     for each machine on your network. IP 
  141.     addresses must be installed in the 
  142.     configuration file of each computer.
  143.  
  144. netmask=255.255.255.0    This field is the subnet mask, (in decimal),  
  145.     and is required if you are using subnets on 
  146.     your network. 
  147.  
  148. hardware=3C501    NCSA Telnet can support several 
  149.     different brands of Ethernet adapters. 
  150.     Each brand has its own unique 
  151.     identifier which you must set for the 
  152.     hardware parameter. See the 
  153.     hardware section in this chapter for a 
  154.     complete list of settings. Most brands 
  155.     also require address and ioaddr to be 
  156.     set.
  157.  
  158. video=ega    If you wish to use the Tektronix 
  159.     graphics options, you must provide the 
  160.     correct screen type. Incorrectly 
  161.     installed, this option can crash NCSA Telnet. 
  162.     The  alternative is to install the tek=no 
  163.     option.  Legal types are cga, ega, 
  164.     hercules, no9, mono, ega43, vga50.
  165.  
  166. gateway=1    If you are going to be using gateways 
  167.     to reach other networks, at least one 
  168.     machine must be designated as a 
  169.     gateway, using this gateway option 
  170.     after the name field. The entry for each 
  171.     gateway must include a hostip  field, 
  172.     according to the configuration file 
  173.     directions in this chapter.
  174.  
  175.  
  176. The TELNET.BAT File
  177. The actual .exe file that the PC executes is not named telnet.exe. A 
  178. batch file called TELNET.BAT loads the software in several steps 
  179. that are normally transparent to you. Here is a typical entry in 
  180. TELNET.BAT: 
  181.  
  182. C:>\apps\telbin -h c:\apps\config.tel %1 %2 %3 %4
  183.  
  184.  
  185. The TELNET.BAT file, which must be in the DOS path, specifies 
  186. completely where the program is and where the configuration file 
  187. is found. If you do not explicitly specify a machine name, the 
  188. system connects to a previously assigned default machine name.
  189.  
  190.  
  191. Command Line Options
  192. NCSA Telnet goes through two stages as you load it. The program 
  193. first finds the TELNET.BAT. (This file must be in the DOS path so 
  194. it can be found first.) Secondly, in the batch file, the location of the 
  195. TELBIN.EXE file and any command line defaults are used to call 
  196. up the program. We've included many command line arguments 
  197. for you in the batch file, TELNET.BAT; you can add others when 
  198. you run the telnet batch file. This following command gives a full 
  199. description of those options. The syntax for loading NCSA Telnet 
  200. with options is:
  201.  
  202. C:\ > telnet [options] [machine1 machine2 ...]
  203.  
  204. The options must precede the list of machine names on the 
  205. command line. You may order the options in any way, but you 
  206. must include the parameters for each option. Include one space 
  207. between the options and between each option and the parameter for 
  208. that option. The options are:
  209.  
  210. Option        Function
  211.  
  212. ?    Shows command line options. This option causes 
  213.     NCSA Telnet to display a summary version 
  214.     of the command line options instead of 
  215.     initiating the program. 
  216.  
  217. -c colorcode    Sets the default color for screens. The 
  218.     colorcode string is six digits long and follows the 
  219.     coding scheme documented later in this chapter.
  220.  
  221. -h filename    Specifies where to find the configuration file. 
  222.     Normally, this option is included in TELNET.BAT, 
  223.     and you never have to use it explicitly. If you do 
  224.     not specify the configuration file there or on the 
  225.     command line, there must be a file named 
  226.     CONFIG.TEL in the default directory, or you must 
  227.     set an environment variable named CONFIG.TEL 
  228.     to your configuration file. If a suitable 
  229.     configuration file cannot be found according to 
  230.     these rules, NCSA Telnet terminates. 
  231.  
  232.     For example, if you name your configuration file 
  233.     "TELNET.CFG", and the file resided in the 
  234.     directory C:APPS, you would put the following 
  235.     command in your AUTO.EXEC.BAT file:
  236.  
  237.     "set CONFIG.TEL=C:\APPS\TELNET.CFG"
  238.  
  239.     NOTE: filename should include a 
  240.     pathname. For example, 
  241.  
  242.     C:\bat\config.tel
  243.  
  244.     NCSA Telnet uses the filename specified for the -h 
  245.     parameter first. If that filename isn't available, it 
  246.     first looks in an environment variable, then the 
  247.     current directory, then all the directories specified 
  248.     by the "PATH" environment variable in order to 
  249.     find the filename.
  250.  
  251. -s    Enters server mode. NCSA Telnet waits for 
  252.     external FTP and rcp requests. It allows you to 
  253.     leave your PC and access files there from a remote 
  254.     machine. 
  255.  
  256. -t    Disables direct writes to the screen. Without 
  257.     the -t option, NCSA Telnet defaults to 
  258.     writing directly to screen memory. This option 
  259.     greatly enhances the screen speed, but makes 
  260.     NCSA Telnet incompatible with Topview, 
  261.     Microsoft Windows, and other windowing 
  262.     systems. To make NCSA Telnet completely 
  263.     compatible with BIOS-level programs, use the -t 
  264.     option. You can install this option permanently 
  265.     in the TELNET.BAT file or the CONFIG.TEL file 
  266.     (bios option).
  267.  
  268.  
  269. The Configuration File
  270.  
  271. Overview
  272. The configuration file contains information on local operating 
  273. parameters (such as which type of graphics screen your PC has, 
  274. and your IP number), plus a list of commonly accessed hosts and 
  275. optional network tuning parameters for each of those hosts.
  276.  
  277. The configuration file is accessed once when the program is 
  278. initiated and is not used again. The program reads all of the 
  279. machine names into memory, so it may save memory to limit the 
  280. number of computers you specify in the file. 
  281.  
  282. The configuration file is typically named CONFIG.TEL. If this 
  283. file is in the default directory, it will be found automatically, but 
  284. the use of the -h flag in the TELNET.BAT file is recommended. 
  285. Syntax for Entries
  286. The configuration file is a list of keywords and values for those 
  287. keywords. The one overall requirement for the entries in the file is 
  288. that they alternate, keyword then value, keyword then value, and 
  289. so on. There are many different formats possible using any of the 
  290. allowable delimiters. The delimiters are the colon (:), semicolon 
  291. (;), equal sign (=), and any of the whitespace characters. To 
  292. include delimiters in a value field, enclose the field in double 
  293. quotes. Quotes cannot be a part of the actual data field. Wherever a 
  294. pound sign (#) is found, everything from there to the end of line is 
  295. a comment. Though you can use multiple formats in the same file, 
  296. you will probably want to find and keep a consistent format. For 
  297. example, each of the entries in Figure 7.1 specify the same 
  298. information. 
  299.  
  300. Note that Figure 7.1.c is not a recommended format, but is 
  301. included to show how strange an entry may look.
  302.  
  303. Figure 7.1.aDisplaying the 
  304. Same Information 
  305. in Different Entry 
  306. Formats
  307.     name=nic      # comment field to end of line ->
  308.     host=sri-nic.arpa
  309.     hostip=10.0.0.51
  310.     scrollback=300
  311.     contime=60
  312.  
  313.  
  314. Figure 7.1.b
  315. name=nic; host=sri-nic.arpa; hostip="10.0.0.51"; 
  316. scrollback=300; contime=60
  317.  
  318.  
  319. Figure 7.1.c
  320. name     
  321. nic
  322. host sri-nic.arpa : hostip=10.0.0.51; scrollback=300; 
  323. contime:60
  324.  
  325.  
  326. PC Information Entries
  327. The first entries in the configuration file are the PC environment 
  328. entries. They specify what types of hardware are to be used, the 
  329. names of graphics output files, and the network configuration 
  330. information. Following is a list of these entries:
  331.  
  332. Entry    Meaning
  333.  
  334. address=d000    entered as four hex digits, address=d000, 
  335. is the segment address of the Ethernet 
  336. board's shared memory. The address only 
  337. applies to boards that have jumpers or 
  338. registers which can be used to set the 
  339. shared memory address. After setting the 
  340. board's jumpers to a particular value, use 
  341. the address parameter to configure NCSA 
  342. Telnet with the same setting. d000 (hex) is 
  343. a common address to use and it rarely 
  344. conflicts with other boards.
  345.  
  346. Entry    Meaning
  347.  
  348. arptime=3    specifies how long to try to reach a host 
  349. on the local wire, in ticks, where 18.2 ticks 
  350. is equivalent to one second. A value of 20 
  351. works fine for the network at NCSA, but 
  352. larger values may be needed for hosts 
  353. that are slow to respond. Smaller values 
  354. are more convenient to use.
  355.  
  356. autoscroll=yes    specifies whether the screen continues to 
  357. scroll in scrollback mode when the cursor 
  358. reaches the top of the screen or not. (It 
  359. will only scroll up one line if this option is 
  360. off.) Default is yes.
  361.  
  362. beep=yes    specifies whether the musical note symbol 
  363. will appear in a session's indicator box 
  364. when NCSA Telnet receives a "beep" 
  365. character. This command is useful for 
  366. alert conditions.
  367.  
  368. bios=no    indicates NCSA Telnet has two screen-
  369. writing modes. One is direct-to-screen 
  370. (bios=no) which is considerably faster on 
  371. most machines. The other uses BIOS 
  372. (bios=yes) and follows the IBM BIOS 
  373. conventions at all times. BIOS mode 
  374. makes NCSA Telnet compatible with 
  375. popular windowing systems and can 
  376. reduce the amount of flicker and snow on 
  377. the screens of IBM CGA-equipped 
  378. systems.
  379.  
  380. broadcast=255.255.    specifies the network address to use 
  381. 255.255    for broadcast messages.
  382.  
  383. capfile=    specifies a name for the capture file. For 
  384. example,
  385.  
  386.         capfile ="c:\temp\myfile"
  387.  
  388.         When you capture to disk, all data is 
  389. appended to this file. If no name is 
  390. included in the configuration file, "capfile" 
  391. is used by default.
  392.  
  393. capfile=prn    specifies that the printer device (PRN) 
  394. should be used for the capture file.
  395.  
  396. clock=on    specifies that the clock should be 
  397. displayed on the status line.  Default is 
  398. clock=on.
  399.  
  400. concolor=431070     specifies the colors used in the console 
  401. window.
  402.  
  403. Entry    Meaning
  404.  
  405. cursorbottom=8    specifies the bottom of the cursor block 
  406. using a number from 0 to 15.
  407.  
  408. cursortop=11    specifies the top of the cursor block using 
  409. a number from 0 to 15.
  410.  
  411. domain="ncsa.uiuc.edu"    affects hostname lookups which are sent 
  412. to the domain nameserver. All names 
  413. which do not contain a period have the 
  414. default domain appended before the 
  415. nameserver request goes out. If the 
  416. hostname you type contains a period, 
  417. then the name is unmodified before NCSA 
  418. Telnet sends it to the nameserver. There is 
  419. no "ring-down" or multiple lookup feature 
  420. to try more than one form of the name.
  421.  
  422. domainretry=4    specifies number of times to query 
  423. domain nameserver(s). Each time a retry 
  424. is sent, the timeout value (above) is 
  425. doubled. Each time a retry occurs, NCSA 
  426. Telnet tries the next nameserver, 
  427. wrapping around to the first nameserver 
  428. when there are no more.
  429.  
  430. domaintime=20    specifies time in ticks to wait between the 
  431. first domain lookup and the second. If you 
  432. only have one nameserver, then this is the 
  433. same as a simple timeout. If you want to 
  434. rotate nameservers quickly because the 
  435. first one may be down, set this to a 
  436. smaller number. To force a larger number 
  437. of retries, set this to a smaller number. To 
  438. wait longer for a domain response, 
  439. increase this value.
  440.  
  441. ftp=yes    enables FTP serving by default. Access to 
  442. your PC can be controlled by the FTP 
  443. password file. To disable FTP serving 
  444. completely, change this line to ftp=no.
  445.  
  446. hardware=3C501    specifies that NCSA Telnet can support 
  447. several different brands of Ethernet 
  448. adapters. Each brand has its own unique 
  449. identifier which must be set for the 
  450. hardware parameter. See the hardware 
  451. section in this chapter for a complete list 
  452. of settings.
  453.  
  454. hpfile=COM1    sends HPGL plotter codes directly to the 
  455. plotter, as long as a HP plotter hooked up 
  456. to your PC. Use the mode command to 
  457. preconfigure the serial port first.
  458.  
  459. hpfile=hp.out    dumps Tektronix graphics to a file in 
  460. several formats from the Graphics menu. 
  461. When you write out HPGL (HP plotter) 
  462. codes, this file name is used. For example,
  463.  
  464.         hpfile="c:\hpgrafs\hp.out"
  465.  
  466.         The default is hp.out in the current 
  467. directory.
  468.  
  469. interrupt=3    specifies several choices for interrupt 
  470. vector on the Ethernet board. NCSA 
  471. Telnet defaults to IRQ3, but can be set to 
  472. use different interrupts by indicating the 
  473. interrupt number here. Match this 
  474. number with the interrupt setting from 
  475. your Ethernet board.
  476.  
  477. ioaddr=360    specifies the I/O base address of the 
  478. Ethernet board in hex. Some Ethernet 
  479. boards have selectable I/O addresses. 
  480. These generally range from 200 to 400 
  481. (hex) and must be entered as two, three, 
  482. or four digits.
  483.  
  484. keyfile=filename    specifies an additional keyboard mapping 
  485. file to provide move key definitions. This 
  486. file over-rides the definitions in the 
  487. telnet.key file.
  488.  
  489. myip=BOOTP    indicates that this entry is a special form 
  490. of the myip entry. Setting myip to 
  491. BOOTP will cause NCSA Telnet to query 
  492. a BOOTP server to get its IP address.
  493.  
  494.  
  495. myip=RARP    indicates that this entry is a special form 
  496. of the myip entry. Setting myip to RARP 
  497. will cause NCSA Telnet to query a RARP 
  498. server to get its IP address. See the section 
  499. on RARP in this chapter.
  500.  
  501. myip=10.0.0.51    specifies the IP address to use for the PC. 
  502. This number must contain all four parts 
  503. of the IP address. This field is required.
  504.  
  505. myname="hawkind.
  506. ncsa.uiuc.edu"    specifies the network name used to 
  507. identify the PC on the network.
  508.  
  509. netmask=255.255.255.0    specifies the subnet mask for your local 
  510. network. It is optional for networks 
  511. without subnets.
  512.  
  513. outputfile=filename    specifies that this entry is the same as 
  514. keyfile option, except it specifies the 
  515. output mapping file to over-ride the 
  516. default telnet.out mappings.
  517.  
  518. Entry    Meaning
  519.  
  520. passfile=    specifies the file in which FTP usernames 
  521. and passwords can be found. For 
  522. example,
  523.  
  524.         passfile="c:\bat\ftppass"
  525.  
  526.         No default name exists for this file. If the 
  527. file is specified, then FTP will require a 
  528. username and password for all attempted 
  529. FTP connections. If the file is not 
  530. specified, then there is no password 
  531. checking for FTP. Use the program 
  532. TELPASS.EXE to encrypt new 
  533. passwords. See the FTP Password 
  534. Protection section later in this chapter.
  535.  
  536. psfile=ps.out    prints PostScript commands to several 
  537. types of available laser printers. NCSA 
  538. Telnet's PostScript output has been tested 
  539. on the Apple (Sun) LaserWriter, which is 
  540. connected to Sun workstations. The 
  541. default filename is ps.out in the current 
  542. directory.
  543.  
  544. rcp=yes    specifies that rcp serving is enabled by 
  545. default. To disable rcp serving, change 
  546. this line to rcp=no.
  547.  
  548. tek=yes    specifies there is no overhead to unused 
  549. Tektronix graphics emulation. However, 
  550. you may wish to disable graphics 
  551. support. tek=no will disable Tektronix 
  552. graphics emulation.
  553.  
  554. tekfile=tek.out    specifies the filename to use when you 
  555. write Tektronix codes to disk. The default 
  556. name is tek.out.Tektronix 4014 graphics 
  557. commands are a very compact way to 
  558. store a Tektronix graphics image. 
  559.  
  560. video=ega    specifies Tektronix 4014 graphics 
  561. emulation is included in NCSA Telnet for 
  562. a variety of video devices. Supported are: 
  563. hercules (Hercules monochrome 
  564. graphics), cga (IBM and compatibles 
  565. original Color Graphics Adapter), ega 
  566. (IBM Enhanced Graphics Adapter and 
  567. compatibles), ega 43 (ega 43 - line mode), 
  568. vga 50 (vga 50 - line mode) and no9 
  569. (Number Nine Computer's Revolution 
  570. 512 x 8 board).
  571.  
  572. windowgoaway=yes    specifies that a session doesn't wait for a 
  573. keypress after it has been closed. This 
  574. defaults to windowgoaway=no.
  575.  
  576. Entry    Meaning
  577.  
  578. wire=thin    specifies which type of ethernet cable to 
  579. use on the ethernet board. Options are 
  580. thin and thick. Use this command only for 
  581. 3Com3C503 ethernet cards.
  582.  
  583.  
  584. Host-Specific Parameters
  585. Following the PC configuration options, you may specify zero or 
  586. more hosts, and host-specific information for each host. By 
  587. making the host entries in the configuration file, you can specify 
  588. color, backspace, scrollback, connection timeout, and several 
  589. tuning parameters for each host. You may want to have more than 
  590. one session name associated with a single computer, such as 
  591. purple cray and red cray with different screen colors to fit your 
  592. mood of the day.
  593.  
  594. Typically, the first host listed will be name=default, which stores 
  595. the default values for the other hosts. Any keyword listed under 
  596. later hosts will override the default setting for that host session. 
  597.  
  598. NOTE: The keyword name is special because it separates entries.
  599.  
  600. The parameters following name up to the next keyword name are all 
  601. associated with the session name. The parameters are installed 
  602. whenever a connection is opened with that session name.
  603.  
  604. Entry    Meaning
  605.  
  606. copyfrom=nic    copies all unspecified parameters from a 
  607. previous session name. Note that the 
  608. session name which you want to 
  609. reference with copyfrom must appear 
  610. before the session name that uses a 
  611. copyfrom directive. Parameters that are 
  612. specified for a session name along with a 
  613. copyfrom directive override that 
  614. copyfrom directive.
  615.  
  616. clearsave=yes    updates scrollback when the screen is 
  617. cleared. When clearing the screen, all of 
  618. the visible lines are saved into the 
  619. scrollback region. If you prefer not to 
  620. have the text saved when the screen 
  621. clears, set clearsave=no. In the case of 
  622. host programs which clear the screen one 
  623. line at a time, the lines are never saved 
  624. into the scrollback region.
  625.  
  626. contime=10    gives the connection timeout in seconds. 
  627. When you are making a connection 
  628. attempt, after this amount of time has 
  629. elapsed NCSA Telnet gives up on opening 
  630. the connection and deletes the window. 
  631. For congested or slow networks, this 
  632. value should be made larger. 
  633. Entry    Meaning
  634.  
  635. crmap=4.3BSDCRNUL    specifies a special compatibility option for 
  636. 4.3 BSD UNIX. Now, a UNIX bug fix to 
  637. take care of the problem, but some hosts 
  638. may still want crnul to be used for end-of-
  639. line. The default is crmap=crlf, which 
  640. sends CRLF when you press RETURN. 
  641. In line mode, CRLF is always used.
  642.  
  643. duplex=half    applies only to hosts that negotiate non-
  644. echoing mode and does not expect local 
  645. line editing. All character keys are sent 
  646. and echoed to the screen immediately. 
  647. This parameter has no effect in echo 
  648. mode.
  649.  
  650. erase=delete    sets the backspace translation for this 
  651. host. Some hosts prefer the backspace key 
  652. to be DELETE and some prefer the 
  653. backspace key to be BACKSPACE. Set 
  654. this value erase=delete or 
  655. erase=backspace.
  656.  
  657. gateway=1    specifies the gateway precedence for this 
  658. host. To reach hosts not connected to your 
  659. local network, you must have at least one 
  660. gateway entry. The hostip keyword must 
  661. be present for this host. Gateway 
  662. numbers must start at 1 and increase by 
  663. ones. Gateway 1 has the highest 
  664. precedence, but the first gateway to 
  665. respond to an ARP will be used. ICMP 
  666. redirects can affect how gateways are 
  667. used, but not permanently.
  668.  
  669. host=sri-nic.arpa    specifies the hostname or alternate name. 
  670. If you want to associate both a session 
  671. name and a hostname with a particular 
  672. set of parameters, you may include both. 
  673. Note that the name parameter is required, 
  674. while the host parameter is optional. The 
  675. rule of thumb is: When you have only a 
  676. hostname, insert it as name=hostname. If 
  677. you have both a session name and a 
  678. hostname, enter both name=sessionname  
  679. and host=hostname. When you want to 
  680. open a new connection, either hostname 
  681. or sessionname works.
  682.  
  683. hostip=10.0.0.51    gives the IP address of the host. If this is 
  684. not present, the domain nameserver must 
  685. be queried to get the IP number of the 
  686. host. For efficiency, include the IP 
  687. addresses of all commonly accessed hosts. 
  688. IP addresses of gateways and 
  689. nameservers must be in the configuration 
  690. file. 
  691.  
  692. maxseg=512    gives a byte count (1-1024) of the largest 
  693. TCP segment that can be received. This 
  694. value can control the size of packets that 
  695. are sent over the connection. Reducing 
  696. this value can eliminate IP fragmentation 
  697. that we cannot reassemble. maxseg=512 
  698. should force the sending host to never 
  699. fragment.
  700.  
  701. mtu=512    specifies a byte count (1-1024) of the 
  702. largest amount of data to put in the 
  703. packets that are sent. If you are sending to 
  704. the ARPANET you should use mtu=512. If 
  705. you are sending to local hosts, you should 
  706. use mtu=1024.
  707.  
  708. name=nic    specifies the name that you want to 
  709. appear on the bottom line of the screen 
  710. when the connection opens. It is the 
  711. primary name associated with a list of 
  712. parameters. It is common to have more 
  713. than one session name for a host, each 
  714. with different parameters, perhaps with 
  715. different colors or different amounts of 
  716. scrollback. This parameter is required 
  717. because it separates entries.
  718.  
  719. nameserver=1    specifies the nameserver precedence for 
  720. this host. NCSA Telnet uses UDP to query 
  721. domain nameservers for machinenames 
  722. that are not in the configuration file. Each 
  723. machine that is to be used as a 
  724. nameserver must have this keyword 
  725. listed. The hostip keyword must be 
  726. present for this host. Nameserver 1 has 
  727. the highest precedence. Nameserver 
  728. numbers must start at 1 and increase by 
  729. ones.
  730.  
  731. nfcolor=white    specifies a normal, foreground
  732.  
  733. nbcolor=black    specifies a normal, background
  734.  
  735. rfcolor=black    specifies a reverse, foreground
  736.  
  737. rbcolor=white    specifies a reverse, background
  738.  
  739. ufcolor=blue    specifies a underline, foreground
  740.  
  741. ubcolor=black    specifies a underline, background
  742.  
  743.         You can use these new color options 
  744. instead of the more complicated color 
  745. code from previous versions. For each 
  746. value, specify a string from the following 
  747. list of colors available on IBM-PC class 
  748. machines with color displays:
  749.  
  750.         Also for machines with EGA or better 
  751. graphics adapters, the following colors 
  752. are available:
  753.  
  754.         BLACK
  755.         BLUE
  756.         GREEN
  757.         CYAN
  758.         RED
  759.         MAGENTA
  760.         YELLOW
  761.         WHITE
  762.  
  763.         The colors are in all caps, and for the 
  764. foreground colors they are the 
  765. highlighted version of the lowercase 
  766. colors. For background colors, they make 
  767. the foreground blink.
  768.  
  769.         The foreground and background colors 
  770. are combined to create the text 
  771. appearance on the screen. You may wish 
  772. to experiment with the Parameter menu 
  773. (Chapter 3), which interactively allows 
  774. you to select a color scheme. The previous 
  775. version's color= entries are still supported.
  776.  
  777. retrans=7    gives the initial retransmit timeout in 
  778. 18ths of a second. Increasing the value of 
  779. this parameter may help in reducing the 
  780. initial burst of retries that is typical of 
  781. connections with high round-trip times.
  782.  
  783. rwin=512    gives a byte count (1-4096) of the largest 
  784. size of the TCP window to advertise to 
  785. other hosts. Unfortunately, some 
  786. hardware and networks, the 3COM 
  787. 3C501 Etherlink for example, cannot 
  788. handle receiving back-to-back packets. 
  789. This situation requires us to limit the TCP 
  790. receive window that we advertise to other 
  791. hosts. For communicating to slower hosts, 
  792. or when using the other brands of 
  793. Ethernet boards, a larger window (4096) 
  794. may work better.
  795.  
  796. scrollback=100    specifies the number of lines of scrollback 
  797. for this session. Be aware that scrollback 
  798. occupies at least 86 bytes per line saved. 
  799. There can be a different number of lines 
  800. of scrollback for each session. Plan your 
  801. use of scrollback wisely unless you have 
  802. memory to spare.
  803.  
  804.  
  805. Converting UNIX /etc/hosts 
  806. Files
  807. Included with the NCSA Telnet distribution is an awk script called 
  808. newh. Used with the following command under 4.X BSD UNIX, it 
  809. will convert the /etc/hosts file format into a format compatible 
  810. with NCSA Telnet's configuration file. Note that domain name 
  811. lookup should make this operation obsolete, or apply to only a small 
  812. subset of your /etc/hosts file.
  813.  
  814. % awk  -f newh /etc/hosts >config.temp
  815. After creating this new file, prepend the PC-specific information 
  816. and download the file to the PC.
  817.  
  818.  
  819. Hardware Options
  820.  
  821. Combined Ethernet Drivers
  822. Only one distribution program for NCSA Telnet Version 2.3 
  823. exists. All of the Ethernet and video device drivers are combined 
  824. into one executable program. You must use the hardware entry in 
  825. the configuration file to inform NCSA Telnet which Ethernet board 
  826. you have installed. Choose from the list of supported Ethernet 
  827. boards in Table 7.1; the value to use is case insensitive. The 
  828. requirements for interrupt, address, and ioaddr entries in the 
  829. configuration file are listed.
  830.  
  831.  
  832. Table 7.1    Ethernet Boards 
  833. Supported by NCSA 
  834. Telnet
  835. Value    Ethernet Board    Requires╩╩╩╩╩╩╩╩╩╩
  836. For PC bus
  837.  
  838. 3C501    3COM 3C501 Etherlink    interrupt,ioaddr
  839.  
  840. 3c503    3COM3C503    interrupt, address, 
  841.             ioaddr, wire
  842.  
  843. 3c505    3COM 3C505    interrupt, address, 
  844.             ioaddr
  845.  
  846. atalk    PCAppletalk Card    (software)     
  847.             interrupt,
  848.             address, ioaddr
  849.  
  850. bicc    BICC 411x Ethernet Cards    interrupt, address, 
  851.         ioaddr
  852.  
  853. decnet    DEC Decnet Protocol    interrupt, address, 
  854.             ioaddr
  855.  
  856. NI5210    MICOM NI5210     interrupt, address, 
  857.         ioaddr
  858.  
  859. packet    Any packet driver    interrupt
  860. **also for 
  861.  PS/2 MCA Bus
  862.  
  863. PCNIC    Ungermann-Bass PC-NIC    address,ioaddr
  864.     or IBM Baseband adapter
  865.  
  866. starlan    AT&T Starlan IO Card    address, oiaddr
  867.  
  868. WD8003    Western Digital WD8003     address,ioaddr
  869.  
  870. Table 7.1    Ethernet Boards 
  871. Supported by NCSA 
  872. Telnet (continued)
  873. Value    Ethernet Board    Requires╩╩╩╩╩╩╩╩╩╩
  874. WD8003e    Western Digital WD80033e    address,ioaddr
  875.  
  876. For PS/2 MCA bus
  877.  
  878. NICps2    Ungermann-Bass NICps/2     address
  879.  
  880. 3C523    3COM 3C523 Etherlink/MC    address,ioaddr
  881.  
  882. WD8003a    Western Digital WD8003a    address, ioaddr
  883.  
  884.  
  885. Performance Tuning
  886. The values of maxseg, mtu and rwin in the configuration file must 
  887. be set correctly to get maximum data transfer throughput between 
  888. machines. Some rules of thumb to use when setting these values 
  889. include the following:
  890.  
  891. Ñ    The maximum reasonable values for these parameters are:
  892.     rwin=4096
  893.     mtu=1024
  894.     maxseg=1024
  895.  
  896. Ñ    The best setting for local network use, with a high performance 
  897. Ethernet board is:
  898.     rwin=4096
  899.     mtu=1024
  900.     maxseg=1024
  901.  
  902. Ñ    The best setting for ARPANET use, or any situation with a lot of 
  903. unknown gateways, but with a high performance Ethernet board 
  904. is:
  905.     rwin=4096
  906.     mtu=512
  907.     maxseg=512
  908.  
  909. Ñ    The setting required for the 3COM 3C501, and any other 
  910. troublesome network situation, also the most conservative 
  911. setting, is:
  912.     rwin=512
  913.     mtu=512
  914.     maxseg=512
  915.  
  916. rwin specifies what the other computer is allowed to send you at any 
  917. one time, so it depends mostly upon your local Ethernet board. If the 
  918. board can handle it, always set rwin=4096. maxseg is used to 
  919. avoid fragmentation. If you get fragmented packets, lower the 
  920. value of maxseg for that host until fragmentation stops occurring.
  921.  
  922.  
  923. RARP for Dynamic IP 
  924. Address Assignment
  925. When the following special form of the myip entry is used, 
  926. myip=RARP, NCSA Telnet looks up your local machine's IP address 
  927. with a broadcast request to the network. The "Reverse Address 
  928. Resolution Protocol" is used to attempt to translate the local 
  929. machine's assigned 48-bit Ethernet address to a corresponding IP 
  930. address. From our tests with the RARP server from Sun 
  931. Microsystems' SunOS 3.X, the RARP lookup takes about 3 seconds. 
  932. You must install the 48-bit Ethernet address from each PC in the 
  933. RARP hosts' tables before RARP will work. The value of arptime, 
  934. in seconds, multiplied by three, is used for a timeout value. 
  935.  
  936. NOTE: Sun's RARP lookup will not work if you have a double-zero 
  937. in your Ethernet address. Other leading zeros can be dropped as 
  938. well. Use a single zero, i.e. 8:0:20:1:5a:90, instead of 
  939. 08:00:20:01:5a:90.
  940.  
  941.  
  942. BOOTP for Dynamic IP 
  943. Address Assignment
  944. The Bootp process, myip=RARP, closely resembles the RARP process. 
  945. For instance, the former performs the same function as RARP by 
  946. getting an IP number from a Bootp server which has the PC's 
  947. Ethernet address registered in the Bootp Host table. Bootp and 
  948. RARP time-out procedures are also the same.
  949.  
  950.  
  951. Appletalk Hardware
  952. Using an Appletalk network involves some special 
  953. considerations. First, you must load the Appletalk driver into 
  954. memory. Version 1.0 of the "ATALK.EXE" driver was used in the 
  955. development of NCSA Telnet. 
  956.  
  957. The second consideration involves the "interrupt=" line. The 
  958. "interrupt=" line in your CONFIG.TEL line refers to the 
  959. software interrupt the Appletalk driver is using, not the hardware 
  960. interrupt the card is set to. For example, if your Appletalk card is 
  961. set to IRG2, you would not set the "interrupt=" line to "2". 
  962. Instead, the value should be set to the software interrupt, usually 
  963. "interrupt=60" or "interrupt=5C".
  964.  
  965. Static IP addressing does not work at the current time in NCSA 
  966. Telnet 2.3 using the Appletalk driver. Therefore, NCSA Telnet 
  967. ignores any IP address you set in your CONFIG.TEL file , and 
  968. assigns an IP address to your PC by the Appletalk gateway.
  969.  
  970. There has been no success in getting the Appletalk packet driver to 
  971. work with NCSA Telnet. In addition, NCSA Telnet has not been 
  972. tested with Appletalk cards for MicroChannel machines, such as 
  973. IBM's PS/2 line.
  974.  
  975.  
  976. Interrupts
  977. When you configure the 3COM hardware, an important option is 
  978. the choice of interrupt request number (level). 3COM boards arrive 
  979. set for IRQ3, which corresponds to the PC-DOS definition of the 
  980. COM2 communications port. If you have a port configured as 
  981. COM2, you cannot set your Ethernet board to IRQ3. Another 
  982. common value to use is IRQ5, which is the same interrupt that DOS 
  983. uses for LPT2. Make sure that your PC hardware configuration 
  984. does not conflict in any way.
  985.  
  986.  
  987. Interrupt Conflicts
  988. The most common hardware problem is interrupt conflicts. PCs 
  989. have a limited number of interrupts, and you cannot have two 
  990. devices which expect to use the same interrupt. PC Ethernet boards 
  991. almost always consume an interrupt, even though we do not use 
  992. interrupts for all Ethernet boards. Interrupts are also used by COM 
  993. ports and LPT ports in your machine. You must check for 
  994. conflicts.
  995.  
  996.  
  997. Intermittant Interrupts
  998. Interrupt conflicts don't always show up right away. They are 
  999. software controlled. If you do not activate the interrupt on your 
  1000. COM2 port, it may not conflict with a 3C501 board on IRQ3 until 
  1001. next week when you try to use a modem terminal emulator and 
  1002. then switch to NCSA Telnet. NCSA Telnet might work fine until 
  1003. you try to FTP to your hard disk; then disaster strikes.
  1004.  
  1005.  
  1006. Interrupts on Hard Disks
  1007. Hard disks use interrupts too. We have traced two serious hard 
  1008. disk problems to interrupt conflicts. IRQ2 is the default setting for 
  1009. some Ethernet boards when they come out of the box. On a PC-AT, 
  1010. this interrupt is used for the second drive controller, and a conflict 
  1011. can shut off the whole second controller which includes the hard 
  1012. disk. On the PC/XT and PC compatible computers, IRQ5 is 
  1013. sometimes assigned to the hard disk rather than LPT2. Strange 
  1014. hard disk problems like disk write errors may be caused by the 
  1015. Ethernet conflicting with the hard disk.
  1016.  
  1017. Moral:  Set your Ethernet board to an unused interrupt.
  1018.  
  1019.  
  1020. Domain Name Lookup
  1021.  
  1022. When NCSA Telnet cannot find a name in the configuration file, 
  1023. it can still find the IP number if you are running a domain 
  1024. nameserver. To use the domain system, at least one host must be 
  1025. running the nameserver and the configuration file must have a 
  1026. nameserver entry for that host. There may be more than one. If 
  1027. one nameserver fails to respond, the one with the next higher 
  1028. precedence is queried. As soon as a response is received, NCSA 
  1029. Telnet will add its name to the status line and attempt to open a 
  1030. telnet connection. 
  1031.  
  1032. When you enter a name to open a connection, NCSA Telnet follows 
  1033. specific search order:
  1034.  
  1035. 1.    It looks up the name as a session name from the configuration 
  1036. file.
  1037.  
  1038. 2.    It looks up the name as a hostname from the configuration file.
  1039.  
  1040. 3.    It sends the name as a domain query to the first nameserver.
  1041.  
  1042. 4.    If the domain request times out, the program repeats the query, 
  1043. but to another nameserver. NCSA Telnet repeats this process 
  1044. until it reaches the maximum number of retries or receives a 
  1045. response.
  1046.  
  1047. With the domain nameserver, the number of hosts in the 
  1048. configuration file can be kept to a minimum. Each host in the 
  1049. configuration file will be a commonly used computer that may 
  1050. have special screen color or scrollback requirements. The IP 
  1051. addresses for rarely used hosts will be accessible if the domain 
  1052. name retrieval system can resolve those hosts.
  1053.  
  1054.  
  1055. FTP Password Protection
  1056.  
  1057. The presence of the passfile keyword in the configuration file 
  1058. enables FTP password protection. If you have a password file, FTP 
  1059. will not allow any FTP connections to open without a correct 
  1060. username and password. You can have several usernames and 
  1061. individual passwords for each user. The password file can be 
  1062. easily read by typing out the file. The passwords are encrypted, but 
  1063. not with a secure encryption system. Only trusted users should be 
  1064. allowed access to the password file. 
  1065.  
  1066. NOTE:  Precautionary measures are especially important now 
  1067. that the FTP server allows the person connected to the PC to create 
  1068. and remove directories and files.
  1069.  
  1070. To create or change passwords for users, run a separate program 
  1071. called Telpass. This program reads in the password file so you 
  1072. can add and change users and passwords. There are no special 
  1073. installation instructions for Telpass as it is menu-driven. Start up 
  1074. Telpass from DOS with the name of the password file that you wish 
  1075. to edit.
  1076.  
  1077. C:\ telpass pwfile
  1078.  
  1079. Telpass automatically saves the list of names and passwords when 
  1080. you exit. Just add a passfile option to your configuration file to 
  1081. enable FTP passwords.
  1082. Compatibility Notes
  1083.  
  1084. Ping
  1085. NCSA Telnet responds to ping (ICMP echo) requests. Other hosts 
  1086. use this command by other hosts to determine whether your PC is 
  1087. online.
  1088.  
  1089.  
  1090. VT102
  1091. The VT102 emulator is nearly complete. VT102 features not 
  1092. emulated are double width and double height characters, VT52 
  1093. mode, origin mode for cursor positioning, and 132 column mode. 
  1094. Included in the emulator are variable spaced tabs, graphics 
  1095. characters, keypad modes, and character attributes. 
  1096.  
  1097.  
  1098. FTP
  1099. The FTP server in NCSA Telnet is close to the DARPA 
  1100. specification of the minimum implementation. Exceptions are the 
  1101. following:
  1102.  
  1103. Ñ    The command connection does not perform telnet negotiation.
  1104. Ñ    The block mode of FTP is not supported.
  1105. Ñ    Some error conditions may display as command not 
  1106. understood instead of returning more appropriate messages.
  1107.  
  1108. FTP has not been thoroughly tested on low-bandwidth or low-
  1109. reliability networks. It should be most successful on local 
  1110. networks, with unknown throughput for long-haul or satellite 
  1111. networks. 
  1112.  
  1113.  
  1114. Terminate and Stay 
  1115. Resident (TSR) Programs
  1116. Programs such as SideKick from Borland International Inc. take 
  1117. complete control of the PC when they are initiated with key 
  1118. sequences. The use of these programs does not crash NCSA Telnet, 
  1119. but it suspends the network communications capability while the 
  1120. TSR program is active. When network communications are 
  1121. suspended, whether from the ALT-E DOS escape feature or from 
  1122. using TSR programs, it takes the host approximately one minute to 
  1123. decide that your PC has crashed, and then it cuts you off. As long as 
  1124. these programs are used for short (less than 30 seconds) intervals, 
  1125. you should have no problem. 
  1126.  
  1127.  
  1128. NCSA Telnet
  1129. The standard telnet protocol has several potential options that can 
  1130. be invoked if both parties of the telnet connection agree. NCSA 
  1131. Telnet refuses most of these options, but accepts the following: 
  1132. echo, option 1; suppress go ahead, option 3, termtype, option 24, 
  1133. NAWS (Negotiate About Window Size), option 31; and Linemode, 
  1134. option 34. Some obscure features of NCSA Telnet are not 
  1135. implemented in this version:  out-of-band interrupts are not 
  1136. available, go ahead signals do nothing, and telnet acknowledge 
  1137. signals are not acknowledged. If there are any problems with the 
  1138. limitations of NCSA Telnet, please submit a bug report.
  1139.  
  1140. Limitations
  1141. There is a 20-session limit for NCSA Telnet. This limit is 
  1142. somewhat arbitrary and may be altered if there appears to be a need 
  1143. for it. NCSA Telnet can run out of memory, often before the 20-
  1144. session limit. You are notified on the screen if this happens.
  1145.  
  1146.