Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
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 (1 point)

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 (1 point)
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 (1 point)
...