Differences between revisions 2 and 3
Revision 2 as of 2008-08-14 00:36:06
Size: 487
Editor: CarlNobile
Comment:
Revision 3 as of 2008-08-14 01:19:04
Size: 1117
Editor: CarlNobile
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

== Getting the Packages ==
Line 11: Line 13:
== Configuring portmap ==
Line 17: Line 21:

== Configuring NFS ==

Edit the {{{/etc/export}}} file.

The following line will permit all 254 C class addresses on the private net to access this mount.

{{{
/home 192.168.1.1/24(rw,no_root_squash,no_subtree_check,async)
}}}

This line will permit all 65534 C class addresses on the private net to access this mount.

{{{
/home 192.168.0.0/16(rw,no_root_squash,no_subtree_check,async)
}}}

You must execute the following commands after any edit to the {{{/etc/export}}} file.

{{{
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a
}}}

NFS HOWTO

I have put this HOWTO together from various sources which I will list at the end. I will discuss the process of setting up a server and using a client.

Getting the Packages

On Debian type systems you can install the the packages as shown below:

sudo apt-get install nfs-kernel-server nfs-common portmap

Configuring portmap

If you need to reconfigure the portmap run the next two commands. Do not bind to loopback.

sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart

Configuring NFS

Edit the /etc/export file.

The following line will permit all 254 C class addresses on the private net to access this mount.

/home 192.168.1.1/24(rw,no_root_squash,no_subtree_check,async)

This line will permit all 65534 C class addresses on the private net to access this mount.

/home 192.168.0.0/16(rw,no_root_squash,no_subtree_check,async)

You must execute the following commands after any edit to the /etc/export file.

sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a

NFS HOWTO (last edited 2016-08-16 21:17:56 by CarlNobile)