3

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

4

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

First IP 10.25.0.1
Last IP 10.25.0.126

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

First IP 10.25.0.1
Last IP 10.25.63.254

I would recommend you to keep somewhere at work/home that sheet

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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