Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to export a share to multiple networks using the following in the /etc/exports file:

/mnt/tank/xen_nfs -alldirs -mapall=root:wheel -network 10.1.1.20 10.1.1.45 10.1.1.105

but whenever I try to connect from those three servers, I get a Permissions problem. If I just have any one of the networks by itself, it works fine. This is running FreeNAS 8.0RC5 (FreeBSD 8.2). I've also tried specifying the networks with a /30 designation, but same problem.

share|improve this question
    
.45 and .105 aren't /30 network IDs –  Chris S Apr 26 '11 at 15:16

1 Answer 1

up vote 2 down vote accepted

If you want to export to those three as /30 networks, you need to specify each network as a network..

/mnt/tank/xen_nfs -alldirs -mapall=root:wheel -network 10.1.1.20/30 
/mnt/tank/xen_nfs -alldirs -mapall=root:wheel -network 10.1.1.44/30 
/mnt/tank/xen_nfs -alldirs -mapall=root:wheel -network 10.1.1.104/30

If you don't specify that the following IP is a network, it will think it is a single host's IP.

You can quickly see what the server thinks should be able to access the mount with showmount -e

share|improve this answer
    
That works. I did not realize you could specify the same mount point multiple times. Thanks –  John P Apr 27 '11 at 2:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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