Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to Run NIS from a Remote Subnet?

NIS remote run subnet
0
Posted

How to Run NIS from a Remote Subnet?

0

By default, you can not run a NIS client if your NIS server is on a different subnet. This is because NIS usually runs in broadcast mode, which means that it only queries local servers when starting. In Solaris, if you want to bind to a remote server, simply initialize the client with the -c flag: # ypinit -c (/usr/sbin/ypinit on Solaris 2.x) In SunOS, instead of running ypbind normally you must run it with the -ypsetme option, and then run ypset, using the NIS server’s ip address as an argument: # ypbind -ypsetme # ypset nis-server-ip (/usr/lib/netsvc/yp/ypbind on Solaris 2.x) (/usr/sbin/ypset on Solaris 2.x) In this case, be sure to also modify the rc.local file appropriately. It is recommended that you have at least one NIS slave on each subnet. If you do this, only your NIS slave server will need to follow the above procedures all other machines on the subnet will be able to run normally, and they will bind to the local NIS slave.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123