Date: Mon, 12 Mar 2001 05:54:06 -0500 From: Christopher Rued <c.rued@xsb.com> To: freebsd-questions@freebsd.org Subject: NIS/RPC question Message-ID: <15020.43726.935309.895427@chris.xsb.com>
next in thread | raw e-mail | index | archive | help
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. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15020.43726.935309.895427>