Centos7 NFS server 無法連線 - Linux

Table of Contents

小弟之前都是用 rhel4 設定nfs, 今日架設一台 centos 7 的nfs時,一直無法成功,

client 錯誤訊息:
# showmount -e xxx.xxx.xxx.xxx
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

# rpcinfo -p xxx.xxx.xxx.xxx
rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host

p.s clinet端可以正常mount其他的nfs server,就是這台不行

server端偵錯步驟如下:

1. 把 selinux 關掉
2. 把 iptables 關掉
3. 把rpcbind重啟: systemctl restart rpcbind
4. 把nfs重啟: systemctl restart nfs
5. 確定 rpcbind 有起來 systemctl status rpcbind
6. 確定 nfs 有起來 systemctl status nfs
7. 看rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
....
100003 3 tcp 2049 nfs

請問版上的大大~還有什麼可能的情況嗎..orz

--

All Comments

Noah avatarNoah2014-11-07
系統的另一套預設 firewall 有關嗎
systemctl disable firewalld.service
Blanche avatarBlanche2014-11-08
可以了!!太感謝了!! 爬文都沒爬到這一塊,原來有兩個firewall