home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 6010 < prev    next >
Encoding:
Text File  |  1992-09-01  |  2.6 KB  |  88 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!munnari.oz.au!metro!cs.uow.edu.au!cssc-woll.tansu.com.au!cssc-syd.tansu.com.au!rodney
  3. From: rodney@cssc-syd.tansu.com.au (Rodney Campbell)
  4. Subject: Re: Splitting an NIS domain across a router.
  5. Message-ID: <1992Sep1.041836.2129@cssc-syd.tansu.com.au>
  6. Organization: Customised Software Solutions Centres, AOTC
  7. References: <1992Aug31.145450.24666@uunet.uu.net!mercomp>
  8. Date: Tue, 1 Sep 1992 04:18:36 GMT
  9. Lines: 77
  10.  
  11. blu@uunet.uu.net!mercomp (Brian Utterback) writes:
  12.  
  13. >We are in the process of splitting our current network into two, a
  14. >production network and a test network.  I don't know much about the
  15. >workinfs of NIS, so bear with me if this is a stupid question, but
  16. >how do I set up NIS under such a configuration?  Would it be best
  17. >to have two masters or what?  If I had two masters, how should I keep
  18. >them in sync?  Any one have a similar setup?
  19.  
  20. >Thanks.
  21. >Brian Utterback
  22. >Mercury Computer Systems.
  23. >blu@mc.com
  24. >(508) 458-3100
  25.  
  26. I have a setup where I have a number of Local networks hanging off a
  27. number of ethernet ports of a Cisco router with ONE NIS domain and ONE NIS
  28. Master. The definition for NIS is that there MUST be at LEAST ONE NIS
  29. Server per subnet (including Master and Slave Servers). Thus you should
  30. set up One NIS Master and a number of NIS Slave servers (at least one per
  31. additional net).
  32. Thus the domain name is the same for all machines.
  33.  
  34. The only tricky part is setting up the first Slave server on the Non NIS
  35. Master net.
  36.  
  37. Try this:
  38.  
  39. After OS is installed and /etc/defaultdomain is set.
  40. Boot the new slave server in single user mode:
  41.  
  42. > b -s
  43. ...
  44. # rm -rf /var/yp
  45.  
  46. Bring the machine up into multiuser mode and log in.
  47.  
  48. # <Control D>
  49. ...
  50. login: root
  51. password: ........
  52.  
  53. Check that the NIS Domain is set:
  54.  
  55. # domainname
  56. .......
  57.  
  58. Now do the tricky stuff:
  59.  
  60. # /usr/etc/ypbind -ypsetme
  61. # /usr/etc/ypset <Master NIS Host IP Address>
  62. # /usr/etc/yp/ypinit -s <Master NIS Hostname>
  63.  
  64. Answer questions as per usual.
  65.  
  66. # /usr/etc/reboot
  67.  
  68. OK now the slave server is set up you need to add the slave server to the
  69. list of slave servers on the ypmaster.
  70.  
  71. A simple way is to do the following as root on the NIS Master:
  72.  
  73. # ypcat ypservers
  74.  
  75. Now Reinitialise NIS Master
  76.  
  77. # cd /usr/etc/yp
  78. # ./ypinit -m
  79. Add all the hostnames given before plus the hostname of the new slave.
  80.  
  81.                                     Rodney....
  82. -- 
  83.      Rodney Campbell - AOTC    |Email : rodney@cssc-syd.tansu.com.au
  84.    Advanced Network Products   |Snail : Level 1, 18-20 Orion Rd, Lane Cove West
  85.  Customised Software Solutions |  -  PO Box A226, Sydney South 2000, Australia.
  86.         Centre - Sydney        |Phone : +61 (0)2 911 3123   Fax: +61 2 911 3199
  87.