mercredi 8 février 2017

Wrong client IP when setting NFS server

Vote count: 0

I am setting up a NFS server between two RHEL 7.2 machines. My internal IP addresses:

Machine A: 192.168.0.70 sat.example.com

Machine B: 192.168.0.254 rhevm.example.com

I am following this guide to set up my NFS server.

Everything seems to be fine until # mount 192.168.0.70:/nfsfileshare /mnt/nfsfileshare/

Where I get the output:

mount.nfs: access denied by server while mounting 192.168.0.70:/nfsfileshare

Upon researching this error, I added the /24 mask on my ip and it worked without error, but my # mount | grep nfs shows:

clientaddr=192.168.0.70,local_lock=none,addr=192.168.0.70

When it should show clientaddr=192.168.0.254

#showmount -e 192.168.0.70 shows:

 Export list for 192.168.0.70:
 /nfsfileshare 192.168.0.254

My /etc/exports/ without the mask:

/nfsfileshare 192.168.0.254(rw,sync,fsid=0,no_root_squash)

What am I doing wrong? Any help would be appreciated as this is my first time setting this up.

asked 4 secs ago

Let's block ads! (Why?)



Wrong client IP when setting NFS server

Aucun commentaire:

Enregistrer un commentaire