clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)


When you try to use showmount command to display the NFS shares on the remote server, some times you'll see the below error message.


[root@nfs ~]# showmount  -e 192.168.85.1
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)

It happens when the ports 2049(nfs) and 111(Portmap) are blocked by the firewalls on the NFS server you are trying to connect.  To resolve this issue you just need to open the these ports on the NFS server.


further reading: http://www.karlrupp.net/en/computer/nat_tutorial

2 comments:

Anonymous said...

Had the same error for a different reason.

My Debian server had, in /etc/default/portmap :

OPTIONS="-i 127.0.0.1"

So it was not listening on the ethernet interface. Commenting out the line solved the problem.

Maciej Jaros said...

You might want to check what your actual ports by using:
netstat -aonp | grep -i -E "LISTEN.*(rpc|portmap)"

Note that external ports are on the left (after first ":"). Also note that portmap also needs a udp rule.

Post a Comment

 
Design by GeekInLinux | Powered by Blogger