Subnetting is the process of taking one IP network address and dividing it into two or more sub-networks to create smaller network segments. It is done to add more local area networks, free up bandwidth, and localize departments. An IP address is made up of 32 bits divided into four octets, and subnetting works by splitting the address into a network and host portion to establish multiple sub-networks.