NFS

Post Reply
Message
Author
storm0901

NFS

#1 Post by storm0901 »

Wie kann man in der /etc/exports per nfs eine Datei für einen bestimmten IP Adressraum freigeben??

dateipfad/datei 190.1.1.*??? oder wie geht das??

Jochen

Re: NFS

#2 Post by Jochen »

man exports, Auszug aus dem Bereich "Machine Name Formats":<blockquote><hr>IP networks
You can also export directories to all hosts on an
IP (sub-) network simultaneously. This is done by
specifying an IP address and netmask pair as
address/netmask.
<hr></blockquote>
Als Maschinennamen also "190.1.1.0/24" bzw. "190.1.1.0/255.255.255.0" verwenden (schliesse ich mal so aus der Doku, habe es selber nicht ausprobiert).

Jochen

ChrisPr

Re: NFS

#3 Post by ChrisPr »

JEPP
/export_dir1 192.168.1.0/255.255.255.0(rw,no_root_squash) *(ro,root_squash)
/export_dir2 192.168.2.0/255.255.255.0(rw,root_squash)
/export_dir3 *(ro,root_squash)


grüsse

ChrisPr

Post Reply