Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+17 votes

Could someone clarify what these notations for subnets mean?

asked in CSC335_Spring2019 by (8 points)

2 Answers

+11 votes
 
Best answer

The /24 means we look at the first 24 bits of the address while the /21 means we look at the first 21 bits to match them to the subnets. I think.

answered by (8 points)
selected by
+9 votes

To expand a bit more, i think the '/k' notation refers to the first 'k' bits of the address that we want to match. You would want to convert the first 'k' bits of the subnet mask and the address to binary and perform an AND operation.

answered by (8 points)
...