home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / docs / howto / addNewHost < prev    next >
Encoding:
Text File  |  1992-12-14  |  3.8 KB  |  81 lines

  1.  
  2. How to add a new host.
  3.  
  4. ---  If you change this file please edit the addhost script to summarize
  5. ---  the changes.
  6.  
  7. 1.  Get the new host's ethernet address and internet address.
  8.     You can find out what these are by running `/etc/arp hostname'
  9.     on rosemary, ginger, or envy.
  10.  
  11. 2.  Run the "addhost" script.  See the man page for details.
  12.  
  13. 3.  Enable TFTP booting for Suns.  Login to ginger and make a symbolic link
  14.     in /tftpboot, using the internet address as a name, to the correct
  15.     ndboot.sun3.??? boot file.  If a link exists, note its target.
  16.     The internet address is in hex, i.e. 80209606 for 128.32.150.6.
  17.     The most likely ndboot file is ndboot.sun3.pub1.  Determining this
  18.     from first principles requires some understanding of the /etc/nd.local
  19.     file on the file server from which the machine will be booting (ginger).
  20.     For example, there are several 'public' nd partitions defined for ginger:
  21.     user 0 0 /dev/xy3g 0 12880 -1
  22.     user 0 1 /dev/xy0g 0 12880 -1
  23.     user 0 2 /dev/xy1g 0 -1 -1
  24.     user 0 3 /dev/xy2e 0 -1 -1
  25.     This indicates that public partition 1 is on /dev/xy0g.  The mount table
  26.     shows that /pub.MC68020 is mounted there.  Thus
  27.     ndboot.sun3.pub1 will use the boot file in /pub.MC68020.
  28.  
  29.     To boot from ginger and this boot file you either have to ensure that
  30.     only ginger has an entry in its /tftpboot directory for the host,
  31.     or you specifically choose ginger in the boot command by puting
  32.     the last four digits of its internet address, again in hex,
  33.     as the second parameter to the boot argument:
  34.     b ie(0,961c,X)        961c specifies ginger.
  35.     The third argument is used to specify the ND partition to get
  36.     the kernel image from.  This is an XOR function of a partition
  37.     encoded in the ndboot file.  We keep kernel images on ginger in
  38.     /sprite3, which is /dev/xy2e.  Again looking at the nd.local file,
  39.     we see that this device is public ND partition 3.
  40.     The ndboot.sun3.pub1 file specifies public ND partition 1.
  41.     To change this to a 3, 2 must be XOR'ed in.
  42.     The ndboot.sun3.private file specifies private ND partition 0.
  43.     This is encoded as 0x40, with the 0x40 bit meaning private.  To change
  44.     this to a 3, 0x43 must be XOR'ed.
  45.  
  46.     if ginger:/tftpboot file is ndboot.sun3.pub1,    b ie(0,961c,2)
  47.     if ginger:/tftpboot file is ndboot.sun3.private, b ie(0,961c,43)
  48.  
  49. 4.  Run `netroute -f /etc/spritehosts' on all important hosts (file servers).
  50.     This ensures that the servers;  know how to talk to the new host.
  51.     Otherwise they may ignore broadcast requests from the new host.
  52.     Likewise for the export command for the root partition.
  53.  
  54. 5.  Boot using `ie(0,961c,43)sun3' or `ie(0,961c,2)sun3', as determined
  55.     from the ndboot file in step 3 above.  If the workstation is a ds3100,
  56.     see point 6.
  57.  
  58. 6.  For decstations:
  59.  
  60.     (First make sure the decstation is configured for thick, not thin
  61.      ethernet!  There is a small switch next to the ethernet connectors.
  62.      The green light should be lit next to the appropriate connector.
  63.      Stick a pin into the recessed switch to change connectors.)
  64.  
  65.     6a.  To boot off of an ultrix machine, go to dill:/sprite/mop and
  66.          copy one of the C sources to a file based on the first 6
  67.          letters of the new host's name.  Then edit the file to
  68.          include the host's internet and ethernet addresses.
  69.          Similarly, copy add_{some_host} to add_{new_host} and change
  70.          the names within the file, then su to `owner' and run
  71.      add_{new_host} to get mop to respond.
  72.     6b.  Boot the kernel with "boot -f tftp()" or "boot -f
  73.      tftp()kernel_name". 
  74.  
  75. 7. If this is a new hostname, add it to ginger:/etc/hosts.equiv.
  76.  
  77. 8. If you add a machine with a color framebuffer, add it into
  78.     /X11/R4/lib/fbtypes.  This is only necessary till the frame
  79.     buffer stuff is installed.
  80.  
  81.