this post was submitted on 13 Jul 2026
510 points (99.4% liked)

Greentext

8510 readers
637 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Hoimo@ani.social 1 points 1 week ago (1 children)

Yeah, but why is CIDR notation like that? You put a bigger number at the end and your subnet becomes smaller? Why would you want that?

[–] ramble81@lemmy.zip 4 points 1 week ago* (last edited 1 week ago)

When you translate it out it bits it’s the number of bits that are active in the net mask

0000 0000 0000 0000 0000 0000 0000 is a /0

1111 1111 1111 1111 1111 1111 0000 0000 is a /24

1111 1111 1111 1111 1111 1111 1100 0000 is a /26

And since it’s used for matching, it follows how many there are.

Edit: typed that quickly, but to expand it further, take a /24 subnet, that is 255.255.255.0, if you look above each group of 8-bits can cover 0-255, so you in essence by having 24 bits turned on that’s what you want for an exact match. You’re basically saying “the first three octets need to exactly match”