nfs mount问题
请教各位一个问题:
服务器IP 192.168.1.5
客户端IP 192.168.1.11, 192.168.2.101(多张网卡),前提只允许使用192.168.1.11
由于安全性问题我在服务器/etc/exports写入的内容:
/test/abc 192.168.1.11(no_subtree_check,rw,async)
然后执行 sudo exportfs -r
然后在客户端执行:
sudo mount -t nfs -o rw,bg,hard,vers=3,nointr,timeo=600 192.168.1.5:/test/abc /tmp/abc
出现错误:access denied bu server while mounting 192.168.1.5:/test/abc;
通过查看服务器/var/log/messages,内容提示:
refused mount request from 192.168.2.101 for /test/abc (/test/abc): unmatched host
日志内容明显提示的IP是不允许的,但是mount options的有clientaddr选项,但是没有作用,请教一下各位怎么处理。