A subnet mask is a 32 bit number that is used to logically divide an IP address into its host and bit portions. The host portion identifies what computer the IP belongs to while the network portion defines what network it belongs to. Every unique IP address has a default subnet mask that is defined by what IP class they belong to.