I have installed nfs-server on centos
and edited my /etc/exports
as follows
/data 10.25.0.0/25(rw,sync,no_root_squash)
.
when I try to connect from my client with ip address 10.25.44.144
, the connection is refused.
but when I edit /etc/exports
with the exact ip 10.25.44.144
, mount works.
but I actually want to accept request from any client in the subnet 10.25.*.*
how would I do that?
Thanks
Best Answer
In that case, reading https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-server-config-exports.html before can be a good thing to do.
Keep in mind that 10.25.0.0/25 only covers https://www.adminsub.net/ipv4-subnet-calculator/10.25.0.0/25
If you wish to cover 10.25.44.144, you are going to need to use either a direct ip as you mention before (can be a solution), or extend your /25 to a /18
https://www.adminsub.net/ipv4-subnet-calculator/10.25.0.0/18
I would recommend you to keep somewhere at work/home that sheet