this post was submitted on 03 Mar 2026
33 points (97.1% liked)
Linux
63475 readers
911 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just when you think you know something about networking, it turns out you don't know sh*t. XD
Thank you for your exquisite explanation and for immediately realizing what I had been misunderstanding!
I'm not sure how useful this is, but it helped me understand.
The subnet mast is the count of the bits from the front that matter.
This is useful for switches and network equipment that only have to look at that much if the packet and route it quickly.
So a 10.0.0.0/8 address the switch only looks at the first 8 binary digits (also called an octet) and routes it based on that.
This also works for non multiple of 8 masks, as it's an operation done on a binary level (it's a mask using a binary AND so only bits that are true and.the mask can be matter)
10.192.0.0/10
IP: 00001010.11000000.00000000.00000000
Mask: 11111111.11 000000.00000000.00000000
So 10.192.0.1 and 10.192.255.255 look the same with their mask on
1: 00001010.11 000000.00000000.00000001
255: 00001010.11 111111.11111111.11111111
Mask: 11111111.11 000000.00000000.00000000
Result for both is: 00001010.11 000000.00000000.00000000
Your masks are backward.
Ones on the left, zeroes on the right.
The mask is binary AND'd with the IP, leaving the leftmost octets alone.
That makes a lot more sense thanks