IT'S LOGIC !



  • The way to obtain the network part of a given address is:

    to do a Boolean (i.e. logic) AND operation
    network = (IP address) AND (netmask)
  • let's try:

    IP address is

    140.105. 17.226

    ( = 10001100.01101001.00010001.11100010 )

    netmask is

    255.255.252.000

    ( = 11111111.11111111.11111100.00000000 )

    network address will be:

    10001100.01101001.00010001.11100010

    AND

    11111111.11111111.11111100.00000000

    =

    10001100.01101001.00010000.00000000

    in decimal

         140.     105.      16.       0

  • this subnet goes from 140.105.16.0 to 140.105.19.255


MAIN
previous   help me   next abdus salam ICTP