nfsv4検証実施。
nfsv4やってみた。
■サーバ側設定
vim /etc/exports
/kenken/ 192.168.3.160(rw,sync,no_root_squash)
⇒クライアント側のIPアドレスを記載します。(要は見せたい相手のIPアドレス)
/etc/idmapd.confの編集しませんでした。
⇒ドメイン名はデフォルトでとりあえず
iptablesの設定
view /etc/sysconfig/iptables
-A INPUT -p tcp --dport 2049 -j ACCEPTを追加
/etc/init.d/rpcbind start
/etc/init.d/rpcidmapd start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig rpcidmapd on
chkconfig nfs on
mkdir /kenken
chmod 777 /kenken
■クライアント側
/etc/init.d/rpcidmapd start
mount -t nfs4 192.168.3.170:/kenken/ /kenken2/
chkconfig rpcidmapd on
■通信確認
クライアント側で
①lsコマンドを実行
②ファイル作成
⇒dd if=/dev/zero of=out.dat count=10240 bs=1024
③tcpdumpコマンドで通信状況を確認
三井Gtcpdump tcp port not ssh
⇒通信はTCPの2048のみ通っていることをtcpdumpで確認。