home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6688 < prev    next >
Encoding:
Text File  |  1992-09-04  |  2.4 KB  |  69 lines

  1. Path: sparky!uunet!mcsun!uknet!sys-uea.ac.uk!gel
  2. From: gel@sys.uea.ac.uk (Gareth Lee)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: How to change diskless client IP address?
  5. Message-ID: <gel.715606791@zen.sys.uea.ac.uk>
  6. Date: 4 Sep 92 11:39:51 GMT
  7. References: <1992Sep3.191946.19852@doug.cae.wisc.edu>
  8. Sender: news@sys.uea.ac.uk
  9. Organization: UEA School of Information Systems, Norwich, UK.
  10. Lines: 56
  11. Nntp-Posting-Host: zen.sys.uea.ac.uk
  12.  
  13. pranjoto@ece.wisc.edu (Hokkie Pranjoto) writes:
  14.  
  15.  
  16. >We have a Decstation 5000/200 server with 3 diskless clients.  We need
  17. >to change the IP addresses of all 4 machines.  We got the server changed
  18. >with no problem.  We changed one client by deleting the client and
  19. >adding it back with dms.  After doing this we had to reconfigure all
  20. >the installed sets.  Is there an easier way to do this?  In particular,
  21. >is the IP address of the client stored some place where we can edit
  22. >it?  (We tried editing the IP addresses in both the server and client
  23. >/etc/hosts, but that did not do the job.)
  24.  
  25. >Thanks.
  26. >Hokkie Pranjoto
  27.  
  28. In addition to editing the respective hosts files you need to edit the
  29. netblk.c file in the host's /etc directory.  ie. if the server if called
  30. fatcat and the host mutley the file will be in the server filesystem as
  31. /dlclient0/mutley/etc/netblk.c.  A typical file is of the form
  32.  
  33. #include <sas/mop.h>
  34. struct netblk   nblk={
  35. "fatcat",
  36. 0x8bde0a5b, "mutley", 0x8bde0a59, 0x8bdeffff, 0xffff0000,
  37. 0,
  38. 5,
  39. 0,
  40. -1,
  41. "/dlclient0/mutley.root",
  42. "rz3b",
  43. ""
  44. };
  45.  
  46. where "fatcat" is the server name and 0x8bde0a5b is the server IP address
  47. in hex (ie. 139.222.10.91).  Similarly "mutley" is the client name and it's
  48. address is 0x8bde0a59 (139.222.10.89).  The 5th and 6th fields are the client
  49. broadcast and netmask addresses.  Other fields describe where to mount
  50. the client root directory from and where to swap to etc. . You can therefore
  51. change the forth field to reflect the new client address.  It's then necessary
  52. to recompile the netblk.c file with
  53.  
  54. % cc -c netblk.c
  55.  
  56. thereby updating netblk.o.
  57.  
  58. The final change is to modify the CLIARP field in the client dlparam file
  59. (ie. /dlclient0/mutley/etc/dlparam in my example).  The mop-mom should then
  60. operate correctly allowing the client to reboot with the new IP address.
  61.  
  62. Dr Gareth Lee.
  63. Speech and Pattern Processing Group,
  64. University of East Anglia,
  65. Norwich, UK.
  66.  
  67. PS. This solution was supplied to me by the DEC UK help line some months ago.
  68. My thanks to them.
  69.