NFS Export to Multiple Hosts

NFS Export to Multiple Hosts

NFS Export to Multiple Hosts

this blog assumes you already have a working NFS server, if not, use the following:

http://blog.zwiegnet.com/linux-server/setup-nfs-server-on-centos-6/

In this example we have two CentOS servers that we want to configure /etc/exports to allow export to only two hosts, rather than just one IP, or the whole network.

let’s edit our handy /etc/exports file

NFS exports: let's edit our handy /etc/exports file

here’s a look at what we would need

NFS exports: here's a look at what we would need

one host right after each other.

from there run a exportfs -a to set the config

NFS exports: run a exportfs -a to set the config

now all we have to do is verify it’s exported

NFS exports: all we have to do is verify it's exported

perfect, our two IP’s are able to get to the share

NFS exports: perfect, our two IP's are able to get to the share

that’s it!

Hosted Linux servers at www.zwiegnet.com/go

Leave a Reply

Your email address will not be published. Required fields are marked *