8

How do I set up an NFS server to multiple clients? I have set up an NFS server but it does only share to one client.

1
  • WHat does /etc/exports contain? Have you added the other clients IPs or hostnames to it? – muru Apr 16 '15 at 8:41
11

In your /etc/exports file, you can either use a wildcard:

/path/to/share    *(rw,sync,etc)

Or you can use CIDR notation

/path/to/share    10.0.0.0/24(rw,sync) 

Or you can put multiple IPs in line like so:

/path/to/share    10.0.0.5(rw) 10.0.0.6(ro) 
1
  • 1
    +1 for adding CIDR blocks, just what I was looking for – fusion27 Jan 19 '20 at 15:57
1

This website quite clearly explains how to setup NFS Server and Clients. It helped me setup my first lot.

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-14-04

Give it a shot and you'll find yourself never using samba nor CIFS ever again!

1
  • 1
    From "Ask Ubuntu Help": Links to external resources are encouraged, but please add context around the link so your fellow users will have some idea what it is and why it’s there. Always quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline. – Boris Oct 4 '15 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.