Elektrine lite

← Feed

@RIotingPacifist@lemmy.world

Post #508173

2026-03-03 18:20 UTC

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 10.10.10.1/8 IP: 00001010.00001010.00001010.00000001 Mask: 00000000.11111111.11111111.11111111

Replies (1)

  • @scott@lem.free.as 2026-03-03 22:39

    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.

    Open ##508694