0

I'm a student of electronics and get lessons in networking as well. But on one of my tests I got the question:

What subnet mask is indicated by the network address 172.16.4.8/18?

I know the answer is 255.255.192.0 but I don't understand why the answer must be 255.255.192.0 and how to calculate the subnet mask? Also what does the /18 mean?

user5913
  • 111
  • 3

1 Answers1

1

You must read a subnet mask in binary. Since your IP address ends with /18 it means the first 18 bits are high and the others are low. Getting a binary code of 11111111.11111111.11000000.0000. Put it back to decimals and you'll get 255.255.192.0

user43384
  • 26
  • 1