Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Wow you really made that hard to understand what your quesion was, but I think I got it.
What your referring to is the subnet mask after the IP address. The subnet mask is used to identify a network of computers.
In the most basic form there are 4 possiblele values that can be placed after the "/"
/255.0.0.0 or /8
/255.255.0.0 or /16
/255.255.255.0 or /24
/255.255.255.255 or /32
Each has its on significance in setting up IP rules. (Say in BIND configs) The first of the options means to match only the first octet of an IP address.
e.x Say IP address 145.78.45.67 attempts to query your DNS server. If you told BIND to only to allow "145.78.45.67/255.0.0.0". That machine with that IP address would certainly make it through. But if your intention as to ONLY allow that machine, you would be thoroughly disappointed. Like I said before, using the subnet mask 255.0.0.0 designates IPs that match the first octet (ie 145) So an the IP address 145.5.6.3 or 145.6.42.9 or 145.7.3.9 would all be able to query your DNS server.
Now the next subnet mask 255.255.0.0 or /16 means to allow the first two octets. (ex 145.78) Then any IP address thats starts with 145.78 would get through.
If your still following me then you should be able to figure out that the next subnet mask 255.255.255.0 or /24 designates the match of the first three octets (145.78.45).
And finally 255.255.255.255 or /32 means to EXACTLY match an IP address. That is the best subnet mask to use if you intend to restrict to one IP address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.