O'Reilly logo
  • Hirofumi Takahashi thinks this is interesting:

  • Write the given subnet mask in binary.

  • Write the IPv4 host address in binary.

  • Knowing the class of the host address, the subnet bits of the mask should be apparent. Using the mask bits as a guide, draw a line between the last network bit and the first subnet bit of the address. Draw another line between the last subnet bit and the first host bit.

  • Write the network and subnet bits of the address, setting all host bits to zero. The result is the address of the subnet to which the host address belongs.

  • Again write the network and subnet bits of the address, this time setting all host bits to one. The resul...

  • From

    Cover of Routing TCP/IP, Volume 1, 2/e

    Note

    How to figure out subnet, given a host IP