How to fix "mountd: refused mount request: unmatched host"


On Client (

# mount /mnt
mount.nfs: access denied by server while mounting

On NFS Server (

# tail -n 1 /var/log/messages
Sep 13 00:00:32 cc01-nds-ins rpc.mountd[29613]: refused mount request from for /export/home/deepak (/export/home/deepak): unmatched host



This error is occurring because the NFS server is unaware of the client network attempting to access the NFS shares.

As for my case below are the list of directories which are shared using NFS server

# exportfs -v
/export/home/deepak     ,wdelay,root_squash,no_subtree_check)
/export/home/rahul      ,wdelay,no_root_squash,no_subtree_check)
/root/upgrade/scripts   ,wdelay,no_root_squash,no_subtree_check)

As you see the directories are shared for subnet while my client server IP is in a different subnet

So I need to add this subnet in my exports share


On NFS Server (

Add a new line in /etc/exports file as shown below

# vi /etc/exports

Refresh the share

# exportfs -ra

List the updated share information

# exportfs -v
/export/home/deepak    ,wdelay,root_squash,no_subtree_check)
/export/home/deepak    ,wdelay,root_squash,no_subtree_check)
/export/home/rahul     ,wdelay,no_root_squash,no_subtree_check)
/ISS/export-upgrade    ,wdelay,no_root_squash,no_subtree_check)

Let us re-attempt to access the NFS share from our client


On Client (

# mount -t nfs /mnt
# mount | grep export on /mnt type nfs (rw,addr=

I hope this tutorial was helpful.


Leave a Comment

close button