The tricky part of this is that half the clients are on one network ( e.g. 129.130.x.x) , the other half on another network ( e.g. 192.168.x.x)creating root device: /path/to/client/root
The server has hostname server1 but its single ethernet port has server2 aliased (server1 and server2 are both in /etc/hosts)
The steps i go to setting up the system are:
add client addresses and hostnames to /etc/hosts
add the following to /etc/sysconfig/network
Code: Select all
NISDOMAIN=MYDOMAIN
add the following lines to /etc/yp.conf
Code: Select all
domain MYDOMAIN server server1
domain MYDOMAIN server server2
create file /etc/sysconfig/ypbind with contents
Code: Select all
OTHER_YPBIND_OPTS="-no-dbus"
Code: Select all
mountd: @netgrp1
mountd: @netgrp2
Code: Select all
netgrp1 (client1,,) (client2,,) (clients3,,) ...
netgrp2 (client1a,,) (client2a,,) (client3a,,) ...
Code: Select all
/path/to/client/root @netgrp1(rw,insecure,no_root_squash)
/path/to/client/root @netgrp2(rw,insecure,no_root_squash)
Code: Select all
passwd groups hosts rpc services netid protocols netgroup networks ethers bootparams
If there's any more information you need please ask, this problem is starting to drive me mad!refused mount request from 192.168.x.x:/path/to/client/root : unmatched host
Thanks