Post #508193
2026-03-03 18:49 UTC
Iproute2 definitely does write things a bit compact. ip address show and shorthands state the routed local address space (192.168.1.x/24) and the actual /32 address (192.168.1.214) you are assigned as one unit. Additionally, it shows the broadcast address for the space. Ironically, ip route show may genuinely give you less confusing information, clearly splitting the actual route and showing your straight IPv4 address as src.
Typically in firewalling, you’d use /32 to allow a singular IPv4 host. This is analogous to using /128 for IPv6 hosts. You can absolutely use /24, /16, /8, or any other mask really if you need to target a range of IP addresses for a rule to apply to. Technically, /32 is a range itself, just with a size of 1. There are CIDR calculators available to play around and see what different CIDR masks actually target.
Replies (1)
-
@emotional_soup_88__dup_21417@programming.dev 2026-03-03 18:51
Sweet! Thanks for another clear explanation! Have good rest of your day! :)