4. How is a prefix length (CIDR notation) like `/24` translated into a subnet mask?

A prefix length (like/24) is translated into a subnet mask by writing out a 32-bit sequence where the first N bits are set to 1 (representing the network portion) and the remaining bits are set to 0 (representing the host portion), then converting those binary octets into dotted-decimal format
Пожалуйста, войдите, чтобы спрашивать, отвечать, делиться, ставить лайки и голосовать.