Suppose I was given this IP gateway :

How can I tell the subnet mask from the /26? Sometimes I notice this, for example : IP with a mask can be written


The number (26) is the number of bits in the mask:


Convert it back to decimal:
  • AH, I see, so the number(x) means there will be x-consecutive-bits in a 32 bits string correct? – NeedAnswers Oct 15 '14 at 15:24
  • 1
    Correct! An IP address is 32 bits long, and so is a mask. – Ron Maupin Oct 15 '14 at 15:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.