Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 15:17:38 -0500
From:      Christopher Rued <c.rued@xsb.com>
To:        Blake Swensen <blake@pyramus.com>
Cc:        Christopher Rued <c.rued@xsb.com>, freebsd-questions@freebsd.org
Subject:   Re: NIS/RPC question
Message-ID:  <15021.12002.736560.235696@chris.xsb.com>
In-Reply-To: <3AACFEFE.AFCFC217@pyramus.com>
References:  <15020.43726.935309.895427@chris.xsb.com> <3AACFEFE.AFCFC217@pyramus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Blake Swensen writes:
 > Here is the NIC check list that I use.  I have several machines all binding
 > to my NIS server.
 > 
 > 1) Make sure that you have an entry your server in /var/yp/ypservers
 > 2) Make sure that you have an entry for the server&client in /etc/hosts
 > 3) I own my own DNS server and have better success when the client and
 > hosts are list in the IN-ADDR-ARPA zone.
 > 4) Your server WILL be a client as well and should be running ypbind.
 > 5) Make sure that you have th '+' entries in /etc/group and /etc/passwd and
 > that there will be no duplicates between the local groups/users and the NIS
 > groups/users
 > 6) Make sure that there is no entries at all or that your network is
 > included it /var/yp/securenets
 > 
 > A FreeBSD server is not as loud about announcing itself to the network as a
 > Sun NIS server, so I always specify the server on the ypbind command line
 > like:
 > 
 > #ypbind -S nis-domain,server
 > 
 > or alternatively in /etc/rc.conf as
 > nis_client_enable="YES"
 > nis_client_flags="-S nis-domain,server
 > 
 > hope this helps.
 > 
 > Christopher Rued wrote:
 > 
 > > I am attempting to set up (mostly for educational purposes) NIS
 > > between two machine I have connected via PLIP (for now, anyway).
 > > The server's IP is 10.0.0.1.  The client's is 10.0.0.2.  I decided to
 > > call the NIS domain `chris-nis'.
 > >
 > > The problem is that the client can't seem to reach the server.
 > > `ypcat passwd' output (run on client machine):
 > >   ypcat: no such map passwd.byname. reason: Can't bind to server which
 > >   serves this domain
 > >
 > > When I run `ypbind' on the server itself and do a `ypcat passwd' I do
 > > see the passwd file.
 > >
 > > One strange thing I am noticing, which I am pretty sure is related, is
 > > that both `rpcinfo -p' and `rpcinfo -p 10.0.0.1' on the client fail
 > > (just hang without telling me anything; I haven't let it go for more
 > > than about 15 minutes).  `prcinfo -p' and `rpcinfo -p 10.0.0.2'
 > > from the server both work fine.

It seems that either box that I run ypbind on causes network
statistics to take a *very* long time (rpcstat -p finally finished 7-8
hours after I started it (listing 12 entries).

I started ypbind on the server box, and it also takes forever to
complete the rpcstat as well as netstat.

When I disable it again, things return to normal.

Running ypserv in debug mode didn't really help.  ypserv does not
produce any output when I try to run ypbin/ypcat.

Again -- I am able to run ypbind from the same machine that ypserv is
running on.  If I run ypbind from the client (10.0.0.2), a lot of network
activity (maybe just UDP?) grinds nearly to a complete stop.

hrm... any ideas?

 > >
 > > I have enabled portmap on both ends in rc.conf.
 > >
 > > I have allowed portmap in hosts.allow for each of them from the other
 > > and from itself.
 > >
 > > I have added `nis' to host.conf on both client and server.
 > >
 > > I have added an entry for `chris-nis' in hosts which points to
 > > 10.0.0.1 on both the client and the server.
 > >
 > > I started out following the instructions given in the handbook, but
 > > when they didn't work searched the archives and freebsddiary.org, and
 > > found several different ways to set it up.  The way I went about
 > > configuring the machines, after following the handbook failed, was
 > > basically trying out some of the things that other places mentioned.
 > > Right now, other than the host entries, the `nis' entry in host.conf,
 > > and the changes to hosts.allow, all changes were from following the
 > > instructions in the handbook (including doing ypinit).
 > >
 > > Some potentially useful info follows:
 > >
 > > NIS master:
 > >    uname -a:
 > >      FreeBSD chris.xsb.com 4.3-BETA FreeBSD 4.3-BETA #2:
 > >             Fri Mar  9 10:56:59 EST 2001
 > >        chris@chris.xsb.com:/usr/obj/usr/src/sys/ROVER  i386
 > >
 > >    ifconfig lp0:
 > >      lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 > >              inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
 > >
 > >    domainname:
 > >      chris-nis
 > >
 > >    rpcinfo -p:
 > >      program vers proto   port
 > >       100000    2   tcp    111  portmapper
 > >       100000    2   udp    111  portmapper
 > >       100004    1   udp   1015  ypserv
 > >       100004    2   udp   1015  ypserv
 > >       100004    1   tcp   1023  ypserv
 > >       100004    2   tcp   1023  ypserv
 > >       100009    1   udp   1005  yppasswdd
 > >       100009    1   tcp   1022  yppasswdd
 > >       100005    3   udp   1002  mountd
 > >       100005    3   tcp   1021  mountd
 > >       100005    1   udp   1002  mountd
 > >       100005    1   tcp   1021  mountd
 > >       100003    2   udp   2049  nfs
 > >       100003    3   udp   2049  nfs
 > >       100003    2   tcp   2049  nfs
 > >       100003    3   tcp   2049  nfs
 > >       100024    1   udp    990  status
 > >       100024    1   tcp   1020  status
 > >
 > >    rpcinfo -p 10.0.0.2:
 > >      program vers proto   port
 > >       100000    2   tcp    111  portmapper
 > >       100000    2   udp    111  portmapper
 > >       100007    2   udp   1022  ypbind
 > >       100007    2   tcp   1023  ypbind
 > >       100005    3   udp   1019  mountd
 > >       100005    3   tcp   1022  mountd
 > >       100005    1   udp   1019  mountd
 > >       100005    1   tcp   1022  mountd
 > >       100003    2   udp   2049  nfs
 > >       100003    3   udp   2049  nfs
 > >       100003    2   tcp   2049  nfs
 > >       100003    3   tcp   2049  nfs
 > >       100024    1   udp   1007  status
 > >       100024    1   tcp   1021  status
 > >
 > > NIS client:
 > >    uname -a:
 > >      FreeBSD testbed.xsb.com 4.3-BETA FreeBSD 4.3-BETA #0:
 > >         Wed Mar  7 09:24:57 GMT 2001
 > >         jkh@narf:/usr/src/sys/compile/GENERIC  i386
 > >
 > >    ifconfig lp0:
 > >      lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 > >              inet 10.0.0.2 --> 10.0.0.1 netmask 0xff000000
 > >
 > >    domainname:
 > >      chris-nis
 > >
 > >    rpcinfo -p:
 > >      program vers proto   port
 > >       [ does not show me anything else / hangs for at least a minute ]
 > >
 > >    rpcinfo -p 10.0.0.2:
 > >      program vers proto   port
 > >       [ does not show me anything else / hangs for at least a minute ]
 > >
 > > Whew!
 > >
 > > Thanks for reading this far. :-)
 > >
 > > Thanks in advance for any help/pointers.
 > >
 > > -Chris
 > >
 > > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > > with "unsubscribe freebsd-questions" in the body of the message
 > 
 > 

-- 
Christopher Rued

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15021.12002.736560.235696>