home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!munnari.oz.au!metro!cs.uow.edu.au!cssc-woll.tansu.com.au!cssc-syd.tansu.com.au!rodney
- From: rodney@cssc-syd.tansu.com.au (Rodney Campbell)
- Subject: Re: Splitting an NIS domain across a router.
- Message-ID: <1992Sep1.041836.2129@cssc-syd.tansu.com.au>
- Organization: Customised Software Solutions Centres, AOTC
- References: <1992Aug31.145450.24666@uunet.uu.net!mercomp>
- Date: Tue, 1 Sep 1992 04:18:36 GMT
- Lines: 77
-
- blu@uunet.uu.net!mercomp (Brian Utterback) writes:
-
- >We are in the process of splitting our current network into two, a
- >production network and a test network. I don't know much about the
- >workinfs of NIS, so bear with me if this is a stupid question, but
- >how do I set up NIS under such a configuration? Would it be best
- >to have two masters or what? If I had two masters, how should I keep
- >them in sync? Any one have a similar setup?
-
- >Thanks.
- >
- >Brian Utterback
- >Mercury Computer Systems.
- >blu@mc.com
- >(508) 458-3100
-
- I have a setup where I have a number of Local networks hanging off a
- number of ethernet ports of a Cisco router with ONE NIS domain and ONE NIS
- Master. The definition for NIS is that there MUST be at LEAST ONE NIS
- Server per subnet (including Master and Slave Servers). Thus you should
- set up One NIS Master and a number of NIS Slave servers (at least one per
- additional net).
- Thus the domain name is the same for all machines.
-
- The only tricky part is setting up the first Slave server on the Non NIS
- Master net.
-
- Try this:
-
- After OS is installed and /etc/defaultdomain is set.
- Boot the new slave server in single user mode:
-
- > b -s
- ...
- # rm -rf /var/yp
-
- Bring the machine up into multiuser mode and log in.
-
- # <Control D>
- ...
- login: root
- password: ........
-
- Check that the NIS Domain is set:
-
- # domainname
- .......
-
- Now do the tricky stuff:
-
- # /usr/etc/ypbind -ypsetme
- # /usr/etc/ypset <Master NIS Host IP Address>
- # /usr/etc/yp/ypinit -s <Master NIS Hostname>
-
- Answer questions as per usual.
-
- # /usr/etc/reboot
-
- OK now the slave server is set up you need to add the slave server to the
- list of slave servers on the ypmaster.
-
- A simple way is to do the following as root on the NIS Master:
-
- # ypcat ypservers
-
- Now Reinitialise NIS Master
-
- # cd /usr/etc/yp
- # ./ypinit -m
- Add all the hostnames given before plus the hostname of the new slave.
-
- Rodney....
- --
- Rodney Campbell - AOTC |Email : rodney@cssc-syd.tansu.com.au
- Advanced Network Products |Snail : Level 1, 18-20 Orion Rd, Lane Cove West
- Customised Software Solutions | - PO Box A226, Sydney South 2000, Australia.
- Centre - Sydney |Phone : +61 (0)2 911 3123 Fax: +61 2 911 3199
-