When defining netmask values, the number 255 means that the given segment of the IP addresses for computers on that subnetwork must exactly match the number used on the network for that same segment. The number 0 means that the segment can be any number from 0 to 255.
For example, a netmask of 255.255.0.0 means that IP addresses on the subnetwork must match the first two IP segments exactly, but can use any number in the last two segments. Any computer's IP address that does not match the netmask must use a gateway computer to connect to the network.
To continue with this example, in a network with an IP address of 130.155 and a netmask of 255.255.0.0, the IP addresses for all computers on that network must begin with 130.155, but can use any number from 0 to 255 for the last two segments of the IP address.