Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was setting up NFS on my Server/Client machines, and through my searches on LinuxQuestions.org, I found thread that helped me, and my NFS Server/Client are working great. However, in that thread it said: "Try exporting as 192.168.0.0/24".
what does the "/24" after that IP number means? What effect does it have?
what does the "/24" after that IP number means? What effect does it have?
This is the so-called prefix. It tells you how many bits in the IP address are used for the network number. Since an IPv4 address is 32 bits long, the remaining 8 bits are use as the device address.
You could also say that your netmask is 255.255.255.0. Again, the three 255 bytes are 24 bits set to 1.
The effect is that your network can contain addresses from 196.168.0.1 to 196.168.0.254 (Device addresses 0 and 255 are reserved).
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Quote:
Originally Posted by berndbausch
This is the so-called prefix. It tells you how many bits in the IP address are used for the network number. Since an IPv4 address is 32 bits long, the remaining 8 bits are use as the device address...
...hence the /24 means the first 24 bits of the IPv4 address are not resolved / evaluated, right?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
That's right, I should have written "... the /24 means the first 24 bits of the IPv4 address are not used for device addresses". Thanks for the clarification .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.