showmount -e 192.168.1.252
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
输入以上命令显示错误后,执行iptables -F将防火墙清空后还是报错
最后执行service iptables stop后,将防火墙关闭,在执行showmount -e IP 命令显示正常
showmount -e 192.168.1.252
Export list for 192.168.1.252:
/home 192.168.1.251
执行rpcinfo -p 192.168.1.252命令显示如下,将所有端口在防火墙中放行,也是可以的。
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 875 rquotad
100011 2 udp 875 rquotad
100011 1 tcp 875 rquotad
100011 2 tcp 875 rquotad
100005 1 udp 36235 mountd
100005 1 tcp 47055 mountd
100005 2 udp 60825 mountd
100005 2 tcp 57410 mountd
100005 3 udp 35905 mountd
100005 3 tcp 53076 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 36167 nlockmgr
100021 3 udp 36167 nlockmgr
100021 4 udp 36167 nlockmgr
100021 1 tcp 43116 nlockmgr
100021 3 tcp 43116 nlockmgr
100021 4 tcp 43116 nlockmgr