Tuesday, November 17, 2009

How to setup NIS client in different subnet in Linux?

I recently added one Linux client (from different subnet) to NIS master located in different subnet. Normally, they say that it is not possible to add NIS client without having NIS slave in the target VLAN. WRONG!

Almost everything remains the same as of normal NIS client addition process except editing /etc/yp.conf file. Add "broadcast" keyword into this file and restart ypbind using "service ypbind restart" and it should bind to any NIS master or slave available.

Please note that /etc/yp.conf should have only "broadcast" line enabled.. nothing else!

No comments: